mrir import po total amount correction

This commit is contained in:
venbatechnologies@gmail.com 2017-08-12 12:00:22 +05:30
parent e0497a129a
commit c7c9e2aa73

View File

@ -22,6 +22,7 @@
$AdvanceAmount=0.00;
$color='';
$ReqDate='';
$Total='';
$index=0;
@ -41,7 +42,9 @@
foreach ($POItem as $PO)
{
$ReqNo=$PO->ReqNo;
$ReqDate=$PO->ReqDate;
$ReqD=new DateTime($PO->ReqDate,new DateTimeZone('Asia/Kolkata'));
$ReqDate=$ReqD->format('d-m-Y');
//$ReqDate=$PO->ReqDate;
$PONO = $PO->PONO;
$postatus= $PO->Status;
$SuplierName = $PO->SupplierName;
@ -64,6 +67,7 @@
// $PayableAT=$PO->PayableAT;
$DeliverySchedule=$PO->DeliverySchedule;
$AdvanceAmount=$PO->AdvanceAmount;
$Total=$PO->TotalOrderValue;
}
}
@ -299,7 +303,7 @@
<td style="text-align: right;"><strong>Total Amount In <?php echo "$CurrencyCode ($CurrencyName)" ;?> &nbsp;</strong></td>
<td style="text-align: right;" colspan="2"><strong><?php echo number_format($TotalOrderValue, 2, '.', '');?>&nbsp;</strong></td>
<td style="text-align: right;" colspan="2"><strong><?php echo number_format($Total, 2, '.', '');?>&nbsp;</strong></td>
</tr>
@ -315,7 +319,7 @@
<tr>
<td style="text-align: right;"><strong>Balance amount needs to pay &nbsp;</strong></td>
<td style="text-align: right;" colspan="2"><strong><?php echo number_format(($TotalOrderValue-$AdvanceAmount), 2, '.', '');?>&nbsp;</strong></td>
<td style="text-align: right;" colspan="2"><strong><?php echo number_format(($Total-$AdvanceAmount), 2, '.', '');?>&nbsp;</strong></td>
</tr>