From 11111c8d34d14752f2421dbf62cf20f2dcc160e1 Mon Sep 17 00:00:00 2001 From: vadivel J Date: Sat, 21 Sep 2024 10:45:42 +0530 Subject: [PATCH] alterpurchaseorder modal fix - vadivel J --- app/Views/alterpurchaseorder.php | 572 ++++++++++++++++--------------- 1 file changed, 303 insertions(+), 269 deletions(-) diff --git a/app/Views/alterpurchaseorder.php b/app/Views/alterpurchaseorder.php index b4fd7bfb..49b59eb1 100755 --- a/app/Views/alterpurchaseorder.php +++ b/app/Views/alterpurchaseorder.php @@ -391,12 +391,15 @@ if (!empty($INRSYMBOL)) { Editchange(); }); + + $('#PackagingType').change(function () { $('#txtPackaging').val(''); $('#txtAfterPackaging').val(''); selValue = $("#PackagingType").val(); if (selValue == PercentageType) { var PackagingCalculation = ''; + $('#REVENUE').modal('hide'); $('#packagingcalmodel').modal('show'); $('#txtPackaging').removeAttr('readonly', 'true'); } else { @@ -412,6 +415,7 @@ if (!empty($INRSYMBOL)) { } //change(); }); + $('#EditPackagingType').change(function () { $('#txtEditPackaging').val(''); $('#txtEditAfterPackaging').val(''); @@ -504,6 +508,7 @@ if (!empty($INRSYMBOL)) { selValue = $("#drpFreight").val(); if (selValue == PercentageType) { var freightCalculation = ''; + $('#REVENUE').modal('hide'); $('#freightmodel').modal('show'); $('#txtFreight').removeAttr('readonly', 'true'); } else if (selValue == NilType) { @@ -1542,11 +1547,13 @@ if (!empty($INRSYMBOL)) { function SetPackagingOption() { PackagingCalculation = $("input:radio[name='optPackaging']:checked").val(); $('#packagingcalmodel').modal('hide'); + showmodel(); } function setfreightOption() { freightCalculation = $("input:radio[name='optfreight']:checked").val(); $('#freightmodel').modal('hide'); + showmodel(); } /* Set the Packaging calculation option for calculating Packaging */ function SetExciseCalculation() { @@ -2735,7 +2742,7 @@ if (!empty($INRSYMBOL)) {
-