<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Preview Journal Transaction</title>
</head>
<body style="width:auto; margin:auto">
<style type="text/css">
@media print {
.noPrint { display: none; }
}
.ahover:hover{
	cursor: pointer;
	color:blue;
}
</style>
<div style="padding:2px">
	<a href="#" class="easyui-linkbutton noPrint" data-options="plain:true,iconCls:'icon-print'" onClick="window.print()">Print</a>
</div><br />
<div style="width:100%; height:500px; overflow:auto">
	<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
		<tr>
			<td colspan="7" class="s0 " align="center"><span class="normal_bold"><?php echo $branch->CompanyName;?></span></td>
		</tr>
	    <!-- <tr>
			<td colspan="7" class="s0" align="center"><span class="normal_bold"><?php echo $branch->BranchName;?></span></td>
		</tr> -->
		<tr>
			<td colspan="7" class="s1" align="center"><span class="normal_bold">List Journal Profit &amp; Loss</span></td>
		</tr>
		<tr>
			<td width="150" class="s4 "><span class="normal_bold">Branch</span></td>
			<td width="150" class="s4 "><span class="normal_bold">Journal Date</span></td>
			<td width="150" class="s4 "><span class="normal_bold">Journal Number</span></td>
			<td width="150" class="s4 "><span class="normal_bold">Journal Desc</span></td>
			<td width="160" class="s4 " ><span class="normal_bold">Debet</span></td>
			<td width="160" class="s4 " ><span class="normal_bold">Credit</span></td>
			<td width="160" class="s4 " ><span class="normal_bold">Type</span></td>
		</tr>
		
		<tr>
			 <td height="23" class="s3" colspan="7"> <?php echo 'Account Number : ';?> <?php echo $Account_Number; ?> <?php echo 'Account Name : ';?> <?php echo $Account_Name; ?></td>
		</tr> 
			
			<?php foreach($all_journal as $row):?>
		<tr>
			<td class="s3 text-left"><span class="normal_bold"><?php echo $row->BranchName; ?></span></td>
			<td class="s3 text-left"><span class="normal_bold"><?php echo convert_to_dmy($row->Journal_Date); ?></span></td>
			<td class="s5 text-left"><span class="normal_bold ahover" onclick="open_transaction('<?php echo $row->Journal_Number;?>','<?php echo $row->Trans_Type;?>')"><?php echo $row->Journal_Number; ?></span></td> 
			<td class="s5 text-right"><span class="normal_bold"><?php echo $row->Journal_Desc; ?></span></td>
			<td class="s5 text-right"><span class="normal_bold"><?php echo number_format($row->Saldo_Debet,"2",",","."); ?></span></td>
			<td class="s5 text-right"><span class="normal_bold"><?php echo number_format($row->Saldo_Credit,"2",",","."); ?></span></td>
			<td class="s5 text-right"><span class="normal_bold"><?php echo $row->Trans_Type; ?></span></td>
		</tr> 
		<?php endforeach;?>
	</table>
</div>
</body>
</html>
<script type="text/javascript">
	
</script>