CHANGES_in pdf : GOWTHAM
This commit is contained in:
parent
2519bd8fd6
commit
69193d3ac4
@ -623,6 +623,7 @@
|
||||
$cgst[] = isset($item->AfterCGST) ? $item->AfterCGST : 0.00;
|
||||
$sgst[] = isset($item->AfterSGST) ? $item->AfterSGST : 0.00;
|
||||
$igst[] = isset($item->AfterIGST) ? $item->AfterIGST : 0.00;
|
||||
$Insurance[] = isset($item->Insurance) ? $item->Insurance : 0.00;
|
||||
$tax[] = $totalwithtax;
|
||||
$invoiceTotalAmount = round($item->TotalOrderValue);
|
||||
?>
|
||||
@ -762,13 +763,52 @@
|
||||
<td class="text-right" style="border:0em;"><?php echo $currencyCode; ?></td>
|
||||
<td class="text-right" style="border:0em;"><?php echo number_alignment(abs(array_sum($igst))); ?></td>
|
||||
</tr>
|
||||
|
||||
<?php if(isset($reveuetax)){ ?>
|
||||
|
||||
<?php if($reveuetax[0]->AfterPackagingValue != 0){ ?>
|
||||
<tr>
|
||||
<td class="text-right" style="border:0em;"><?php _trans('Packaging '); ?></td>
|
||||
<td class="text-right" style="border:0em;"><?php echo $currencyCode; ?></td>
|
||||
<td class="text-right" style="border:0em;"><?php echo number_alignment($reveuetax[0]->AfterPackagingValue); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($reveuetax[0]->AfterFreightValue != 0){ ?>
|
||||
<tr>
|
||||
<td class="text-right" style="border:0em;"><?php _trans('Freight '); ?></td>
|
||||
<td class="text-right" style="border:0em;"><?php echo $currencyCode; ?></td>
|
||||
<td class="text-right" style="border:0em;"><?php echo number_alignment($reveuetax[0]->AfterFreightValue); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($reveuetax[0]->AfterDiscount != 0){ ?>
|
||||
<tr>
|
||||
<td class="text-right" style="border:0em;"><?php _trans('Discount '); ?></td>
|
||||
<td class="text-right" style="border:0em;"><?php echo $currencyCode; ?></td>
|
||||
<td class="text-right" style="border:0em;"><?php echo '-'.number_alignment($reveuetax[0]->AfterDiscount); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if(array_sum($Insurance) != 0){ ?>
|
||||
<tr>
|
||||
<td class="text-right" style="border:0em;"><?php _trans('Insurance '); ?></td>
|
||||
<td class="text-right" style="border:0em;"><?php echo $currencyCode; ?></td>
|
||||
<td class="text-right" style="border:0em;"><?php echo number_alignment(array_sum($Insurance)); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<tr>
|
||||
<?php $invoiceTotalGST = array_sum($cgst) + array_sum($sgst) + array_sum($igst); ?>
|
||||
<?php $differences = ($invoiceTotalGST + $invoiceTotalBasic) - $invoiceTotalAmount; ?>
|
||||
<?php $differences = ($invoiceTotalGST + array_sum($Insurance) + $invoiceTotalBasic); ?>
|
||||
<?php if(isset($reveuetax)){ $differences = ($differences + $reveuetax[0]->AfterPackagingValue + $reveuetax[0]->AfterFreightValue) - $reveuetax[0]->AfterDiscount; }?>
|
||||
|
||||
<td class="text-right" style="border:0em;"><?php _trans('Round Off'); ?></td>
|
||||
<?php $roundOf = $invoiceTotalAmount - $differences; ?>
|
||||
<td class="text-right" style="border:0em;"><?php _trans('Round Off'); echo $invoiceTotalAmount; ?></td>
|
||||
<td class="text-right" style="border:0em;"><?php echo $currencyCode; ?></td>
|
||||
<td class="text-right" style="border:0em;"><?php echo number_format($differences, 2); ?></td>
|
||||
<td class="text-right" style="border:0em;"><?php echo number_format($roundOf, 2); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-right" style="border:0em;"><b><?php _trans('Total Amount'); ?></b></td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user