From 697297fcc742c2683097b7dc522029a128a96b5a Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Thu, 7 Sep 2017 18:21:43 +0530 Subject: [PATCH] amendment import freight --- .../controllers/amendmentpurchaseorder.php | 52 +++- application/views/editImportAmendPO.php | 229 +++++++++++++++++- 2 files changed, 274 insertions(+), 7 deletions(-) diff --git a/application/controllers/amendmentpurchaseorder.php b/application/controllers/amendmentpurchaseorder.php index 1cdb6ad7..9f97bc40 100755 --- a/application/controllers/amendmentpurchaseorder.php +++ b/application/controllers/amendmentpurchaseorder.php @@ -1301,6 +1301,21 @@ function UpdateAmendServicePurchaseOrder() $RMCIncludingCustomersPerKG = $this->input->post('RMCIncludingCustomersPerKG'.$i); $beforeRMCIncludingCustomersPerKG = $this->input->post('RMCIncludingCustomersPerKG'.$i); + + + + $FreightType=$this->input->post('FreightType'.$i); + $NoOfTrip=$this->input->post('NoOfTrip'.$i); + $Freightrate=$this->input->post('FreightValue'.$i); + $Freightamount=$this->input->post('AfterFreightValue'.$i); + + + + $beforeFreightType=$this->input->post('beforeFreightType'.$i); + $beforeNoOfTrip=$this->input->post('beforeNoOfTrip'.$i); + $beforeFreightrate=$this->input->post('beforeFreightValue'.$i); + $beforeFreightamount=$this->input->post('beforeAfterFreightValue'.$i); + // if($RMCIncludingCustomersPerKG-$beforeRMCIncludingCustomersPerKG ) // { // $CAD="Amended RMC Including Customs".$beforeRMCIncludingCustomersPerKG ."
"; @@ -1409,6 +1424,41 @@ function UpdateAmendServicePurchaseOrder() } + + if($FreightType!=$beforeFreightType) + { + //$CAD=$CAD."Amended Additional Excise duty :".$beforeAddAdtional ."
"; + $rowspanvalue++; + $CAD=$CAD."Amended Freight Type: ".$beforeFreightType ."Current Additional Excise duty:".$FreightType.""; + } + + + if($NoOfTrip-$beforeNoOfTrip) + { + //$CAD=$CAD."Amended Additional Excise duty :".$beforeAddAdtional ."
"; + $rowspanvalue++; + $CAD=$CAD."Amended No of Trip: ".$beforeNoOfTrip ."Current Additional Excise duty:".$NoOfTrip.""; + } + + + + if($Freightrate-$beforeFreightrate) + { + //$CAD=$CAD."Amended Additional Excise duty :".$beforeAddAdtional ."
"; + $rowspanvalue++; + $CAD=$CAD."Amended Freightrate: ".$beforeFreightrate ."Current Freightrate:".$Freightrate.""; + } + + + if($Freightamount-$beforeFreightamount) + { + //$CAD=$CAD."Amended Additional Excise duty :".$beforeAddAdtional ."
"; + $rowspanvalue++; + $CAD=$CAD."Amended Freight Amount: ".$beforeFreightamount ."Current Freight Amount:".$Freightamount.""; + } + + + if($rowspanvalue>0) { $rowspanvalue++; @@ -1440,7 +1490,7 @@ function UpdateAmendServicePurchaseOrder() // endforeach; - $ImportTaxList = array('LineItemNo'=>$LineItemNo,'BasicPriceInMTon'=>$BasicPriceinmton,'ProductPrice'=>$Productprice,'LandingCharge'=>$LandingCharge,'AfterLandingCharge'=>$AfterLandingCharge,'AfterHighSeasSalesCharge'=>$AfterHighSeas,'HighSeasSalesCharge'=>$HighSeas,'CustomDuty'=>$CustomDuty,'AfterCustomDuty'=>$AfterCustomDuty,'ExciseDuty'=>$ExciseDuty,'AfterExciseDuty'=>$AfterExciseDuty,'ExciseDutyEdCess'=>$ExciseDutyEd,'AfterExciseDutyEdCess'=>$AfterExciseDutyEd,'ExciseDutySHCess'=>$ExciseDutySH,'CustomEdCess'=>$CustomEd,'CustomSHCess'=>$CustomSH,'AddlExciseDuty'=>$AddAdtional,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'AfterExciseDutySHCess'=>$AfterExciseDutySH,'AfterAddlExciseDuty'=>$AfterAddAdtional,'Grossdutypayable'=>$Grossdutypayable,'AvailableModvat'=>$AvailableModvat,'Grossexpensesduetocustomduty'=>$Grossexpensesduetocustomduty,'purchaseratePerKG'=>$purchaseratePerKG,'CustomDutyExpensesPerKG'=>$CustomDutyExpensesPerKG,'RMCIncludingCustomersPerKG'=>$RMCIncludingCustomersPerKG,'QuantityKG'=>$QuantityKG,'AfterCustomSHCess'=>$AfterCustomSH,'AfterCustomEdCess'=>$AfterCustomEd,'TotalValue'=>$Totalvalueitem); + $ImportTaxList = array('LineItemNo'=>$LineItemNo,'BasicPriceInMTon'=>$BasicPriceinmton,'ProductPrice'=>$Productprice,'LandingCharge'=>$LandingCharge,'AfterLandingCharge'=>$AfterLandingCharge,'AfterHighSeasSalesCharge'=>$AfterHighSeas,'HighSeasSalesCharge'=>$HighSeas,'CustomDuty'=>$CustomDuty,'AfterCustomDuty'=>$AfterCustomDuty,'ExciseDuty'=>$ExciseDuty,'AfterExciseDuty'=>$AfterExciseDuty,'ExciseDutyEdCess'=>$ExciseDutyEd,'AfterExciseDutyEdCess'=>$AfterExciseDutyEd,'ExciseDutySHCess'=>$ExciseDutySH,'CustomEdCess'=>$CustomEd,'CustomSHCess'=>$CustomSH,'AddlExciseDuty'=>$AddAdtional,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'AfterExciseDutySHCess'=>$AfterExciseDutySH,'AfterAddlExciseDuty'=>$AfterAddAdtional,'Grossdutypayable'=>$Grossdutypayable,'AvailableModvat'=>$AvailableModvat,'Grossexpensesduetocustomduty'=>$Grossexpensesduetocustomduty,'purchaseratePerKG'=>$purchaseratePerKG,'CustomDutyExpensesPerKG'=>$CustomDutyExpensesPerKG,'RMCIncludingCustomersPerKG'=>$RMCIncludingCustomersPerKG,'QuantityKG'=>$QuantityKG,'AfterCustomSHCess'=>$AfterCustomSH,'AfterCustomEdCess'=>$AfterCustomEd,'TotalValue'=>$Totalvalueitem,'FreightType'=>$FreightType,'NoOfTrip'=>$NoOfTrip,'FreightValue'=>$Freightrate,'AfterFreightValue'=>$Freightamount); // print_r($ImportTaxList); //die(); $ImportList = $this->purchaseorder_model->addImportTax($ImportTaxList); diff --git a/application/views/editImportAmendPO.php b/application/views/editImportAmendPO.php index 924da030..e1323d3a 100755 --- a/application/views/editImportAmendPO.php +++ b/application/views/editImportAmendPO.php @@ -1195,7 +1195,7 @@ if(!empty($RequistionDetails)) ?> -