diff --git a/app/Views/alterpurchaseorder.php b/app/Views/alterpurchaseorder.php index 776a323c..31b3f0b9 100755 --- a/app/Views/alterpurchaseorder.php +++ b/app/Views/alterpurchaseorder.php @@ -1583,22 +1583,48 @@ if (!empty($INRSYMBOL)) { StateTaxCheck = $("input:radio[name='Range']:checked").val(); $('#txtPoRange').val(StateTaxCheck); //alert('Radio clicke:'+StateTaxCheck); - if (StateTaxCheck == "0") { + if (StateTaxCheck == "0") { //local // style="display:none;" $('#Vat').removeAttr("style"); $('#TotVat').removeAttr("style"); + alert("i am local"); + $('#CGSTEditModel').attr("style", ""); + $('#SGSTEditModel').attr("style", ""); + $('#IGSTEditModel').attr("style", "display:none"); + $('#cgstContainerView').attr("style", ""); + $('#sgstContainerView').attr("style", ""); + $('#igstContainerView').attr("style", "display:none"); + $('#CGSTAddModel').attr("style",""); + $('#SGSTAddModel').attr("style",""); + $('#IGSTAddModel').attr("style","display:none"); + $('#CST').attr("style", "display:none;"); $('#TotCST').attr("style", "display:none;"); - } else { + } else { //interstate $('#CST').removeAttr("style"); $('#TotCST').removeAttr("style"); + + $('#CGSTEditModel').attr("style", "display:none"); + $('#SGSTEditModel').attr("style", "display:none"); + $('#IGSTEditModel').attr("style", ""); + $('#cgstContainerView').attr("style", "display:none"); + $('#sgstContainerView').attr("style","display:none"); + $('#igstContainerView').attr("style",""); + $('#CGSTAddModel').attr("style","display:none"); + $('#SGSTAddModel').attr("style","display:none"); + $('#IGSTAddModel').attr("style",""); + $('#Vat').attr("style", "display:none;"); $('#TotVat').attr("style", "display:none;"); } } + $(document).ready(function(){ + SetVatorCST() + }) + function SetVatCalculation() { VatCalculation = $("input:radio[name='optVat']:checked").val(); $('#VatCalModel').modal('hide'); @@ -2440,8 +2466,8 @@ if (!empty($INRSYMBOL)) {