<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Journal  Fixed Asset Dispose</title>
</head>
<body style="width:auto; margin:auto">
<style type="text/css">
@media print {
.noPrint { display: none; }
}
</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 />
    
    <?php    
        foreach($detail as $rows){  
            $FSNumber     = $rows->FSNumber;
            $FSDate       = convert_to_dmy($rows->FSDate);
            $Branch       = $rows->BranchCode;
            $BranchName   = $rows->BranchName;
        }     
    ?>

    <table width="90%" border="0" cellspacing="0" cellpadding="1" align="center">
        <tr>
            <td colspan="6" class="s0"><?php echo $this->session->userdata('company_name'); ?></td>
        </tr>
        <tr>
            <td colspan="6" class="s0"><?php echo $BranchName; ?></td>
        </tr>
        <tr>
            <td colspan="6" class="s1">Journal  Selling Fixed Asset</td>
        </tr>
        <tr>
            <td colspan="6" 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(Base)</td>
            <td width="85" class="s4" align="right">Credit(Base)</td>
            <td width="118" class="s4" align="right">Debit(Prime)</td>
            <td width="85" class="s4" align="right">Credit(Prime)</td>
        </tr>
      
      <tr>
          <td class="s5" align="right" colspan="6" height="15">&nbsp;</td>
      </tr>


      <?php for($x=0;$x<count($list);$x++):?>

      <tr>
        <td class="s3" colspan="6" style="border-bottom:1px solid black" valign="middle"> <?= 'Transaksi Number : '.$FSNumber;?> <?= '      AssetCode : '.$list[$x]['AssetCode'];?><?= '      Tanggal : '.$FSDate;?></td>
      </tr>

        <?php for($i=0;$i<count($list[$x]['list']);$i++):?>
            

        <tr>
            <td class="s3"><?= $list[$x]['list'][$i]['FSAccountNumber']; ?></td>
            <td class="s5"><?= $list[$x]['list'][$i]['AccountName']; ?> </td>
            <td class="s5" align="right"><?= number_format($list[$x]['list'][$i]['FSSaldoDebet'],"2",",","."); ?></td>
            <td class="s5" align="right"><?= number_format($list[$x]['list'][$i]['FSSaldoCredit'],"2",",","."); ?></td>
            <td class="s5" align="right"><?= ($list[$x]['list'][$i]['FSSaldoDebet'] == 0) ? number_format(0,"2",",",".") : number_format($list[$x]['list'][$i]['AmountCurrency'],"2",",","."); ?></td>
            <td class="s5" align="right"><?= ($list[$x]['list'][$i]['FSSaldoCredit'] == 0) ? number_format(0,"2",",",".") : number_format($list[$x]['list'][$i]['AmountCurrency'],"2",",","."); ?></td>
        </tr> 

        <?php endfor;?>

        <tr>
            <td class="s5" align="right" colspan="6" height="20">&nbsp;</td>
        </tr>

      <?php endfor;?>
    </table>
  </body>
</html>

