amendment import
This commit is contained in:
parent
2aa81eedb0
commit
1dba0cf39e
@ -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 ."</br>";
|
||||
$CAD=$CAD."<tr><td>Amended Rate : ".$beforeitemRate ."</td><td>Current Qty:".$itemRate."</td></tr>";
|
||||
}
|
||||
|
||||
|
||||
if(($Quantity-$beforeQuantity)!=0)
|
||||
{
|
||||
$rowspanvalue++;
|
||||
|
||||
@ -2952,7 +2952,7 @@ $('#txttotalgrossduty').val((parseFloat(TotalGrossDuty) + parseFloat(Grossdutypa
|
||||
$('#txttotalavlmodvat').val((parseFloat(TotalAvlmodvat) + parseFloat(AvailableModvat)).toFixed(2) );
|
||||
$('#txttotalgrossexpense').val((parseFloat(TotalGrossExpense) + parseFloat(Grossexpenses)).toFixed(2) );
|
||||
$('#txtToatlOrder').val((parseFloat(TotalOrder) + parseFloat(totalexp)).toFixed(2) );
|
||||
|
||||
$('#txttot').val((parseFloat(TotalOrder)+parseFloat(totalexp)).toFixed(2));
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user