import amendment po
This commit is contained in:
parent
de4897b0fb
commit
1047ec0970
@ -642,7 +642,7 @@ function UpdateAmendServicePurchaseOrder()
|
||||
|
||||
function EditAmendImportPO()
|
||||
{
|
||||
|
||||
$MAD='';
|
||||
$PONO =$this->input->post('txtPONO');
|
||||
//echo $PONO;
|
||||
|
||||
@ -664,7 +664,7 @@ function UpdateAmendServicePurchaseOrder()
|
||||
$ExchangeRateCalculatedon=$this->input->post('Exchangerateon');
|
||||
$CurrencyType=$this->input->post('currencytype');
|
||||
$DeliveryOption = $this->input->post('DateRange');
|
||||
|
||||
|
||||
|
||||
$DeliverySchedule='';
|
||||
$Dispatch='';
|
||||
@ -681,6 +681,9 @@ function UpdateAmendServicePurchaseOrder()
|
||||
$DeliverySchedule = '';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// if($DeliveryOption==1){
|
||||
// $Deliverydt = '';
|
||||
@ -693,7 +696,9 @@ function UpdateAmendServicePurchaseOrder()
|
||||
|
||||
|
||||
$SpcialInstruction = $this->input->post('txtSpcialInstruction');
|
||||
$TotalOrder = $this->input->post('txtTotalorderValue');
|
||||
// $TotalOrder = $this->input->post('txtTotalorderValue');
|
||||
$TotalOrder = $this->input->post('txtToatlOrder');
|
||||
//$beforeTotalOrder=$this->input->post()
|
||||
//echo "Total Order:".$TotalOrder;
|
||||
$POStatus = $this->input->post('txtStatus');
|
||||
|
||||
@ -707,13 +712,32 @@ function UpdateAmendServicePurchaseOrder()
|
||||
$updateddt = $dt->format('Y-m-d H:i:s');
|
||||
|
||||
$PaymentTerms=$this->input->post('PaymentTerms');
|
||||
$Payableat=$this->input->post('PayableAT');
|
||||
$beforePaymentTerms=$this->input->post('beforePaymentterms');
|
||||
|
||||
//echo $beforePaymentTerms;
|
||||
//die();
|
||||
if($PaymentTerms!=$beforePaymentTerms)
|
||||
{
|
||||
$MAD=$MAD."Amended Payment Terms:". $beforePaymentTerms ."</br>";
|
||||
}
|
||||
//$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 ."</br>";
|
||||
}
|
||||
//echo $MAD;
|
||||
//die();
|
||||
|
||||
|
||||
|
||||
//echo $RowCount;
|
||||
// PO Master
|
||||
// PO Master
|
||||
$POMaster = array('ParentPO'=>$PONO,'SupplierID'=>$SupplierID, 'POType'=>$POType,'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'Import_DispatchDetails'=>$Dispatch,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType,'PaymentTerms'=>$PaymentTerms,'ReleasedBy'=>$updatedBy,'ReleasedOn'=>$updateddt,'Import_PlaceofOrgin'=>$Palaceoforigin);
|
||||
|
||||
$POMaster = array('ParentPO'=>$PONO,'SupplierID'=>$SupplierID, 'POType'=>$POType,'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'Import_DispatchDetails'=>$Dispatch,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType,'PaymentTerms'=>$PaymentTerms,'ReleasedBy'=>$updatedBy,'ReleasedOn'=>$updateddt,'Import_PlaceofOrgin'=>$Palaceoforigin,'AmendedDetails'=>$MAD);
|
||||
//print_r($POMaster);
|
||||
//die();
|
||||
|
||||
// $POList = array('SupplierID'=>$Supp,lierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'Import_DispatchDetails'=>$Dispatch,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType,'PaymentTerms'=>$PaymentTerms,'POType'=>$POType,'Import_PlaceofOrgin'=>$Palaceoforigin);
|
||||
|
||||
@ -742,9 +766,17 @@ 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);
|
||||
$Quantity = $this->input->post('quantity'.$i);
|
||||
$Quantity = $this->input->post('quantity'.$i);
|
||||
$beforeQuantity=$this->input->post('beforequantity'.$i);
|
||||
if(($Quantity-$beforeQuantity)!=0)
|
||||
{
|
||||
$CAD="Amended Quantity :".$beforeQuantity ."</br>";
|
||||
}
|
||||
|
||||
$Reqnumber = $this->input->post('Reqnumber'.$i);
|
||||
$itemRate = $this->input->post('itemRate'.$i);
|
||||
|
||||
@ -752,36 +784,146 @@ function UpdateAmendServicePurchaseOrder()
|
||||
$BasicPriceinmton = $this->input->post('BasicPriceInMTon'.$i);
|
||||
$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 ."</br>";
|
||||
}
|
||||
// echo $LandingCharge;
|
||||
// echo $beforeLandingCharge;
|
||||
// die();
|
||||
|
||||
$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 ."</br>";
|
||||
}
|
||||
$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 ."</br>";
|
||||
}
|
||||
|
||||
|
||||
$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 ."</br>";
|
||||
}
|
||||
|
||||
|
||||
$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 ."</br>";
|
||||
}
|
||||
|
||||
|
||||
$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 ."</br>";
|
||||
}
|
||||
|
||||
|
||||
$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 ."</br>";
|
||||
}
|
||||
|
||||
|
||||
$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 ."</br>";
|
||||
}
|
||||
|
||||
$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 ."</br>";
|
||||
}
|
||||
|
||||
$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 ."</br>";
|
||||
// }
|
||||
|
||||
|
||||
$AvailableModvat = $this->input->post('AvailableModvat'.$i);
|
||||
$beforeAvailableModvat = $this->input->post('beforeAvailableModvat'.$i);
|
||||
// if($AvailableModvat-$beforeAvailableModvat)
|
||||
// {
|
||||
// $CAD="Amended Available Modvat:".$beforeAvailableModvat ."</br>";
|
||||
// }
|
||||
|
||||
|
||||
$Grossexpensesduetocustomduty = $this->input->post('Grossexpensesduetocustomduty'.$i);
|
||||
$beforeGrossexpensesduetocustomduty = $this->input->post('Grossexpensesduetocustomduty'.$i);
|
||||
//if($Grossexpensesduetocustomduty-$beforeGrossexpensesduetocustomduty)
|
||||
// {
|
||||
// $CAD="Amended GrosssExpense:".$beforeGrossexpensesduetocustomduty ."</br>";
|
||||
// }
|
||||
|
||||
|
||||
$purchaseratePerKG = $this->input->post('purchaseratePerKG'.$i);
|
||||
$beforepurchaseratePerKG = $this->input->post('beforepurchaseratePerKG'.$i);
|
||||
// if($purchaseratePerKG-$beforepurchaseratePerKG)
|
||||
// {
|
||||
// $CAD="Amended Purchsae Rate/UOM:".$beforepurchaseratePerKG ."</br>";
|
||||
// }
|
||||
|
||||
|
||||
|
||||
$CustomDutyExpensesPerKG = $this->input->post('CustomDutyExpensesPerKG'.$i);
|
||||
$beforeCustomDutyExpensesPerKG = $this->input->post('beforeCustomDutyExpensesPerKG'.$i);
|
||||
|
||||
//if($CustomDutyExpensesPerKG-$beforeCustomDutyExpensesPerKG)
|
||||
// {
|
||||
// $CAD="Amended CustomDutyExpense/UOM".$beforeCustomDutyExpensesPerKG ."</br>";
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
$RMCIncludingCustomersPerKG = $this->input->post('RMCIncludingCustomersPerKG'.$i);
|
||||
$beforeRMCIncludingCustomersPerKG = $this->input->post('RMCIncludingCustomersPerKG'.$i);
|
||||
// if($RMCIncludingCustomersPerKG-$beforeRMCIncludingCustomersPerKG )
|
||||
// {
|
||||
// $CAD="Amended RMC Including Customs".$beforeRMCIncludingCustomersPerKG ."</br>";
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
$QuantityKG = $this->input->post('QuantityKG'.$i);
|
||||
|
||||
@ -794,7 +936,7 @@ function UpdateAmendServicePurchaseOrder()
|
||||
$LineItemNo = '';
|
||||
|
||||
|
||||
$POLineItemList = array('PONO'=>$NewPO, 'ReqNo'=>$Reqnumber,'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'CostCenterCode'=>$CostCenter);
|
||||
$POLineItemList = array('PONO'=>$NewPO, 'ReqNo'=>$Reqnumber,'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'CostCenterCode'=>$CostCenter,'AmendedDetails'=>$CAD);
|
||||
//print_r($POLineItemList);
|
||||
|
||||
$POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList);
|
||||
|
||||
@ -467,6 +467,8 @@ body {
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- <input type="hidden" name="beforeDispatch" id="beforeDispatch" value=$Import_DispatchDetails /> -->
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
@ -500,10 +502,28 @@ body {
|
||||
// echo form_input($data);
|
||||
|
||||
$data = array('name' => 'PlaceOforigin','value' => set_value('PlaceOforigin',$Import_PlaceofOrgin),'id'=>'PlaceOforigin', 'class' => 'form-control' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
|
||||
echo form_input($data);
|
||||
|
||||
|
||||
|
||||
?>
|
||||
</div>
|
||||
|
||||
<!-- <div class="form-group" style="display:none;">
|
||||
<?php
|
||||
// $data = array('name' => 'PODate','value' => set_value('PODate',$CurrentDate),'id'=>'PODate', 'class' => 'form-control' ,'required' => 'true', 'onkeypress'=>'return false;');
|
||||
// echo form_input($data);
|
||||
|
||||
$data = array('name' => 'beforePlaceOforigin','value' => set_value('beforePlaceOforigin',$Import_PlaceofOrgin),'id'=>'beforePlaceOforigin', 'class' => 'form-control' ,'required' => 'true');
|
||||
echo form_input($data);
|
||||
|
||||
|
||||
|
||||
?>
|
||||
</div> -->
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1147,74 +1167,239 @@ body {
|
||||
<input type="hidden" name="<?php echo 'materialCode'.$index ?>" id="<?php echo 'materialCode'.$index ?>" value="<?php echo $record->MaterialCode ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'materialName'.$index ?>" id="<?php echo 'materialName'.$index ?>" value="<?php echo $record->MaterialName ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'uom'.$index ?>" id="<?php echo 'uom'.$index ?>" value="<?php echo $record->UOM ; ?>" />
|
||||
|
||||
<input type="hidden" name="<?php echo 'quantity'.$index ?>" id="<?php echo 'quantity'.$index ?>" value="<?php echo $record->Quantity ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforequantity'.$index ?>" id="<?php echo 'beforequantity'.$index ?>" value="<?php echo $record->Quantity ; ?>" />
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'itemRate'.$index ?>" id="<?php echo 'itemRate'.$index ?>" value="<?php echo $record->Rate ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeitemRate'.$index ?>" id="<?php echo 'beforeitemRate'.$index ?>" value="<?php echo $record->Rate ; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'LandingCharge'.$index ?>" id="<?php echo 'LandingCharge'.$index ?>" value="<?php echo $record->LandingCharge; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeLandingCharge'.$index ?>" id="<?php echo 'beforeLandingCharge'.$index ?>" value="<?php echo $record->LandingCharge; ?>" />
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'AfterLandingCharge'.$index ?>" id="<?php echo 'AfterLandingCharge'.$index ?>" value="<?php echo $record->AfterLandingCharge; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAfterLandingCharge'.$index ?>" id="<?php echo 'beforeAfterLandingCharge'.$index ?>" value="<?php echo $record->AfterLandingCharge; ?>" />
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'HighSeasSalesCharge'.$index ?>" id="<?php echo 'HighSeasSalesCharge'.$index ?>" value="<?php echo $record->HighSeasSalesCharge ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeHighSeasSalesCharge'.$index ?>" id="<?php echo 'beforeHighSeasSalesCharge'.$index ?>" value="<?php echo $record->HighSeasSalesCharge ; ?>" />
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'AfterHighSeasSalesCharge'.$index ?>" id="<?php echo 'AfterHighSeasSalesCharge'.$index ?>" value="<?php echo $record->AfterHighSeasSalesCharge ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAfterHighSeasSalesCharge'.$index ?>" id="<?php echo 'beforeAfterHighSeasSalesCharge'.$index ?>" value="<?php echo $record->AfterHighSeasSalesCharge ; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'CustomDuty'.$index ?>" id="<?php echo 'CustomDuty'.$index ?>" value="<?php echo $record->CustomDuty ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeCustomDuty'.$index ?>" id="<?php echo 'beforeCustomDuty'.$index ?>" value="<?php echo $record->CustomDuty ; ?>" />
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'AfterCustomDuty'.$index ?>" id="<?php echo 'AfterCustomDuty'.$index ?>" value="<?php echo $record->AfterCustomDuty ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAfterCustomDuty'.$index ?>" id="<?php echo 'beforeAfterCustomDuty'.$index ?>" value="<?php echo $record->AfterCustomDuty ; ?>" />
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'ExciseDuty'.$index ?>" id="<?php echo 'ExciseDuty'.$index ?>" value="<?php echo $record->ExciseDuty ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeExciseDuty'.$index ?>" id="<?php echo 'beforeExciseDuty'.$index ?>" value="<?php echo $record->ExciseDuty ; ?>" />
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'AfterExciseDuty'.$index ?>" id="<?php echo 'AfterExciseDuty'.$index ?>" value="<?php echo $record->AfterExciseDuty ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAfterExciseDuty'.$index ?>" id="<?php echo 'beforeAfterExciseDuty'.$index ?>" value="<?php echo $record->AfterExciseDuty ; ?>" />
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'ExciseDutyEdCess'.$index ?>" id="<?php echo 'ExciseDutyEdCess'.$index ?>" value="<?php echo $record->ExciseDutyEdCess ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeExciseDutyEdCess'.$index ?>" id="<?php echo 'beforeExciseDutyEdCess'.$index ?>" value="<?php echo $record->ExciseDutyEdCess ; ?>" />
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'AfterExciseDutyEdCess'.$index ?>" id="<?php echo 'AfterExciseDutyEdCess'.$index ?>" value="<?php echo $record->AfterExciseDutyEdCess ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAfterExciseDutyEdCess'.$index ?>" id="<?php echo 'beforeAfterExciseDutyEdCess'.$index ?>" value="<?php echo $record->AfterExciseDutyEdCess ; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'CustomEdCess'.$index ?>" id="<?php echo 'CustomEdCess'.$index ?>" value="<?php echo $record->CustomEdCess ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeCustomEdCess'.$index ?>" id="<?php echo 'CustomEdCess'.$index ?>" value="<?php echo $record->CustomEdCess ; ?>" />
|
||||
|
||||
<input type="hidden" name="<?php echo 'AfterCustomEdCess'.$index ?>" id="<?php echo 'AfterCustomEdCess'.$index ?>" value="<?php echo $record->AfterCustomEdCess ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAfterCustomEdCess'.$index ?>" id="<?php echo 'beforeAfterCustomEdCess'.$index ?>" value="<?php echo $record->AfterCustomEdCess ; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'ExchangeRate'.$index ?>" id="<?php echo 'ExchangeRate'.$index ?>" value="<?php echo $record->ExchangeRate ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeExchangeRate'.$index ?>" id="<?php echo 'beforeExchangeRate'.$index ?>" value="<?php echo $record->ExchangeRate ; ?>" />
|
||||
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'AddlExciseDuty'.$index ?>" id="<?php echo 'AddlExciseDuty'.$index ?>" value="<?php echo $record->AddlExciseDuty ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAddlExciseDuty'.$index ?>" id="<?php echo 'beforeAddlExciseDuty'.$index ?>" value="<?php echo $record->AddlExciseDuty ; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'AfterAddlExciseDuty'.$index ?>" id="<?php echo 'AfterAddlExciseDuty'.$index ?>" value="<?php echo $record->AfterAddlExciseDuty; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAfterAddlExciseDuty'.$index ?>" id="<?php echo 'beforeAfterAddlExciseDuty'.$index ?>" value="<?php echo $record->AfterAddlExciseDuty; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'Grossdutypayable'.$index ?>" id="<?php echo 'Grossdutypayable'.$index ?>" value="<?php echo $record->Grossdutypayable; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeGrossdutypayable'.$index ?>" id="<?php echo 'beforeGrossdutypayable'.$index ?>" value="<?php echo $record->Grossdutypayable; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'AvailableModvat'.$index ?>" id="<?php echo 'AvailableModvat'.$index ?>" value="<?php echo $record->AvailableModvat; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAvailableModvat'.$index ?>" id="<?php echo 'beforeAvailableModvat'.$index ?>" value="<?php echo $record->AvailableModvat; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'Grossexpensesduetocustomduty'.$index ?>" id="<?php echo 'Grossexpensesduetocustomduty'.$index ?>" value="<?php echo $record->Grossexpensesduetocustomduty; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeGrossexpensesduetocustomduty'.$index ?>" id="<?php echo 'beforeGrossexpensesduetocustomduty'.$index ?>" value="<?php echo $record->Grossexpensesduetocustomduty; ?>" />
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'purchaseratePerKG'.$index ?>" id="<?php echo 'purchaseratePerKG'.$index ?>" value="<?php echo $record->purchaseratePerKG; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforepurchaseratePerKG'.$index ?>" id="<?php echo 'beforepurchaseratePerKG'.$index ?>" value="<?php echo $record->purchaseratePerKG; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'CustomDutyExpensesPerKG'.$index ?>" id="<?php echo 'CustomDutyExpensesPerKG'.$index ?>" value="<?php echo $record->CustomDutyExpensesPerKG; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeCustomDutyExpensesPerKG'.$index ?>" id="<?php echo 'beforeCustomDutyExpensesPerKG'.$index ?>" value="<?php echo $record->CustomDutyExpensesPerKG; ?>" />
|
||||
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'RMCIncludingCustomersPerKG'.$index ?>" id="<?php echo 'RMCIncludingCustomersPerKG'.$index ?>" value="<?php echo $record->RMCIncludingCustomersPerKG; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeRMCIncludingCustomersPerKG'.$index ?>" id="<?php echo 'beforeRMCIncludingCustomersPerKG'.$index ?>" value="<?php echo $record->RMCIncludingCustomersPerKG; ?>" />
|
||||
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'QuantityKG'.$index ?>" id="<?php echo 'QuantityKG'.$index ?>" value="<?php echo $record->QuantityKG; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeQuantityKG'.$index ?>" id="<?php echo 'beforeQuantityKG'.$index ?>" value="<?php echo $record->QuantityKG; ?>" />
|
||||
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'BasicPriceInMTon'.$index ?>" id="<?php echo 'BasicPriceInMTon'.$index ?>" value="<?php echo $record->BasicPriceInMTon ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeBasicPriceInMTon'.$index ?>" id="<?php echo 'beforeBasicPriceInMTon'.$index ?>" value="<?php echo $record->BasicPriceInMTon ; ?>" />
|
||||
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'ProductPrice'.$index ?>" id="<?php echo 'ProductPrice'.$index ?>" value="<?php echo $record->ProductPrice ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeProductPrice'.$index ?>" id="<?php echo 'beforeProductPrice'.$index ?>" value="<?php echo $record->ProductPrice ; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'ExciseDutySHCess'.$index ?>" id="<?php echo 'ExciseDutySHCess'.$index ?>" value="<?php echo $record->ExciseDutySHCess ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeExciseDutySHCess'.$index ?>" id="<?php echo 'beforeExciseDutySHCess'.$index ?>" value="<?php echo $record->ExciseDutySHCess ; ?>" />
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'AfterExciseDutySHCess'.$index ?>" id="<?php echo 'AfterExciseDutySHCess'.$index ?>" value="<?php echo $record->AfterExciseDutySHCess ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAfterExciseDutySHCess'.$index ?>" id="<?php echo 'beforeAfterExciseDutySHCess'.$index ?>" value="<?php echo $record->AfterExciseDutySHCess ; ?>" />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'CustomSHCess'.$index ?>" id="<?php echo 'CustomSHCess'.$index ?>" value="<?php echo $record->CustomSHCess ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeCustomSHCess'.$index ?>" id="<?php echo 'beforeCustomSHCess'.$index ?>" value="<?php echo $record->CustomSHCess ; ?>" />
|
||||
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'AfterCustomSHCess'.$index ?>" id="<?php echo 'AfterCustomSHCess'.$index ?>" value="<?php echo $record->AfterCustomSHCess; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAfterCustomSHCess'.$index ?>" id="<?php echo 'beforeAfterCustomSHCess'.$index ?>" value="<?php echo $record->AfterCustomSHCess; ?>" />
|
||||
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'Grossdutypayable'.$index ?>" id="<?php echo 'Grossdutypayable'.$index ?>" value="<?php echo $record->Grossdutypayable ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeGrossdutypayable'.$index ?>" id="<?php echo 'beforeGrossdutypayable'.$index ?>" value="<?php echo $record->Grossdutypayable ; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'QuantityKG'.$index ?>" id="<?php echo 'QuantityKG'.$index ?>" value="<?php echo $record->QuantityKG ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeQuantityKG'.$index ?>" id="<?php echo 'beforeQuantityKG'.$index ?>" value="<?php echo $record->QuantityKG ; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'purchaseratePerKG'.$index ?>" id="<?php echo 'purchaseratePerKG'.$index ?>" value="<?php echo $record->purchaseratePerKG ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforepurchaseratePerKG'.$index ?>" id="<?php echo 'beforepurchaseratePerKG'.$index ?>" value="<?php echo $record->purchaseratePerKG ; ?>" />
|
||||
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'RMCIncludingCustomersPerKG'.$index ?>" id="<?php echo 'RMCIncludingCustomersPerKG'.$index ?>" value="<?php echo $record->RMCIncludingCustomersPerKG ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeRMCIncludingCustomersPerKG'.$index ?>" id="<?php echo 'beforeRMCIncludingCustomersPerKG'.$index ?>" value="<?php echo $record->RMCIncludingCustomersPerKG ; ?>" />
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'BasicPriceInMTon'.$index ?>" id="<?php echo 'BasicPriceInMTonG'.$index ?>" value="<?php echo $record->BasicPriceInMTon ; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeBasicPriceInMTon'.$index ?>" id="<?php echo 'beforeBasicPriceInMTonG'.$index ?>" value="<?php echo $record->BasicPriceInMTon ; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'ProductPrice'.$index ?>" id="<?php echo 'ProductPrice'.$index ?>" value="<?php echo $record->ProductPrice; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeProductPrice'.$index ?>" id="<?php echo 'beforeProductPrice'.$index ?>" value="<?php echo $record->ProductPrice; ?>" />
|
||||
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'CustomEdCess'.$index ?>" id="<?php echo 'CustomEdCess'.$index ?>" value="<?php echo $record->CustomEdCess; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeCustomEdCess'.$index ?>" id="<?php echo 'beforeCustomEdCess'.$index ?>" value="<?php echo $record->CustomEdCess; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'AfterCustomEdCess'.$index ?>" id="<?php echo 'AfterCustomEdCess'.$index ?>" value="<?php echo $record->AfterCustomEdCess; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAfterCustomEdCess'.$index ?>" id="<?php echo 'beforeAfterCustomEdCess'.$index ?>" value="<?php echo $record->AfterCustomEdCess; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'ExciseDutySHCess'.$index ?>" id="<?php echo 'ExciseDutySHCess'.$index ?>" value="<?php echo $record->ExciseDutySHCess; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeExciseDutySHCess'.$index ?>" id="<?php echo 'beforeExciseDutySHCess'.$index ?>" value="<?php echo $record->ExciseDutySHCess; ?>" />
|
||||
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'AfterExciseDutySHCess'.$index ?>" id="<?php echo 'AfterExciseDutySHCess'.$index ?>" value="<?php echo $record->AfterExciseDutySHCess; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAfterExciseDutySHCess'.$index ?>" id="<?php echo 'beforeAfterExciseDutySHCess'.$index ?>" value="<?php echo $record->AfterExciseDutySHCess; ?>" />
|
||||
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'Grossdutypayable'.$index ?>" id="<?php echo 'Grossdutypayable'.$index ?>" value="<?php echo $record->Grossdutypayable; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeGrossdutypayable'.$index ?>" id="<?php echo 'beforeGrossdutypayable'.$index ?>" value="<?php echo $record->Grossdutypayable; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'AvailableModvat'.$index ?>" id="<?php echo 'AvailableModvat'.$index ?>" value="<?php echo $record->AvailableModvat; ?>" />
|
||||
<input type="hidden" name="<?php echo 'Grossexpensesduetocustomduty'.$index ?>" id="<?php echo 'Grossexpensesduetocustomduty'.$index ?>" value="<?php echo $record->Grossexpensesduetocustomduty; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAvailableModvat'.$index ?>" id="<?php echo 'beforeAvailableModvat'.$index ?>" value="<?php echo $record->AvailableModvat; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'Grossexpensesduetocustomduty'.$index ?>" id="<?php echo 'Grossexpensesduetocustomduty'.$index ?>" value="<?php echo $record->Grossexpensesduetocustomduty; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeGrossexpensesduetocustomduty'.$index ?>" id="<?php echo 'beforeGrossexpensesduetocustomduty'.$index ?>" value="<?php echo $record->Grossexpensesduetocustomduty; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'Grossexpensesduetocustomduty'.$index ?>" id="<?php echo 'Grossexpensesduetocustomduty'.$index ?>" value="<?php echo $record->Grossexpensesduetocustomduty; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeGrossexpensesduetocustomduty'.$index ?>" id="<?php echo 'beforeGrossexpensesduetocustomduty'.$index ?>" value="<?php echo $record->Grossexpensesduetocustomduty; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'BasicINRValue'.$index ?>" id="<?php echo 'BasicINRValue'.$index ?>" value="<?php echo $record->BasicINRValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeBasicINRValue'.$index ?>" id="<?php echo 'beforeBasicINRValue'.$index ?>" value="<?php echo $record->BasicINRValue; ?>" />
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'TotalValue'.$index ?>" id="<?php echo 'TotalValue'.$index ?>" value="<?php echo $record->TotalOrderValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeTotalValue'.$index ?>" id="<?php echo 'beforeTotalValue'.$index ?>" value="<?php echo $record->TotalOrderValue; ?>" />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'TotalValue'.$index ?>" id="<?php echo 'TotalValue'.$index ?>" value="<?php echo $record->TotalValue; ?>" />
|
||||
|
||||
|
||||
|
||||
@ -1248,7 +1433,7 @@ body {
|
||||
$totavlmodvat=$totavlmodvat+$record->AvailableModvat;
|
||||
$totgrossexpense=$totgrossexpense+$record->Grossexpensesduetocustomduty;
|
||||
$ExchangeRate=$record->ExchangeRate;
|
||||
$totorder=$totorder+$record->BasicPriceInMTon;
|
||||
$totorder=$totorder+$record->TotalOrderValue;
|
||||
//alert($totorder);
|
||||
|
||||
|
||||
@ -1381,9 +1566,9 @@ body {
|
||||
|
||||
|
||||
<div class="col-md-4">
|
||||
<!-- <label>Total Order Value :</label> --> <?php
|
||||
<label>Total Order Value :</label> <?php
|
||||
$data = array('name' => 'txtToatlOrder','value' => set_value('txtToatlOrder',$totorder),'id'=>'txtToatlOrder', 'class' => 'form-control' ,'required' => 'true','readonly' => 'true');
|
||||
// echo form_input($data);
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
@ -1406,7 +1591,13 @@ body {
|
||||
<input type="hidden" name="txtStatus" id="txtStatus" />
|
||||
<input type="hidden" name="txtRowCount" id="txtRowCount" value="<?php echo $Rowcount;?>" />
|
||||
<input type="hidden" name="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>"/>
|
||||
<input type="hidden" name="txtTotalorderValue" id="txtTotalorderValue" />
|
||||
<input type="hidden" name="txtTotalorderValue" id="txtTotalorderValue" />
|
||||
|
||||
<input type="hidden" name="beforePlaceOforigin" id="beforePlaceOforigin" value="<?php echo $Import_PlaceofOrgin;?>" />
|
||||
<input type="hidden" name="beforePaymentterms" id="beforePaymentterms" value="<?php echo $PaymentTerms;?>" />
|
||||
|
||||
<!-- <input type="hidden" name="beforeschedule" id="beforeschedule" value="<?php echo $DeliverySchedule;?>" />
|
||||
<input type="hidden" name="beforeDispatch" id="beforeschedule" value="<?php echo $Import_DispatchDetails;?>" /> -->
|
||||
|
||||
<?php //if($PONOStatus == PO_DRAFT) {?>
|
||||
<!-- <a class="btn btn-primary Save" ID="Save" onclick="Save(0)" > <span class="bold">Save</span></a> -->
|
||||
@ -1444,12 +1635,15 @@ body {
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div><br/>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@ -1720,7 +1914,7 @@ function USRate()
|
||||
}
|
||||
|
||||
function EditRatechange()
|
||||
{
|
||||
{//alert('in');
|
||||
var txteditQuantity=parseFloat($('#EditQuantity').val());
|
||||
var txteditUnitPrice=parseFloat($('#EditRate').val());
|
||||
var editTot=txteditQuantity*txteditUnitPrice
|
||||
@ -2788,7 +2982,7 @@ $('#editimportpomodel').on("shown.bs.modal", function(e) {
|
||||
$('.EditImport').click(function(){
|
||||
//alert('inside edit');
|
||||
|
||||
var CostCode = $("#EditCostCenter").val();
|
||||
var CostCode = $("#EditCostCenter").val();
|
||||
var AvilBudget = $('#EditAvlBudAmt').val();
|
||||
var editMaterialCode = $("#EditMaterialCode").val();
|
||||
var edititemname = $("#EditItemName").val();
|
||||
@ -2796,7 +2990,8 @@ $('.EditImport').click(function(){
|
||||
var editQuantity = $('#EditQuantity').val();
|
||||
var itemRate = $("#EditRate").val();
|
||||
var BasicValue=$("#EdittxtBasicValue").val();
|
||||
|
||||
var BasicUSPrice=$("#EditimBasicPrice").val();
|
||||
//var BasicValue=$("#EdittxtBasicValue").val();
|
||||
var BasicPrice=$("#EditBasicPriceTax").val();
|
||||
var AfterBasicPrice=$("#EditAfterBasicPriceTax").val();
|
||||
var Landingcharge=$("#EditLandingCharge").val();
|
||||
@ -2815,7 +3010,7 @@ $('.EditImport').click(function(){
|
||||
var AfterCustomED=$("#EditAfterCustomEDcess").val();
|
||||
var CustomSH=$("#EditCustomSHcess").val();
|
||||
var AfterCustomSH=$("#EditAfterCustomSHcess").val();
|
||||
var AdditionalExciseduty=$("#EditAdditionalExciseduty").val();
|
||||
var AdditionalExciseduty=$("#EditAdditionalExciseduty ").val();
|
||||
var AfterAdditionalExciseduty=$("#EditAfterAdditionalExciseduty").val();
|
||||
var GrossDuty=$("#EditGrossdutypayable").val();
|
||||
var AvailaleModvat=$("#EditAvailableModvat").val();
|
||||
@ -2824,8 +3019,11 @@ $('.EditImport').click(function(){
|
||||
var Quantity=$("#EditPurQuantity").val();
|
||||
var CustomDutyExpense=$("#EditCustomDutyExpenses").val();
|
||||
var RMC=$("#EditRMCIncludingCustomers").val();
|
||||
var TotalExp=$('#EditTotalExp').val();
|
||||
|
||||
var TotalExp=$('#EdittxtBasicValue').val();
|
||||
//alert(itemRate);
|
||||
|
||||
//console.log(editQuantity);
|
||||
|
||||
var tr= document.getElementById(userid);
|
||||
var cellval = tr.cells;
|
||||
|
||||
@ -2836,45 +3034,50 @@ $('.EditImport').click(function(){
|
||||
cellval[6].innerHTML =BasicValue;
|
||||
|
||||
$('#materialCode'+userid).val(editMaterialCode);
|
||||
$('#AvilBudget'+userid).val(AvilBudget);
|
||||
$('#materialName'+userid).val(edititemname);
|
||||
$('#uom'+userid).val(editUOM);
|
||||
$('#quantity'+userid).val(editQuantity);
|
||||
$('#itemRate'+userid).val(itemRate);
|
||||
$('#ProductPrice'+userid).val(BasicValue);
|
||||
$('#BasicAmt'+userid).val(BasicValue);
|
||||
$('#BasicPriceInMTon'+userid).val(BasicUSPrice);
|
||||
$('#BasicPriceTax'+userid).val(BasicPrice);
|
||||
$('#AfterBasicPriceTax'+userid).val(AfterBasicPrice);
|
||||
$('#LandingCharge'+userid).val(Landingcharge);
|
||||
$('#AfterLandingCharge'+userid).val(AfterLanding);
|
||||
$('#Highseass'+userid).val(Highseass);
|
||||
$('#AfterHighseass'+userid).val(AfterHighseas);
|
||||
$('#Customduty'+userid).val(CustomDuty);
|
||||
$('#AfterCustomduty'+userid).val(AfterCustomDuty);
|
||||
$('#ExcisedutyTax'+userid).val(ExciseDuty);
|
||||
$('#AfterExcisedutyTax'+userid).val(AfterExciseDuty);
|
||||
$('#ExcisedutyED'+userid).val(ExciseEd);
|
||||
$('#AfterExcisedutyED'+userid).val(AfterExciseEd);
|
||||
$('#ExcisedutySH'+userid).val(ExciseDutySH);
|
||||
$('#AfterExcisedutySH'+userid).val(AfterExciseDutySH);
|
||||
$('#CustomEDcess'+userid).val(CustomED);
|
||||
$('#AfterCustomEDcess'+userid).val(AfterCustomED);
|
||||
$('#CustomSHcess'+userid).val(CustomSH);
|
||||
$('#AfterCustomSHcess'+userid).val(AfterCustomSH);
|
||||
$('#HighSeasSalesCharge'+userid).val(Highseass);
|
||||
$('#AfterHighSeasSalesCharge'+userid).val(AfterHighseas);
|
||||
$('#CustomDuty'+userid).val(CustomDuty);
|
||||
$('#AfterCustomDuty'+userid).val(AfterCustomDuty);
|
||||
$('#ExciseDuty'+userid).val(ExciseDuty);
|
||||
$('#AfterExciseDuty'+userid).val(AfterExciseDuty);
|
||||
$('#ExciseDutyEdCess'+userid).val(ExciseEd);
|
||||
$('#AfterExciseDutyEdCess'+userid).val(AfterExciseEd);
|
||||
$('#ExciseDutySHCess'+userid).val(ExciseDutySH);
|
||||
$('#AfterExciseDutySHCess'+userid).val(AfterExciseDutySH);
|
||||
$('#CustomEdCess'+userid).val(CustomED);
|
||||
$('#AfterCustomEdCess'+userid).val(AfterCustomED);
|
||||
$('#CustomSHCess'+userid).val(CustomSH);
|
||||
$('#AfterCustomSHCess'+userid).val(AfterCustomSH);
|
||||
$('#AddlExciseDuty'+userid).val(AdditionalExciseduty);
|
||||
$('#AfterAddlExciseDuty'+userid).val(AfterAdditionalExciseduty);
|
||||
$('#Grossdutypayable'+userid).val(GrossDuty);
|
||||
$('#Grossexpenses'+userid).val(GrossExpense);
|
||||
$('#purchaserate'+userid).val(PurchaseRate);
|
||||
$('#PurQuantity'+userid).val(Quantity);
|
||||
$('#CustomDutyExpenses'+userid).val(CustomDutyExpense);
|
||||
$('#RMCIncludingCustomers'+userid).val(RMC);
|
||||
$('#TotalExp'+userid).val(TotalExp);
|
||||
$('#Grossexpensesduetocustomduty'+userid).val(GrossExpense);
|
||||
$('#purchaseratePerKG'+userid).val(PurchaseRate);
|
||||
$('#QuantityKG'+userid).val(Quantity);
|
||||
$('#CustomDutyExpensesPerKG'+userid).val(CustomDutyExpense);
|
||||
$('#RMCIncludingCustomersPerKG'+userid).val(RMC);
|
||||
$('#TotalValue'+userid).val(TotalExp);
|
||||
$('#AvailableModvat'+userid).val(AvailaleModvat);
|
||||
//var a=parseFloat($('#HighSeasSalesCharge'+userid).val());
|
||||
//console.log(a);
|
||||
populateValueMainFormForEditImportTax();
|
||||
|
||||
|
||||
|
||||
} );
|
||||
|
||||
|
||||
|
||||
function populateValueMainFormForEditImportTax()
|
||||
{
|
||||
var rows =document.getElementById('ImportTax').rows.length;
|
||||
@ -2890,7 +3093,8 @@ function populateValueMainFormForEditImportTax()
|
||||
var TotalGrossDuty=0;
|
||||
var TotalAvlmodvat=0;
|
||||
var TotalGrossExpense=0;
|
||||
var totvalue = 0;
|
||||
var Totalvalue=0;
|
||||
var TotalOrdervalue=0;
|
||||
var i = 0;
|
||||
var TotalRMC=0;
|
||||
do{
|
||||
@ -2900,11 +3104,9 @@ function populateValueMainFormForEditImportTax()
|
||||
{
|
||||
cells = tr.getElementsByTagName('td');
|
||||
var rowid = cells[0].innerHTML;
|
||||
var qty = $('#quantity'+userid).val();
|
||||
var rate = $('#itemRate'+userid).val();
|
||||
var total = parseFloat(qty) * parseFloat(rate);
|
||||
|
||||
|
||||
var AfterLandingCharge= $('#AfterLandingCharge'+rowid).val() == '' ? '0.00' : $('#AfterLandingCharge'+rowid).val();
|
||||
//console.log(AfterLandingCharge);
|
||||
var AfterHighseas=$('#AfterHighSeasSalesCharge'+rowid).val()==''?'0.00':$('#AfterHighSeasSalesCharge'+rowid).val();
|
||||
var AfterCustomduty=$('#AfterCustomDuty'+rowid).val()==''?'0.00':$('#AfterCustomDuty'+rowid).val();
|
||||
var AfterExcisedutyTax=$('#AfterExciseDuty'+rowid).val()==''?'0.00':$('#AfterExciseDuty'+rowid).val();
|
||||
@ -2913,12 +3115,26 @@ var AfterExciseDutySH=$('#AfterExciseDutySHCess'+rowid).val()==''?'0.00':$('#Aft
|
||||
var AfterAdditionalExciseduty=$('#AfterAddlExciseDuty'+rowid).val()==''?'0.00':$('#AfterAddlExciseDuty'+rowid).val();
|
||||
var AfterCustomEDcess=$('#AfterCustomEdCess'+rowid).val()==''?'0.00':$('#AfterCustomEdCess'+rowid).val();
|
||||
var AfterCustomSHcess=$('#AfterCustomSHCess'+rowid).val()==''?'0.00':$('#AfterCustomSHCess'+rowid).val();
|
||||
var AdditionalExciseduty=$('#AfterAddlExciseDuty'+rowid).val()==''?'0.00':$('#AfterAddlExciseDuty'+rowid).val();
|
||||
//var AdditionalExciseduty=$('#AfterAddlExciseDuty'+rowid).val()==''?'0.00':$('#AfterAddlExciseDuty'+rowid).val();
|
||||
var Grossdutypayable=$('#Grossdutypayable'+rowid).val()==''?'0.00':$('#Grossdutypayable'+rowid).val();
|
||||
var AvailableModvat=$('#AvailableModvat'+rowid).val()==''?'0.00':$('#AvailableModvat'+rowid).val();
|
||||
var Grossexpenses=$('#Grossexpensesduetocustomduty'+rowid).val()==''?'0.00':$('#Grossexpensesduetocustomduty'+rowid).val();
|
||||
var RMC=$('#RMCIncludingCustomersPerKG'+rowid).val()==''?'0.00':$('#RMCIncludingCustomersPerKG'+rowid).val();
|
||||
var Totalvalue=$('#TotalValue'+rowid).val()==''?'0.00':$('#TotalValue'+rowid).val();
|
||||
//var RMC=$('#RMCIncludingCustomers'+rowid).val()==''?'0.00':$('#RMCIncludingCustomers'+rowid).val();
|
||||
|
||||
//console.log(Totalvalue);
|
||||
// console.log(AfterHighseas);
|
||||
// console.log(AfterCustomduty);
|
||||
//console.log(AfterExcisedutyTax);
|
||||
// console.log(AfterExcisedutyEDcess);
|
||||
// console.log(AfterExciseDutySH);
|
||||
// console.log(AfterAdditionalExciseduty);
|
||||
// console.log(AfterCustomEDcess);
|
||||
// console.log(AfterCustomSHcess);
|
||||
//console.log(AfterAdditionalExciseduty);
|
||||
// console.log(Grossdutypayable);
|
||||
// console.log(AvailableModvat);
|
||||
// console.log(Grossexpenses);
|
||||
TotalLanding = parseFloat(TotalLanding) + parseFloat(AfterLandingCharge);
|
||||
TotalHighseas = parseFloat(TotalHighseas) + parseFloat(AfterHighseas);
|
||||
TotalCustom = parseFloat(TotalCustom) + parseFloat(AfterCustomduty);
|
||||
@ -2927,14 +3143,16 @@ TotalExciseED = parseFloat(TotalExciseED ) + parseFloat(AfterExcisedutyEDcess);
|
||||
TotalExciseSH = parseFloat(TotalExciseSH) + parseFloat(AfterExciseDutySH);
|
||||
TotalCustomED = parseFloat(TotalCustomED) + parseFloat(AfterCustomEDcess);
|
||||
TotalCustomSH = parseFloat(TotalCustomSH ) + parseFloat(AfterCustomSHcess);
|
||||
TotalAdditionalExcise = parseFloat(TotalAdditionalExcise ) + parseFloat(AdditionalExciseduty);
|
||||
TotalAdditionalExcise = parseFloat(TotalAdditionalExcise ) + parseFloat(AfterAdditionalExciseduty);
|
||||
TotalGrossDuty = parseFloat(TotalGrossDuty) + parseFloat(Grossdutypayable);
|
||||
TotalAvlmodvat = parseFloat(TotalAvlmodvat ) + parseFloat(AvailableModvat);
|
||||
TotalGrossExpense = parseFloat(TotalGrossExpense ) + parseFloat(Grossexpenses);
|
||||
//TotalRMC=parseFloat(TotalRMC)+parseFloat(RMC);
|
||||
totvalue = parseFloat(totvalue) + parseFloat(total);
|
||||
TotalOrdervalue=parseFloat(TotalOrdervalue)+parseFloat(Totalvalue);
|
||||
|
||||
//TotalRMC=parseFloat(TotalRMC)+parseFloat(RMC);
|
||||
|
||||
//console.log(Totalvalue);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -2952,11 +3170,113 @@ TotalGrossExpense = parseFloat(TotalGrossExpense ) + parseFloat(Grossexpenses);
|
||||
$('#txttotalgrossduty').val(parseFloat(TotalGrossDuty).toFixed(2));
|
||||
$('#txttotalavlmodvat').val(parseFloat(TotalAvlmodvat).toFixed(2));
|
||||
$('#txttotalgrossexpense').val(parseFloat(TotalGrossExpense).toFixed(2));
|
||||
$('#txtToatlOrder').val(parseFloat(TotalOrdervalue).toFixed(2));
|
||||
//var a=parseFloat($('#txttotallanding').val());
|
||||
//console.log(a);
|
||||
|
||||
|
||||
//$('#txttotallanding').val(parseFloat(TotalLanding).toFixed(2));
|
||||
}
|
||||
|
||||
// function populateValueMainFormForEditImportTax()
|
||||
// {
|
||||
// var rows =document.getElementById('ImportTax').rows.length;
|
||||
// var TotalLanding=0;
|
||||
// var TotalHighseas=0;
|
||||
// var TotalCustom=0;
|
||||
// var TotalExcise=0;
|
||||
// var TotalExciseED=0;
|
||||
// var TotalExciseSH=0;
|
||||
// var TotalCustomED=0;
|
||||
// var TotalCustomSH=0;
|
||||
// var TotalAdditionalExcise=0;
|
||||
// var TotalGrossDuty=0;
|
||||
// var TotalAvlmodvat=0;
|
||||
// var TotalGrossExpense=0;
|
||||
// var totvalue = 0;
|
||||
// var i = 0;
|
||||
// var TotalRMC=0;
|
||||
// do{
|
||||
// i += 1;
|
||||
// var tr= document.getElementById(i);
|
||||
// if(tr != null)
|
||||
// {
|
||||
// cells = tr.getElementsByTagName('td');
|
||||
// var rowid = cells[0].innerHTML;
|
||||
// var qty = $('#quantity'+userid).val();
|
||||
// var rate = $('#itemRate'+userid).val();
|
||||
// var total = parseFloat(qty) * parseFloat(rate);
|
||||
|
||||
// // var AfterLandingCharge= $('#AfterLandingCharge'+rowid).val() == '' ? '0.00' : $('#AfterLandingCharge'+rowid).val();
|
||||
// // var AfterHighseas=$('#AfterHighSeasSalesCharge'+rowid).val()==''?'0.00':$('#AfterHighSeasSalesCharge'+rowid).val();
|
||||
// // var AfterCustomduty=$('#AfterCustomDuty'+rowid).val()==''?'0.00':$('#AfterCustomDuty'+rowid).val();
|
||||
// // var AfterExcisedutyTax=$('#AfterExciseDuty'+rowid).val()==''?'0.00':$('#AfterExciseDuty'+rowid).val();
|
||||
// // var AfterExcisedutyEDcess=$('#AfterExciseDutyEdCess'+rowid).val()==''?'0.00':$('#AfterExciseDutyEdCess'+rowid).val();
|
||||
// // var AfterExciseDutySH=$('#AfterExciseDutySHCess'+rowid).val()==''?'0.00':$('#AfterExciseDutySHCess'+rowid).val();
|
||||
// // var AfterAdditionalExciseduty=$('#AfterAddlExciseDuty'+rowid).val()==''?'0.00':$('#AfterAddlExciseDuty'+rowid).val();
|
||||
// // var AfterCustomEDcess=$('#AfterCustomEdCess'+rowid).val()==''?'0.00':$('#AfterCustomEdCess'+rowid).val();
|
||||
// // var AfterCustomSHcess=$('#AfterCustomSHCess'+rowid).val()==''?'0.00':$('#AfterCustomSHCess'+rowid).val();
|
||||
// // var AdditionalExciseduty=$('#AfterAddlExciseDuty'+rowid).val()==''?'0.00':$('#AfterAddlExciseDuty'+rowid).val();
|
||||
// // var Grossdutypayable=$('#Grossdutypayable'+rowid).val()==''?'0.00':$('#Grossdutypayable'+rowid).val();
|
||||
// // var AvailableModvat=$('#AvailableModvat'+rowid).val()==''?'0.00':$('#AvailableModvat'+rowid).val();
|
||||
// // var Grossexpenses=$('#Grossexpensesduetocustomduty'+rowid).val()==''?'0.00':$('#Grossexpensesduetocustomduty'+rowid).val();
|
||||
// // var RMC=$('#RMCIncludingCustomersPerKG'+rowid).val()==''?'0.00':$('#RMCIncludingCustomersPerKG'+rowid).val();
|
||||
// var AfterLandingCharge= $('#AfterLandingCharge'+rowid).val() == '' ? '0.00' : $('#AfterLandingCharge'+rowid).val();
|
||||
// //console.log(AfterLandingCharge);
|
||||
// var AfterHighseas=$('#AfterHighSeasSalesCharge'+rowid).val()==''?'0.00':$('#AfterHighSeasSalesCharge'+rowid).val();
|
||||
// var AfterCustomduty=$('#AfterCustomDuty'+rowid).val()==''?'0.00':$('#AfterCustomDuty'+rowid).val();
|
||||
// var AfterExcisedutyTax=$('#AfterExciseDuty'+rowid).val()==''?'0.00':$('#AfterExciseDuty'+rowid).val();
|
||||
// var AfterExcisedutyEDcess=$('#AfterExciseDutyEdCess'+rowid).val()==''?'0.00':$('#AfterExciseDutyEdCess'+rowid).val();
|
||||
// var AfterExciseDutySH=$('#AfterExciseDutySHCess'+rowid).val()==''?'0.00':$('#AfterExciseDutySHCess'+rowid).val();
|
||||
// var AfterAdditionalExciseduty=$('#AfterAddlExciseDuty'+rowid).val()==''?'0.00':$('#AfterAddlExciseDuty'+rowid).val();
|
||||
// var AfterCustomEDcess=$('#AfterCustomEdCess'+rowid).val()==''?'0.00':$('#AfterCustomEdCess'+rowid).val();
|
||||
// var AfterCustomSHcess=$('#AfterCustomSHCess'+rowid).val()==''?'0.00':$('#AfterCustomSHCess'+rowid).val();
|
||||
// //var AdditionalExciseduty=$('#AfterAddlExciseDuty'+rowid).val()==''?'0.00':$('#AfterAddlExciseDuty'+rowid).val();
|
||||
// var Grossdutypayable=$('#Grossdutypayable'+rowid).val()==''?'0.00':$('#Grossdutypayable'+rowid).val();
|
||||
// var AvailableModvat=$('#AvailableModvat'+rowid).val()==''?'0.00':$('#AvailableModvat'+rowid).val();
|
||||
// var Grossexpenses=$('#Grossexpensesduetocustomduty'+rowid).val()==''?'0.00':$('#Grossexpensesduetocustomduty'+rowid).val();
|
||||
|
||||
|
||||
|
||||
// TotalLanding = parseFloat(TotalLanding) + parseFloat(AfterLandingCharge);
|
||||
// TotalHighseas = parseFloat(TotalHighseas) + parseFloat(AfterHighseas);
|
||||
// TotalCustom = parseFloat(TotalCustom) + parseFloat(AfterCustomduty);
|
||||
// TotalExcise = parseFloat(TotalExcise) + parseFloat(AfterExcisedutyTax);
|
||||
// TotalExciseED = parseFloat(TotalExciseED ) + parseFloat(AfterExcisedutyEDcess);
|
||||
// TotalExciseSH = parseFloat(TotalExciseSH) + parseFloat(AfterExciseDutySH);
|
||||
// TotalCustomED = parseFloat(TotalCustomED) + parseFloat(AfterCustomEDcess);
|
||||
// TotalCustomSH = parseFloat(TotalCustomSH ) + parseFloat(AfterCustomSHcess);
|
||||
// TotalAdditionalExcise = parseFloat(TotalAdditionalExcise ) + parseFloat(AdditionalExciseduty);
|
||||
// TotalGrossDuty = parseFloat(TotalGrossDuty) + parseFloat(Grossdutypayable);
|
||||
// TotalAvlmodvat = parseFloat(TotalAvlmodvat ) + parseFloat(AvailableModvat);
|
||||
// TotalGrossExpense = parseFloat(TotalGrossExpense ) + parseFloat(Grossexpenses);
|
||||
// //TotalRMC=parseFloat(TotalRMC)+parseFloat(RMC);
|
||||
// totvalue = parseFloat(totvalue) + parseFloat(total);
|
||||
|
||||
|
||||
// }
|
||||
|
||||
|
||||
// }while (i < rows);
|
||||
|
||||
// $('#txttotallanding').val(parseFloat(TotalLanding).toFixed(2));
|
||||
// $('#txttotalhighseas').val(parseFloat(TotalHighseas).toFixed(2));
|
||||
// $('#txttotalcustom').val(parseFloat(TotalCustom).toFixed(2));
|
||||
// $('#txttotalexcise').val(parseFloat(TotalExcise).toFixed(2));
|
||||
// $('#txttotalexciseED').val(parseFloat(TotalExciseED).toFixed(2));
|
||||
// $('#txttotalexciseSH').val(parseFloat(TotalExciseSH).toFixed(2));
|
||||
// $('#txttotalcustomED').val(parseFloat(TotalCustomED).toFixed(2));
|
||||
// $('#txttotalcustomSH').val(parseFloat(TotalCustomSH).toFixed(2));
|
||||
// $('#txttotalAdditionalExciseduty').val(parseFloat(TotalAdditionalExcise).toFixed(2));
|
||||
// $('#txttotalgrossduty').val(parseFloat(TotalGrossDuty).toFixed(2));
|
||||
// $('#txttotalavlmodvat').val(parseFloat(TotalAvlmodvat).toFixed(2));
|
||||
// $('#txttotalgrossexpense').val(parseFloat(TotalGrossExpense).toFixed(2));
|
||||
|
||||
$('#txtTotalorderValue').val(parseFloat(totvalue).toFixed(2));
|
||||
// // $('#txtTotalorderValue').val(parseFloat(totvalue).toFixed(2));
|
||||
// $('#txtToatlOrder').val(parseFloat(totvalue).toFixed(2));
|
||||
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user