diff --git a/application/controllers/amendmentpurchaseorder.php b/application/controllers/amendmentpurchaseorder.php index 3595a759..dd3ca2d9 100755 --- a/application/controllers/amendmentpurchaseorder.php +++ b/application/controllers/amendmentpurchaseorder.php @@ -1068,6 +1068,10 @@ function UpdateAmendServicePurchaseOrder() } function EditAmendImportPO() { + + + //echo 'dsds'; + //die(); $MAD=''; $PONO =$this->input->post('txtPONO'); //echo $PONO; @@ -1123,7 +1127,7 @@ function UpdateAmendServicePurchaseOrder() $SpcialInstruction = $this->input->post('txtSpcialInstruction'); // $TotalOrder = $this->input->post('txtTotalorderValue'); - $TotalOrder = $this->input->post('txtToatlOrder'); + $TotalOrder = $this->input->post('txttot'); //$beforeTotalOrder=$this->input->post() //echo "Total Order:".$TotalOrder; $POStatus = $this->input->post('txtStatus'); @@ -1196,7 +1200,7 @@ function UpdateAmendServicePurchaseOrder() //echo "Before Loop"; for ($i = 1; $i <= $RowCount; $i++) { - // echo "Inside Loop"; + //echo "Inside Loop"; // die(); $CAD=''; $MaterialCode = $this->input->post('materialCode'.$i); @@ -1206,16 +1210,16 @@ function UpdateAmendServicePurchaseOrder() $Reqnumber = $this->input->post('Reqnumber'.$i); $itemRate = $this->input->post('itemRate'.$i); - + $beforeitemRate=$this->input->post('beforeitemRate'.$i); //$Exchangerate = $this->input->post('Exchangerate'.$i); $BasicPriceinmton = $this->input->post('BasicPriceInMTon'.$i); $Productprice = $this->input->post('ProductPrice'.$i); $LandingCharge = $this->input->post('LandingCharge'.$i); $beforeLandingCharge = $this->input->post('beforeLandingCharge'.$i); - // echo $LandingCharge; - // echo $beforeLandingCharge; - // die(); + //echo $LandingCharge; + //echo $beforeitemRate; + // die(); $AfterLandingCharge = $this->input->post('AfterLandingCharge'.$i); $HighSeas = $this->input->post('HighSeasSalesCharge'.$i); @@ -1294,6 +1298,14 @@ function UpdateAmendServicePurchaseOrder() $rowspanvalue=0; $LineItemNo = ''; + if(($itemRate-$beforeitemRate)!=0) + { + $rowspanvalue++; + //$CAD="Amended Quantity :".$beforeQuantity .""; + $CAD=$CAD."