amendment import

This commit is contained in:
venbatechnologies@gmail.com 2017-08-10 16:26:34 +05:30
parent 2aa81eedb0
commit 1dba0cf39e
2 changed files with 19 additions and 7 deletions

View File

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

View File

@ -2952,7 +2952,7 @@ $('#txttotalgrossduty').val((parseFloat(TotalGrossDuty) + parseFloat(Grossdutypa
$('#txttotalavlmodvat').val((parseFloat(TotalAvlmodvat) + parseFloat(AvailableModvat)).toFixed(2) ); $('#txttotalavlmodvat').val((parseFloat(TotalAvlmodvat) + parseFloat(AvailableModvat)).toFixed(2) );
$('#txttotalgrossexpense').val((parseFloat(TotalGrossExpense) + parseFloat(Grossexpenses)).toFixed(2) ); $('#txttotalgrossexpense').val((parseFloat(TotalGrossExpense) + parseFloat(Grossexpenses)).toFixed(2) );
$('#txtToatlOrder').val((parseFloat(TotalOrder) + parseFloat(totalexp)).toFixed(2) ); $('#txtToatlOrder').val((parseFloat(TotalOrder) + parseFloat(totalexp)).toFixed(2) );
$('#txttot').val((parseFloat(TotalOrder)+parseFloat(totalexp)).toFixed(2));