<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head><title>Piutang Afiliasi</title>
	<style type="text/css">
		@media print {
			input.noPrint {
				display: none;
			}
			a.noPrint {
				display: none;
			}
		}
    </style>
	</head>
	<body style="width:auto; margin:auto">
	
		<div style="padding:2px">
			<a href="#" class="easyui-linkbutton noPrint" data-options="plain:true,iconCls:'icon-print'" onClick="window.print()">Print</a>
		</div><br />
		
		<!-- Company Transfer -->
        
        <table width="80%" border="0" cellspacing="0" cellpadding="0" style="margin-left:100px; margin-top:10px;">
			<?php foreach($list_from as $row_from1):?>
			<tr>
				<td colspan="6" class="s0"><?php echo $row_from1->FromCompany;?></td>
			</tr>
			<tr>
				<td colspan="6" class="s1">Journal Piutang Afiliasi</td>
			</tr>
			<tr>
				<td width="" class="s4">Account No</td>
				<td width="" class="s4">Account Name</td>
				<td width="" class="s4" align="right">Debet(Base)</td>
				<td width="" class="s4" align="right">Credit(Base)</td>
				<td width="" class="s4" align="right">Debet(Prime)</td>
				<td width="" class="s4" align="right">Credit(Prime)</td>
			</tr>
			<tr>
				<td class="s5"><b><?php echo $row_from1->ADebtDate;?></b></td>
				<td class="s3"><b><?php echo "Piutang Afiliasi";?></b></td>
				<td class="s5" align="left"><b><?php echo $row_from1->ADebtNumber;?></b></td>
				<td class="s5"></td>
				<td class="s5"></td>
				<td class="s5"></td>
			</tr>
			<?php endforeach;?>
			
			<tr>
				<td class="s3"><?php echo $akun_payment_to->AccountNumber; ?></td>
				<td class="s5"><?php echo $akun_payment_to->AccountName; ?></td>
				<td class="s5" align="right"><?php echo number_format($list_detail_to->CreditAmount,"2",",","."); ?></td>
				<td class="s5" align="right"><?php echo number_format(0,"2",",","."); ?></td>
				<td class="s5" align="right"><?php echo number_format($list_detail_to->CreditAmount,"2",",","."); ?></td>
				<td class="s5" align="right"><?php echo number_format(0,"2",",","."); ?></td>
			
			</tr> 
		  
          
			<tr>
				<td class="s3"><?php echo $list_detail_from->AccountNumberCredit; ?></td>
				<td class="s5"><?php echo $list_detail_from->AccountName; ?></td>
				<td class="s5" align="right"><?php echo number_format(0,"2",",","."); ?></td>
                <td class="s5" align="right"><?php echo number_format($list_detail_from->DebetAmount,"2",",","."); ?></td>
                <td class="s5" align="right"><?php echo number_format(0,"2",",","."); ?></td>
                <td class="s5" align="right"><?php echo number_format($list_detail_from->DebetAmount,"2",",","."); ?></td>
			</tr> 
			
			
			<tr>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
			</tr>
		</table>
        
		
		
		<!--// Company Receipt //-->
		<table width="80%" border="0" cellspacing="0" cellpadding="0" style="margin-left:100px; margin-top:10px;">
			<?php foreach($list_to as $row_to1):?>
			<tr>
				<td colspan="6" class="s0"><?php echo $row_to1->ToCompany;?></td>
			</tr>
			<tr>
				<td colspan="6" class="s1">Journal Hutang Afiliasi</td>
			</tr>
			<tr>
				<td width="" class="s4">Account No</td>
				<td width="" class="s4">Account Name</td>
				<td width="" class="s4" align="right">Debet(Base)</td>
				<td width="" class="s4" align="right">Credit(Base)</td>
				<td width="" class="s4" align="right">Debet(Prime)</td>
				<td width="" class="s4" align="right">Credit(Prime)</td>
			</tr>
			<tr>
				<td class="s5"><b><?php echo $row_to1->ADebtDate;?></b></td>
				<td class="s3"><b><?php echo "Hutang Afiliasi";?></b></td>
				<td class="s5" align="left"><b><?php echo $row_to1->ADebtNumber;?></b></td>
				<td class="s5"></td>
				<td class="s5"></td>
				<td class="s5"></td>
				<td class="s5"></td>
			</tr>
			<?php endforeach;?>
			
			<tr>
				<td class="s3"><?php echo $list_detail_to->AccountNumberDebet; ?></td>
				<td class="s5"><?php echo $list_detail_to->AccountName; ?></td>
				<td class="s5" align="right"><?php echo number_format($list_detail_to->DebetAmount,"2",",","."); ?></td>
				<td class="s5" align="right"><?php echo number_format(0,"2",",","."); ?></td>
				<td class="s5" align="right"><?php echo number_format($list_detail_to->DebetAmount,"2",",","."); ?></td>
				<td class="s5" align="right"><?php echo number_format(0,"2",",","."); ?></td>
			</tr> 
			
			<tr>
				<td class="s3"><?php echo $akun_payment_from->AccountNumber; ?></td>
				<td class="s5"><?php echo $akun_payment_from->AccountName; ?></td>
				<td class="s5" align="right"><?php echo number_format(0,"2",",","."); ?></td>
				<td class="s5" align="right"><?php echo number_format($list_detail_to->CreditAmount,"2",",","."); ?></td>
				<td class="s5" align="right"><?php echo number_format(0,"2",",","."); ?></td>
				<td class="s5" align="right"><?php echo number_format($list_detail_to->CreditAmount,"2",",","."); ?></td>
			</tr> 
		  
			
			<tr>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
			</tr>
		</table>
	</body>
</html>