mrir import po total amount correction
This commit is contained in:
parent
e0497a129a
commit
c7c9e2aa73
@ -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)" ;?> </strong></td>
|
||||
|
||||
<td style="text-align: right;" colspan="2"><strong><?php echo number_format($TotalOrderValue, 2, '.', '');?> </strong></td>
|
||||
<td style="text-align: right;" colspan="2"><strong><?php echo number_format($Total, 2, '.', '');?> </strong></td>
|
||||
|
||||
|
||||
</tr>
|
||||
@ -315,7 +319,7 @@
|
||||
<tr>
|
||||
|
||||
<td style="text-align: right;"><strong>Balance amount needs to pay </strong></td>
|
||||
<td style="text-align: right;" colspan="2"><strong><?php echo number_format(($TotalOrderValue-$AdvanceAmount), 2, '.', '');?> </strong></td>
|
||||
<td style="text-align: right;" colspan="2"><strong><?php echo number_format(($Total-$AdvanceAmount), 2, '.', '');?> </strong></td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user