<html>
<head>
    <title><?php echo @$title ?></title>
    <link rel="stylesheet" href="<?php echo base_url('assets/css/nota.css?time='. md5(time())) ?>">
</head>
<body class="struk" onload="printOut()">
<section class="sheet">
    <table cellpadding="0" cellspacing="0">
    <tr>
        <td align="center"><?php echo @$toko ?></td>
    </tr>
    <tr>
        <td align="center"><?php echo @$alamat.'<br>Telepon: '.@$telepon ?></td>
    </tr>
    </table>
    <?php echo str_repeat("=", 38).'<br/>' ?>
    <table cellpadding="0" cellspacing="0" style="width:100%">
    <tr>
        <td colspan="3" align="center">SETORAN KASIR<hr></td>
    </tr>
    <tr>
        <td align="left" class="txt-left">Tanggal&nbsp;</td>
        <td align="left" class="txt-left">:</td>
        <td align="left" class="txt-left">&nbsp;<?php echo @$tanggal ?></td>
    </tr>
    <tr>
        <td align="left" class="txt-left">Kode&nbsp;</td>
        <td align="left" class="txt-left">:</td>
        <td align="left" class="txt-left">&nbsp;<?php echo @$kode ?></td>
    </tr>
    <tr>
        <td align="left" class="txt-left">Nama</td>
        <td align="left" class="txt-left">:</td>
        <td align="left" class="txt-left">&nbsp;<?php echo @$pegawai ?></td>
    </tr>
    </table>
    <br>
    <table cellpadding="0" cellspacing="0" style="width:100%" border="0">
    <tr>
        <td align="center" class="txt-left">Awal Transaksi</td>
        <td align="center" width="2%">:</td>
        <td align="left"><?php echo @$awal ?></td>
    </tr>
    <tr>
        <td align="center" class="txt-left">Akhir Transaksi</td>
        <td align="center">:</td>
        <td align="left"><?php echo @$akhir ?></td>
    </tr>
    <tr>
        <td align="center" class="txt-left">Total Masuk</td>
        <td align="center">:</td>
        <td align="left"><?php echo @number_format($totjual,0,',','.') ?></td>
    </tr>
    <tr>
        <td align="center" class="txt-left">Retur</td>
        <td align="center">:</td>
        <td align="left"><?php echo @number_format($totretur,0,',','.') ?></td>
    </tr>
    <tr>
        <td align="center" class="txt-left">Piutang</td>
        <td align="center">:</td>
        <td align="left"><?php echo @number_format($totpiutang,0,',','.') ?></td>
    </tr>    
    <tr>
        <td align="center" class="txt-left">Non Tunai</td>
        <td align="center">:</td>
        <td align="left"><?php echo @number_format($totnon,0,',','.') ?></td>
    </tr>
    <tr>
        <td align="center" class="txt-left">Penukaran Poin</td>
        <td align="center">:</td>
        <td align="left"><?php echo @number_format($totpoin,0,',','.') ?></td>
    </tr>
    <tr>
        <td align="center" class="txt-left">Penukaran Koin</td>
        <td align="center">:</td>
        <td align="left"><?php echo @number_format($totkoin,0,',','.') ?></td>
    </tr>
    <tr>
        <td align="center" class="txt-left">Tunai</td>
        <td align="center">:</td>
        <td align="left"><?php echo @number_format($tottunai,0,',','.') ?></td>
    </tr>
    <tr>
        <td align="center" class="txt-left">Setoran</td>
        <td align="center">:</td>
        <td align="left"><?php echo @number_format($cash,0,',','.') ?></td>
    </tr>
    <?php
    $selisih=@$cash-@$tottunai;
    ?>
    <tr>
        <td align="center" class="txt-left">Selisih/Kelebihan</td>
        <td align="center">:</td>
        <td align="left"><?php echo @number_format($selisih,0,',','.') ?></td>
    </tr>
    </table>
</section>
<script>
var lama=1000;
t=null;
function printOut() {
    window.print();
}
</script>
</body>
</html>