<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Journal Expense Cashbon</title>
</head>
<body style="width:auto; margin:auto">

<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
    <?php	   
	$expense_date=json_decode($date_journal);
	foreach($expense_date as $rows){		   
  ?>
    <tr>
		<td colspan="4" class="s0"><?php echo $rows->CompanyName; ?></td>
    </tr>
    <tr>
		<td colspan="4" class="s0"><?php echo $rows->BranchName; ?></td>
    </tr>
    <tr>
		<td colspan="4" class="s1">Journal Expense Cashbon</td>
    </tr>
	<tr>
		<td colspan="4" class="s1">&nbsp;</td>
    </tr>
    <tr>
		<td width="20" class="s4">Account No</td>
		<td width="43" class="s4">Account Name</td>
		<td width="118" class="s4" align="right">Debit</td>
		<td width="85" class="s4" align="right">Credit</td>
    </tr>
 
	<tr>
	    <td class="s3"><b><?php echo convert_to_textual($rows->EBonDate); ?></b></td>
		<td class="s5"><b>Expense Cashbon</b></td>
		<td class="s5" align="right"><b><?php echo $rows->EBonNumber; ?></b></td>
		<td class="s5" align="right"></td>
    </tr> 
  <?php
	}	   
  ?>
  
  <?php	   
	$expense_jurnal=json_decode($list_jurnal);
	foreach($expense_jurnal as $row){		   
  ?>
	<tr>
	    <td class="s3"><?php echo $row->AccountNumber; ?></td>
		<td class="s5"><?php echo $row->AccountName; ?></td>
		<td class="s5" align="right"><?php echo number_format($row->EBonSaldoDebet,"2",",","."); ?></td>
		<td class="s5" align="right"><?php echo number_format($row->EBonSaldoCredit,"2",",","."); ?></td>
    </tr> 
  <?php
	}	   
  ?>
    <tr>
		<td class="s5" align="right" colspan="6">&nbsp;</td>
	</td>
</table>
</body></html>

