<style type="text/css">
.font16{
	font-weight: bold;
	font-size: 14px;
}
._font9{
	font-size: 8px;
}
._header tr td{
	font-family: arial;
	font-size: 10px;
	height: 8px;
	vertical-align: top;
}
._tableHead{
	margin-top: 10px;
	margin-left: 20px;
}
._tableHead tr td{
	text-align: left;
	vertical-align: top;
	font-size: 11px;
}
._isi{
	width: 300px;
}
._isiDet{
	margin-top: 10px;
	border-top: 2px solid #000;
	border-bottom: 2px solid #000;
	border-left: 2px solid #000;
}
._isiDet{
	vertical-align: top;
}
._isiDet tr th{
	text-align: center;
	border-bottom: 2px solid #000;
	border-right: 2px solid #000;
	padding: 2px;
	font-size: 11px;
}
._isiDet tr th{
	font-size: 11px;
}
._isiDet tr td{
	font-size: 11px;
	padding: 5px;
}
._td{
	border-right: 2px solid #000;
	padding: 2px;
}
._tb{
	border-top: 2px solid #000;
	border-right: 2px solid #000;
	padding: 2px;
	font-weight: bold;
	vertical-align: top;
}
p{
	margin: 0px;
	margin-bottom: 2px;
	font-size: 11px;
}
._ttd{
	margin-top: 20px;
	text-align: center;
	font-size: 11px;
}
._ttd tr th{
	padding: 5px;
	font-weight: normal;
}
._ttd tr td{
	vertical-align: bottom;
	padding: 5px;
}
p{
	margin: 0px;
	margin-bottom: 2px;
}
</style>

<page backtop="13mm" backbottom="5mm" backleft="10mm" backright="10mm">
    <page_header style="height: 100px; margin-top: 10px">
		<table class="_header" style="margin-left: 20px">
			<tr>
				<td style="width: 300px">
					<p style="font-weight: bold; font-size: 14px; margin: 0px;">PT. SINAR GALAXY</p>
					<p style="font-weight: bold; font-size: 12px; margin: 0px;">Divisi Galaxy Mall</p>
				</td>
				<td style="width: 250px;font-weight: bold; font-size: 16px" valign="bottom">
					TANDA TERIMA
				</td>
				<td valign="bottom">No. : <?php echo $this->data->data->nojnl ?></td>
			</tr>
		</table>
		<hr>
    </page_header>
	<table class="_tableHead">
		<tr>
			<td class="_label">Sudah terima dari</td>
			<td class="_spasi">:</td>
			<td colspan="3" class="_isi"><?php echo $this->data->data->nmsub ?></td>
		</tr>
		<tr>
			<td class="_label">Untuk Pembayaran</td>
			<td class="_spasi">:</td>
			<td colspan="3" class="_isi"><?php echo $this->data->data->ket_jurnal ?></td>
		</tr>
		<tr>
			<td colspan="5">&nbsp;</td>
		</tr>
		<tr>
			<td class="_label"></td>
			<td class="_spasi">:</td>
			<td style="width: 20px;">Rp. </td>
			<td style="width: 120px;" align="right"><?php echo number_format($this->data->data->nilai, 2) ?></td>
			<td >&nbsp;</td>
		</tr>
		<tr>
			<td class="_label"></td>
			<td class="_spasi">:</td>
			<td style="width: 20px;">Rp. </td>
			<td style="width: 120px;" align="right"><?php echo number_format($this->data->data->ppn_nilai, 2) ?></td>
			<td >&nbsp;</td>
		</tr>
		<tr>
			<td class="_label"></td>
			<td class="_spasi">:</td>
			<td style="width: 20px;">Rp. </td>
			<td align="right"><?php echo '-'.number_format($this->data->data->pph_nilai, 2) ?></td>
			<td style="width: 200px;" >&nbsp;</td>
		</tr>
		<tr>
			<td class="_label"></td>
			<td class="_spasi"></td>
			<td style="width: 20px;"></td>
			<td align="right">--------------------------------</td>
			<td style="width: 200px;" >&nbsp;</td>
		</tr>
		<?php
		$total = $this->data->data->nilai;
		$total = $total + $this->data->data->ppn_nilai;
		$total = $total - $this->data->data->pph_nilai;
		?>
		<tr>
			<td class="_label">Jumlah</td>
			<td class="_spasi">:</td>
			<td style="width: 20px;">Rp. </td>
			<td align="right"><?php echo number_format($total, 2) ?></td>
			<td style="width: 200px;" >&nbsp;</td>
		</tr>
	</table>
	
	<table border="1" class="_ttd" cellspacing="0" cellpadding="0">
		<tr>
			<td style="width: 560px; vertical-align: top; text-align: left">
				<p>Penerimaan Invoice Penagihan</p>
				<p>Hari		:	Selasa,   Rabu,  dan  Jumat</p>
				<p>Jam		:	13.00  -  16.00</p>
			</td>
			<td style="width: 100px" rowspan="2">
				<p>Surabaya, <?php echo date("d/m/Y", strtotime($this->data->data->tgl)) ?></p>
				<p>Penerima</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>(.................................)</p>
			</td>
		</tr>
		<tr>
			<td style="width: 560px; vertical-align: top; text-align: left">
				<p>Pembayaran setiap</p>
				<p>Tanggal	:	15 dan 30 atau tanggal yang akan ditentukan</p>
				<p>Jam 	:	14.30  -  16.30</p>
			</td>
		</tr>
	</table>
</page>

<page backtop="13mm" backbottom="5mm" backleft="10mm" backright="10mm">
    <page_header style="height: 100px; margin-top: 10px">
		<table class="_header" style="margin-left: 20px">
			<tr>
				<td style="width: 300px">
					<p style="font-weight: bold; font-size: 14px; margin: 0px;">PT. SINAR GALAXY</p>
					<p style="font-weight: bold; font-size: 12px; margin: 0px;">Divisi Galaxy Mall</p>
				</td>
				<td style="width: 250px;font-weight: bold; font-size: 16px" valign="bottom">
					PERMINTAAN PEMBAYARAN
				</td>
				<td valign="bottom">No. : <?php echo $this->data->data->nojnl ?></td>
			</tr>
		</table>
		<hr>
    </page_header>
	<table class="_tableHead" style="margin-top: 20px;">
		<tr>
			<td class="_label">Kepada</td>
			<td class="_spasi">:</td>
			<td colspan="2" class="_isi">Bagian Akunting</td>
		</tr>
		<tr>
			<td class="_label">Dibayarkan Kepada</td>
			<td class="_spasi">:</td>
			<td colspan="2" class="_isi"><?php echo $this->data->data->nmsub ?></td>
		</tr>
		<tr>
			<td class="_label">Jumlah</td>
			<td class="_spasi">:</td>
			<td style="width: 20px;">Rp. </td>
			<td><?php echo number_format($this->data->data->total, 2) ?></td>
		</tr>
		<tr>
			<td class="_label">Terbilang</td>
			<td class="_spasi">:</td>
			<td colspan="2"><?php $konversi = new Konversi;
					echo $konversi->conversiAngka($total)?></td>
		</tr>
		<tr>
			<td class="_label">Untuk Pembayaran</td>
			<td class="_spasi">:</td>
			<td colspan="2" class="_isi"><?php echo $this->data->data->ket_jurnal ?></td>
		</tr>
		<tr>
			<td class="_label">&nbsp;;</td>
		</tr>
		<tr>
			<td class="_label">Bentuk Pembayaran</td>
			<td class="_spasi">:</td>
			<td colspan="2" class="_isi"><?php echo $this->data->data->pembayaran ?></td>
		</tr>
		<tr>
			<td class="_label">Tgl. Tanda Terima</td>
			<td class="_spasi">:</td>
			<td colspan="2" class="_isi"><?php echo date("d/m/Y", strtotime($this->data->data->tgl)) ?></td>
		</tr>
		<tr>
			<td class="_label">Tgl. Jatuh Tempo</td>
			<td class="_spasi">:</td>
			<td colspan="2" class="_isi"><?php echo date("d/m/Y", strtotime($this->data->data->tgl_kembali)) ?></td>
		</tr>
		<tr>
			<td class="_label">Tgl. Bilyet Giro / Cek</td>
			<td class="_spasi">:</td>
			<td colspan="2" class="_isi"><?php echo date("d/m/Y", strtotime($this->data->data->tgl_kembali)) ?></td>
		</tr>
	</table>
	
	<table class="_ttd" cellspacing="0" cellpadding="0">
		<tr>
			<td style="width: 100px">
				<p>Diminta Oleh	:</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>(.................................)</p>
			</td>
			<td style="width: 350px">
				<p>Diperiksa Oleh	:</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>(.................................)</p>
			</td>
			<td style="width: 100px">
				<p>Disetujui Oleh	:</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
				<p>(.................................)</p>
			</td>
		</tr>
	</table>
</page>
