From c4ac4dc8041f3bf0fe2cde7f402139673acc23a4 Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Sat, 22 Jul 2017 12:05:21 +0530 Subject: [PATCH] import issue --- application/views/importpo.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/application/views/importpo.php b/application/views/importpo.php index 76572077..3cecb5ba 100755 --- a/application/views/importpo.php +++ b/application/views/importpo.php @@ -2112,7 +2112,7 @@ function Ratechange(){ var txtQuantity = parseFloat( $('#Quantity').val()); var txtUnitPrice = parseFloat($('#Rate').val()); var Tot = txtQuantity * txtUnitPrice - console.log(Tot); + //console.log(Tot); $('#txtBasicValue').val(Math.round(Tot)); $('#imBasicPrice').val(Math.round(Tot)); @@ -2140,6 +2140,7 @@ function Ratechange(){ $('#EditimBasicPrice').val(EditTot); $('#EditExchangeRt').val(txtexchangerate); $('#EditINRBasicvalue').val(EditBasicINR); + Calculateloadingcharge(); } @@ -2244,7 +2245,17 @@ $('#TotalExp').val(''); var result= ; //$('#AfterLandingCharge').val(parseFloat(Math.round(result))); - $('#AfterLandingCharge').val(parseFloat(result).toFixed(2)); + if(isNaN(result)) + { + $('#AfterLandingCharge').val(''); + } + else{ + $('#AfterLandingCharge').val(parseFloat(Math.round(result))); + } + + + + //$('#AfterLandingCharge').val(parseFloat(result).toFixed(2)); CalculateHighseassalescharge(); //alert();