latest commit 20-05-2025

This commit is contained in:
vadivelJ96 2025-05-21 09:15:57 +05:30
parent a30f939c8c
commit 551e1a0eb1
2 changed files with 15 additions and 1 deletions

View File

@ -3443,6 +3443,7 @@ if (!empty($INRSYMBOL)) {
var Total = (parseFloat(basicval) + parseFloat(AfterCgst) + parseFloat(AfterSgst) + parseFloat(AfterIgst) + parseFloat(OtherAmt) - parseFloat(AfterDisVal) + parseFloat(AfterFreightAmountloc)).toFixed(2);
Total = isNaN(Total) ? 0 : Total ;
var TotalOrderValuePerkg = $("#txtTotalOrderValue").val();

View File

@ -1006,7 +1006,20 @@ $(document).ready(function () {
<?php if ($CapitalRange == '1') { ?>
<td style="text-align:right !important"><?php echo $record->ServiceTaxamount; ?></td>
<td style="text-align:right !important">
<?php echo number_format($record->Rate * $record->Quantity + $record->ServiceTaxamount + $record->otherallowance + $record->Afvalue - $record->Afterdiscountval, 2, '.', '') ?>
<?php
$rate = (float) $record->Rate;
$quantity = (float) $record->Quantity;
$serviceTax = (float) $record->ServiceTaxamount;
$otherAllowance = (float) $record->otherallowance;
$afValue = (float) $record->Afvalue;
$afterDiscount = (float) $record->Afterdiscountval;
$total = $rate * $quantity + $serviceTax + $otherAllowance + $afValue - $afterDiscount;
echo is_nan($total) || !is_finite($total)
? '0.00'
: number_format($total, 2, '.', '');
?>
</td>
<?php } ?>