{% block print %}
<div class="the_struk" style="width:300px;padding:5px">
	<table border=0 style="width:100%">
		<tr>
			<td>
				<div style="text-align:center;font-family:verdana;font-size:12px">
					<b>APOTEK ARCADE</b>
				</div>
				<div style="text-align:center;font-family:verdana;font-size:9px">
					Ruko Padurenan Arcade No.A3<br>
					Jl. Kelapa Dua RT 009 RW 008<br>
					Kel Padurenan, Kec Mustika Jaya, Bekasi Kota - 16340<br>
				</div>
			</td>
		</tr>
		<tr>
			<td style="border-bottom:1px solid #ccc">
		</tr>
	</table>
	<table border=0 style="width:100%">
		<tr>
			<td style="height:20px">
				<div style="font-family:verdana;font-size:10px">
					{{data.tgl}}/{{data.jam}}/faktur ke-{{data.no_transaksi}}/{{data.jenisPembayaran}}
				</div>
			</td>
		<tr>
		</tr>
			<td>
				<div style="font-family:verdana;font-size:9px">
					Petugas : {{session.user.username}} (shift 1)
				</div>
			</td>
		</tr>
	</table>
	<table style="font-family:calibri;font-size:12px;width:100%">
		<tr>
			<th style="width:120px">Nama Barang</th>
			<th style="text-align:center;width:30px">Qty</th>
			<th style="text-align:center;width:50px">Harga Satuan</th>
			<th style="text-align:right;width:50px">Disc</th>
			<th style="text-align:right;width:50px">Sub Total</th>
		</tr>
		{% for o in obat %}
		<tr>
			<td>{{o.nama}}</td>
			<td style="text-align:center">{{o.jumlah}}</td>
			<td style="text-align:right">{{ o.harga | currency }}</td>
			<td style="text-align:right">{{ o.diskon | currency }}{%if o.tipe_diskon == 1%}%{%endif%}</td>
			<td style="text-align:right">{{ o.subTotal2 | currency }}</td>
		</tr>
		{% endfor %}
	</table>
	<table style="font-size:12px" cellspacing=0>
		<tr style="border-top:2px solid #ccc">
			<td style="width:120px"></td>
			<td style="border-top:1px solid #ccc;width:100px">Harga Jual</td>
			<td style="border-top:1px solid #ccc;width:10px">:</td>
			<td style="border-top:1px solid #ccc;width:70px;text-align:right">{{ total | currency }}</td>
		</tr>
		<tr style="border-bottom:2px solid #ccc">
			<td></td>
			<td style="border-bottom:1px solid #ccc">Diskon Tambahan</td>
			<td style="border-bottom:1px solid #ccc;width:10px">:</td>
			<td style="border-bottom:1px solid #ccc;text-align:right">{{ data.diskon | currency }}{%if data.tipe_diskon == 1%}%{%endif%}</td>
		</tr>
		<tr>
			<td></td>
			<td>Total</td>
			<td>:</td>
			<td style="text-align:right">{{ total2 | currency }}</td>
		</tr>
		<tr>
			<td></td>
			<td>Tunai</td>
			<td>:</td>
			<td style="text-align:right">{{ data.nominal | currency }}</td>
		</tr>
		<tr>
			<td></td>
			<td>Kembali</td>
			<td>:</td>
			<td style="text-align:right">{{ kembali | currency }}</td>
		</tr>
	</table>
	<br/>
	<p style="font-size:12px;width:300px;text-align:center">customer care SMS/WA 0853 1339 9707<br>
	mulailah sehatmu dari sekarang</p>
</div>
{% endblock %}