diff --git a/application/controllers/amendmentpurchaseorder.php b/application/controllers/amendmentpurchaseorder.php
index 6382b102..5146e01f 100755
--- a/application/controllers/amendmentpurchaseorder.php
+++ b/application/controllers/amendmentpurchaseorder.php
@@ -819,14 +819,18 @@ function UpdateAmendServicePurchaseOrder()
//die();
if($PaymentTerms!=$beforePaymentTerms)
{
- $MAD=$MAD."Amended Payment Terms:". $beforePaymentTerms ."";
+ //$MAD=$MAD."Amended Payment Terms:". $beforePaymentTerms ."";
+ $MAD.="Amended Payment Terms " . $beforePaymentTerms."
";
}
//$Payableat=$this->input->post('PayableAT');
$Palaceoforigin=$this->input->post('PlaceOforigin');
+
$beforePalaceoforigin=$this->input->post('beforePlaceOforigin');
+
if($Palaceoforigin!=$beforePalaceoforigin)
{
- $MAD=$MAD."Amended Place of Origin:". $beforePalaceoforigin ."";
+ //$MAD=$MAD."Amended Place of Origin:". $beforePalaceoforigin ."";
+ $MAD.=$MAD."Amended Place of Origin: " . $beforePalaceoforigin."
";
}
//echo $MAD;
//die();
@@ -873,10 +877,7 @@ function UpdateAmendServicePurchaseOrder()
$MaterialCode = $this->input->post('materialCode'.$i);
$Quantity = $this->input->post('quantity'.$i);
$beforeQuantity=$this->input->post('beforequantity'.$i);
- if(($Quantity-$beforeQuantity)!=0)
- {
- $CAD="Amended Quantity :".$beforeQuantity ."";
- }
+
$Reqnumber = $this->input->post('Reqnumber'.$i);
$itemRate = $this->input->post('itemRate'.$i);
@@ -886,10 +887,7 @@ function UpdateAmendServicePurchaseOrder()
$Productprice = $this->input->post('ProductPrice'.$i);
$LandingCharge = $this->input->post('LandingCharge'.$i);
$beforeLandingCharge = $this->input->post('beforeLandingCharge'.$i);
- if(($LandingCharge-$beforeLandingCharge)!=0)
- {
- $CAD=$CAD."Amended Landing :".$beforeLandingCharge ."";
- }
+
// echo $LandingCharge;
// echo $beforeLandingCharge;
// die();
@@ -897,125 +895,61 @@ function UpdateAmendServicePurchaseOrder()
$AfterLandingCharge = $this->input->post('AfterLandingCharge'.$i);
$HighSeas = $this->input->post('HighSeasSalesCharge'.$i);
$beforeHighSeas=$this->input->post('beforeHighSeasSalesCharge'.$i);
- if(($HighSeas-$beforeHighSeas)!=0)
- {
- $CAD=$CAD."Amended Highsesas :".$beforeHighSeas ."";
- }
+
$AfterHighSeas = $this->input->post('AfterHighSeasSalesCharge'.$i);
$CustomDuty = $this->input->post('CustomDuty'.$i);
$beforeCustomDuty=$this->input->post('beforeCustomDuty'.$i);
- if(($CustomDuty-$beforeCustomDuty)!=0)
- {
- $CAD=$CAD."Amended CustomDuty :".$beforeCustomDuty ."";
- }
-
-
+
$AfterCustomDuty = $this->input->post('AfterCustomDuty'.$i);
$ExciseDuty = $this->input->post('ExciseDuty'.$i);
$beforeExciseDuty=$this->input->post('beforeExciseDuty'.$i);
- if(($ExciseDuty-$beforeExciseDuty)!=0)
- {
- $CAD=$CAD."Amended ExciseDuty :".$beforeExciseDuty ."";
- }
-
-
+
$AfterExciseDuty = $this->input->post('AfterExciseDuty'.$i);
$ExciseDutyEd = $this->input->post('ExciseDutyEdCess'.$i);
$beforeExciseDutyEd=$this->input->post('beforeExciseDutyEdCess'.$i);
- if($ExciseDutyEd-$beforeExciseDutyEd)
- {
- $CAD=$CAD."Amended ExciseDutyEd :".$beforeExciseDutyEd ."";
- }
-
-
+
$AfterExciseDutyEd = $this->input->post('AfterExciseDutyEdCess'.$i);
$ExciseDutySH = $this->input->post('ExciseDutySHCess'.$i);
$beforeExciseDutySH=$this->input->post('beforeExciseDutySHCess'.$i);
- if($ExciseDutySH-$beforeExciseDutySH)
- {
- $CAD=$CAD."Amended ExciseDutySH :".$beforeExciseDutySH ."";
- }
-
-
+
$AfterExciseDutySH = $this->input->post('AfterExciseDutySHCess'.$i);
$CustomEd= $this->input->post('CustomEdCess'.$i);
$beforeCustomEd=$this->input->post('beforeCustomEdCess'.$i);
- if($CustomEd-$beforeCustomEd)
- {
- $CAD=$CAD."Amended CustomEd :".$beforeCustomEd ."";
- }
-
-
+
$AfterCustomEd= $this->input->post('AfterCustomEdCess'.$i);
$CustomSH = $this->input->post('CustomSHCess'.$i);
$beforeCustomSH=$this->input->post('beforeCustomSHCess'.$i);
- if($CustomSH-$beforeCustomSH)
- {
- $CAD=$CAD."Amended CustomSH :".$beforeCustomSH ."";
- }
-
+
$AfterCustomSH = $this->input->post('AfterCustomSHCess'.$i);
$AddAdtional = $this->input->post('AddlExciseDuty'.$i);
$beforeAddAdtional=$this->input->post('beforeAddlExciseDuty'.$i);
- if($AddAdtional-$beforeAddAdtional)
- {
- $CAD=$CAD."Amended Additional Excise duty :".$beforeAddAdtional ."";
- }
+
$AfterAddAdtional = $this->input->post('AfterAddlExciseDuty'.$i);
$Grossdutypayable = $this->input->post('Grossdutypayable'.$i);
$beforeGrossdutypayable = $this->input->post('beforeGrossdutypayable'.$i);
- // if($Grossdutypayable-$beforeGrossdutypayable)
- // {
- // $CAD="Amended Grossdutypayable:".$beforeGrossdutypayable ."";
- // }
-
$AvailableModvat = $this->input->post('AvailableModvat'.$i);
$beforeAvailableModvat = $this->input->post('beforeAvailableModvat'.$i);
- // if($AvailableModvat-$beforeAvailableModvat)
- // {
- // $CAD="Amended Available Modvat:".$beforeAvailableModvat ."";
- // }
-
$Grossexpensesduetocustomduty = $this->input->post('Grossexpensesduetocustomduty'.$i);
$beforeGrossexpensesduetocustomduty = $this->input->post('Grossexpensesduetocustomduty'.$i);
- //if($Grossexpensesduetocustomduty-$beforeGrossexpensesduetocustomduty)
- // {
- // $CAD="Amended GrosssExpense:".$beforeGrossexpensesduetocustomduty ."";
- // }
-
$purchaseratePerKG = $this->input->post('purchaseratePerKG'.$i);
$beforepurchaseratePerKG = $this->input->post('beforepurchaseratePerKG'.$i);
- // if($purchaseratePerKG-$beforepurchaseratePerKG)
- // {
- // $CAD="Amended Purchsae Rate/UOM:".$beforepurchaseratePerKG ."";
- // }
-
-
-
+
$CustomDutyExpensesPerKG = $this->input->post('CustomDutyExpensesPerKG'.$i);
$beforeCustomDutyExpensesPerKG = $this->input->post('beforeCustomDutyExpensesPerKG'.$i);
- //if($CustomDutyExpensesPerKG-$beforeCustomDutyExpensesPerKG)
- // {
- // $CAD="Amended CustomDutyExpense/UOM".$beforeCustomDutyExpensesPerKG ."";
- // }
-
-
-
-
$RMCIncludingCustomersPerKG = $this->input->post('RMCIncludingCustomersPerKG'.$i);
$beforeRMCIncludingCustomersPerKG = $this->input->post('RMCIncludingCustomersPerKG'.$i);
// if($RMCIncludingCustomersPerKG-$beforeRMCIncludingCustomersPerKG )
@@ -1023,10 +957,7 @@ function UpdateAmendServicePurchaseOrder()
// $CAD="Amended RMC Including Customs".$beforeRMCIncludingCustomersPerKG ."";
// }
-
-
-
- $QuantityKG = $this->input->post('QuantityKG'.$i);
+ $QuantityKG = $this->input->post('QuantityKG'.$i);
@@ -1034,8 +965,109 @@ function UpdateAmendServicePurchaseOrder()
$CostCenter = $this->input->post('costCode'.$i);
$Totalvalueitem=$this->input->post('txtTotalorderValue');
+ $RecQtyvalue=0;
+ $rowspanvalue=0;
$LineItemNo = '';
+
+ if(($Quantity-$beforeQuantity)!=0)
+ {
+ $rowspanvalue++;
+ //$CAD="Amended Quantity :".$beforeQuantity ."";
+ $CAD=$CAD."
| + |
Amended Details |
|||||
| + | " . $v->AmendedDetails . ""; + //echo "" . $v->AmendedDetails . ""; break; } - - }?> | |||||
| Item Description | -previous Details | - -|||||
| MaterialName ; ?> | -AmendedDetails ?> | - +Previous Details | Current Details | |||