import amendment
This commit is contained in:
parent
7758205025
commit
bad44be650
@ -1221,17 +1221,6 @@ function UpdateAmendServicePurchaseOrder()
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// if($DeliveryOption==1){
|
||||
// $Deliverydt = '';
|
||||
// $DeliverySchedule = $this->input->post('Scheduleby');
|
||||
// }
|
||||
// else{
|
||||
// $Deliverydt = $this->getDateformat($dt);
|
||||
// $DeliverySchedule = '';
|
||||
// }
|
||||
|
||||
|
||||
$SpcialInstruction = $this->input->post('txtSpcialInstruction');
|
||||
@ -1281,13 +1270,6 @@ function UpdateAmendServicePurchaseOrder()
|
||||
$importoption=$this->input->post('Importoption');
|
||||
|
||||
|
||||
// addmodeofshipment
|
||||
// amendsupplierreference
|
||||
// amendsupplierofferno
|
||||
// amendotherreference
|
||||
// amendfincap
|
||||
//echo $beforePaymentTerms;
|
||||
//die();
|
||||
if($PaymentTerms!=$beforePaymentTerms)
|
||||
{
|
||||
//$MAD=$MAD."Amended Payment Terms:". $beforePaymentTerms ."</br>";
|
||||
@ -1364,67 +1346,57 @@ function UpdateAmendServicePurchaseOrder()
|
||||
// die();
|
||||
|
||||
$AfterLandingCharge = $this->input->post('AfterLandingCharge'.$i);
|
||||
$HighSeas = $this->input->post('HighSeasSalesCharge'.$i);
|
||||
$beforeHighSeas=$this->input->post('beforeHighSeasSalesCharge'.$i);
|
||||
|
||||
$AfterHighSeas = $this->input->post('AfterHighSeasSalesCharge'.$i);
|
||||
|
||||
|
||||
$CustomDuty = $this->input->post('CustomDuty'.$i);
|
||||
|
||||
$beforeCustomDuty=$this->input->post('beforeCustomDuty'.$i);
|
||||
|
||||
$AfterCustomDuty = $this->input->post('AfterCustomDuty'.$i);
|
||||
|
||||
$ExciseDuty = $this->input->post('ExciseDuty'.$i);
|
||||
$beforeExciseDuty=$this->input->post('beforeExciseDuty'.$i);
|
||||
|
||||
$AfterExciseDuty = $this->input->post('AfterExciseDuty'.$i);
|
||||
|
||||
$ExciseDutyEd = $this->input->post('ExciseDutyEdCess'.$i);
|
||||
$beforeExciseDutyEd=$this->input->post('beforeExciseDutyEdCess'.$i);
|
||||
|
||||
$AfterExciseDutyEd = $this->input->post('AfterExciseDutyEdCess'.$i);
|
||||
|
||||
$ExciseDutySH = $this->input->post('ExciseDutySHCess'.$i);
|
||||
$beforeExciseDutySH=$this->input->post('beforeExciseDutySHCess'.$i);
|
||||
|
||||
$AfterExciseDutySH = $this->input->post('AfterExciseDutySHCess'.$i);
|
||||
|
||||
$CustomEd= $this->input->post('CustomEdCess'.$i);
|
||||
$CustomEd= $this->input->post('CustomEdCess1'.$i);
|
||||
$beforeCustomEd=$this->input->post('beforeCustomEdCess'.$i);
|
||||
|
||||
$AfterCustomEd= $this->input->post('AfterCustomEdCess'.$i);
|
||||
$AfterCustomEd= $this->input->post('AfterCustomEdCess1'.$i);
|
||||
|
||||
// echo $CustomEd;
|
||||
// echo 're';
|
||||
// echo $AfterCustomEd;
|
||||
|
||||
$CustomSH = $this->input->post('CustomSHCess'.$i);
|
||||
$beforeCustomSH=$this->input->post('beforeCustomSHCess'.$i);
|
||||
|
||||
$AfterCustomSH = $this->input->post('AfterCustomSHCess'.$i);
|
||||
|
||||
$AddAdtional = $this->input->post('AddlExciseDuty'.$i);
|
||||
$beforeAddAdtional=$this->input->post('beforeAddlExciseDuty'.$i);
|
||||
|
||||
|
||||
|
||||
$AfterAddAdtional = $this->input->post('AfterAddlExciseDuty'.$i);
|
||||
|
||||
$Grossdutypayable = $this->input->post('Grossdutypayable'.$i);
|
||||
$Grossdutypayable = $this->input->post('Grossdutypayable1'.$i);
|
||||
$beforeGrossdutypayable = $this->input->post('beforeGrossdutypayable'.$i);
|
||||
|
||||
$AvailableModvat = $this->input->post('AvailableModvat'.$i);
|
||||
$beforeAvailableModvat = $this->input->post('beforeAvailableModvat'.$i);
|
||||
|
||||
$Grossexpensesduetocustomduty = $this->input->post('Grossexpensesduetocustomduty'.$i);
|
||||
$beforeGrossexpensesduetocustomduty = $this->input->post('Grossexpensesduetocustomduty'.$i);
|
||||
|
||||
$purchaseratePerKG = $this->input->post('purchaseratePerKG'.$i);
|
||||
$beforepurchaseratePerKG = $this->input->post('beforepurchaseratePerKG'.$i);
|
||||
|
||||
$CustomDutyExpensesPerKG = $this->input->post('CustomDutyExpensesPerKG'.$i);
|
||||
$beforeCustomDutyExpensesPerKG = $this->input->post('beforeCustomDutyExpensesPerKG'.$i);
|
||||
|
||||
$RMCIncludingCustomersPerKG = $this->input->post('RMCIncludingCustomersPerKG'.$i);
|
||||
$beforeRMCIncludingCustomersPerKG = $this->input->post('RMCIncludingCustomersPerKG'.$i);
|
||||
//echo $Grossdutypayable;
|
||||
|
||||
|
||||
$Assable=$this->input->post('AssessableValue'.$i);
|
||||
$beforeAssable=$this->input->post('beforeAssessableValue'.$i);
|
||||
|
||||
|
||||
$Subtotal=$this->input->post('SubTotal'.$i);
|
||||
$beforeSubtotal=$this->input->post('beforeSubTotal'.$i);
|
||||
|
||||
$Igst=$this->input->post('IGST'.$i);
|
||||
$beforeIgst=$this->input->post('beforeIGST'.$i);
|
||||
$AfterIgst=$this->input->post('AfterIGST'.$i);
|
||||
|
||||
|
||||
|
||||
$CustomDutyExpensesPerKG = $this->input->post('CustomDutyExpensesPerKG'.$i);
|
||||
$beforeCustomDutyExpensesPerKG = $this->input->post('beforeCustomDutyExpensesPerKG'.$i);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$FreightType=$this->input->post('FreightType'.$i);
|
||||
$NoOfTrip=$this->input->post('NoOfTrip'.$i);
|
||||
@ -1447,6 +1419,14 @@ function UpdateAmendServicePurchaseOrder()
|
||||
// }
|
||||
|
||||
$QuantityKG = $this->input->post('QuantityKG'.$i);
|
||||
|
||||
$ClearingCharge = $this->input->post('ClearingCharge'.$i);
|
||||
|
||||
$NetValue = $this->input->post('NetValue'.$i);
|
||||
|
||||
$DutyImpact=$this->input->post('DutyImpact'.$i);
|
||||
|
||||
|
||||
|
||||
$specialinstruction=$this->input->post('Addinstruction'.$i);
|
||||
|
||||
@ -1481,12 +1461,7 @@ function UpdateAmendServicePurchaseOrder()
|
||||
$CAD=$CAD."<tr><td>Amended Landing percentage : ".$beforeLandingCharge ."</td><td>Current Landing Percentage:".$LandingCharge."</td></tr>";
|
||||
}
|
||||
|
||||
if(($HighSeas-$beforeHighSeas)!=0)
|
||||
{
|
||||
$rowspanvalue++;
|
||||
//$CAD=$CAD."Amended Highsesas :".$beforeHighSeas ."</br>";
|
||||
$CAD=$CAD."<tr><td>Amended Highsesas : ".$beforeHighSeas ."</td><td>Current Highsesas:".$HighSeas."</td></tr>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(($CustomDuty-$beforeCustomDuty)!=0)
|
||||
@ -1498,31 +1473,6 @@ function UpdateAmendServicePurchaseOrder()
|
||||
|
||||
|
||||
|
||||
if(($ExciseDuty-$beforeExciseDuty)!=0)
|
||||
{
|
||||
$rowspanvalue++;
|
||||
//$CAD=$CAD."Amended ExciseDuty :".$beforeExciseDuty ."</br>";
|
||||
$CAD=$CAD."<tr><td>Amended ExciseDuty : ".$beforeExciseDuty ."</td><td>Current ExciseDuty:".$ExciseDuty."</td></tr>";
|
||||
|
||||
}
|
||||
|
||||
if($ExciseDutyEd-$beforeExciseDutyEd)
|
||||
{
|
||||
$rowspanvalue++;
|
||||
//$CAD=$CAD."Amended ExciseDutyEd :".$beforeExciseDutyEd ."</br>";
|
||||
$CAD=$CAD."<tr><td>Amended ExciseDutyEd : ".$beforeExciseDutyEd ."</td><td>Current ExciseDutyEd:".$ExciseDutyEd."</td></tr>";
|
||||
|
||||
}
|
||||
|
||||
|
||||
if($ExciseDutySH-$beforeExciseDutySH)
|
||||
{
|
||||
$rowspanvalue++;
|
||||
//$CAD=$CAD."Amended ExciseDutySH :".$beforeExciseDutySH ."</br>";
|
||||
$CAD=$CAD."<tr><td>Amended ExciseDutySH : ".$beforeExciseDutySH ."</td><td>Current ExciseDutySH:".$ExciseDutySH."</td></tr>";
|
||||
|
||||
}
|
||||
|
||||
if($CustomEd-$beforeCustomEd)
|
||||
{
|
||||
$rowspanvalue++;
|
||||
@ -1541,14 +1491,7 @@ function UpdateAmendServicePurchaseOrder()
|
||||
}
|
||||
|
||||
|
||||
if($AddAdtional-$beforeAddAdtional)
|
||||
{
|
||||
//$CAD=$CAD."Amended Additional Excise duty :".$beforeAddAdtional ."</br>";
|
||||
$rowspanvalue++;
|
||||
$CAD=$CAD."<tr><td>Amended Additional Excise duty: ".$beforeAddAdtional ."</td><td>Current Additional Excise duty:".$AddAdtional."</td></tr>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if($FreightType!=$beforeFreightType)
|
||||
{
|
||||
@ -1592,6 +1535,48 @@ function UpdateAmendServicePurchaseOrder()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if(($Assable-$beforeAssable)!=0)
|
||||
{
|
||||
//$CAD=$CAD."Amended CustomDuty :".$beforeCustomDuty ."</br>";
|
||||
$rowspanvalue++;
|
||||
$CAD=$CAD."<tr><td>Amended Assessable : ".$beforeAssable ."</td><td>Current CustomDuty:".$Assable."</td></tr>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(($Subtotal-$beforeSubtotal)!=0)
|
||||
{
|
||||
//$CAD=$CAD."Amended CustomDuty :".$beforeCustomDuty ."</br>";
|
||||
$rowspanvalue++;
|
||||
$CAD=$CAD."<tr><td>Amended Subtotal : ".$beforeSubtotal ."</td><td>Current Subtotal:".$Subtotal."</td></tr>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(($Igst-$beforeIgst)!=0)
|
||||
{
|
||||
//$CAD=$CAD."Amended CustomDuty :".$beforeCustomDuty ."</br>";
|
||||
$rowspanvalue++;
|
||||
$CAD=$CAD."<tr><td>Amended IGST Percentage : ".$beforeIgst ."</td><td>Current IGST Percentage:".$Igst."</td></tr>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(($Grossdutypayable-$beforeGrossdutypayable)!=0)
|
||||
{
|
||||
//$CAD=$CAD."Amended CustomDuty :".$beforeCustomDuty ."</br>";
|
||||
$rowspanvalue++;
|
||||
$CAD=$CAD."<tr><td>Amended Gross Duty Payable : ".$beforeGrossdutypayable ."</td><td>Current Gross Duty Payable:".$Grossdutypayable."</td></tr>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if($rowspanvalue>0)
|
||||
{
|
||||
$rowspanvalue++;
|
||||
@ -1623,7 +1608,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,'FreightType'=>$FreightType,'NoOfTrip'=>$NoOfTrip,'FreightValue'=>$Freightrate,'AfterFreightValue'=>$Freightamount);
|
||||
$ImportTaxList = array('LineItemNo'=>$LineItemNo,'BasicPriceInMTon'=>$BasicPriceinmton,'ProductPrice'=>$Productprice,'LandingCharge'=>$LandingCharge,'AfterLandingCharge'=>$AfterLandingCharge,'CustomDuty'=>$CustomDuty,'AfterCustomDuty'=>$AfterCustomDuty,'CustomEdCess'=>$CustomEd,'CustomSHCess'=>$CustomSH,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'Grossdutypayable'=>$Grossdutypayable,'CustomDutyExpensesPerKG'=>$CustomDutyExpensesPerKG,'QuantityKG'=>$QuantityKG,'AfterCustomSHCess'=>$AfterCustomSH,'AfterCustomEdCess'=>$AfterCustomEd,'TotalValue'=>$Totalvalueitem,'FreightType'=>$FreightType,'NoOfTrip'=>$NoOfTrip,'FreightValue'=>$Freightrate,'AfterFreightValue'=>$Freightamount,'AssessableValue'=>$Assable,'SubTotal'=>$Subtotal,'IGST'=>$Igst,'AfterIGST'=>$AfterIgst,'DutyImpact'=>$DutyImpact,'NetValue'=>$NetValue,'ClearingCharge'=>$ClearingCharge);
|
||||
// print_r($ImportTaxList);
|
||||
//die();
|
||||
$ImportList = $this->purchaseorder_model->addImportTax($ImportTaxList);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1867,9 +1867,6 @@ echo form_textarea($data);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-8">
|
||||
<!-- Gross duty payable -->
|
||||
@ -2872,7 +2869,7 @@ echo form_textarea($data);
|
||||
<?php
|
||||
//echo $totcustomED;
|
||||
$totalhidden=$totorder;
|
||||
$totorder=number_format($totorder,2);
|
||||
$totorder=number_format($totorder,2, '.', '');
|
||||
|
||||
//echo $to;
|
||||
$TotalLanding=number_format( $TotalLanding,2, '.', '');
|
||||
@ -3735,7 +3732,7 @@ $('#RMCIncludingCustomers').val('');
|
||||
var txtlanding=0;
|
||||
var txtbasicprice=0;
|
||||
var asss=0;
|
||||
txtlanding=$('#EditLandingCharge').val() == '' ? '0.00' : $('#EditLandingCharge').val()
|
||||
txtlanding=$('#EditLandingCharge').val() == '' ? '0.00' : $('#EditLandingCharge').val();
|
||||
//txtlanding=parseFloat($('#EditLandingCharge').val());
|
||||
//txtbasicprice=parseFloat($('#EditAfterBasicPriceTax').val());
|
||||
|
||||
@ -4098,10 +4095,6 @@ txtshpercentage=$('#EditCustomSHcess').val() == '' ? '0.00' : $('#EditCustomSHce
|
||||
var customed=parseFloat($('#EditAfterCustomEDcess').val() == '' ? '0.00' : $('#EditAfterCustomEDcess').val());
|
||||
var assessble=parseFloat($('#EditAfterAssessable').val() == '' ? '0.00' : $('#EditAfterAssessable').val());
|
||||
|
||||
// console.log(custom);
|
||||
// console.log(customsh);
|
||||
// console.log(customed);
|
||||
// console.log(assessble);
|
||||
|
||||
var tot=<?php echo SUBTOTAL;?>;
|
||||
console.log(tot);
|
||||
@ -4623,34 +4616,38 @@ $("#viewimportmodal").on("shown.bs.modal", function(e) {
|
||||
|
||||
$('#ViewLandingCharge').val($("#LandingCharge"+userid).val());
|
||||
$('#ViewAfterLandingCharge').val($("#AfterLandingCharge"+userid).val());
|
||||
$('#ViewHighseas').val($("#HighSeasSalesCharge"+userid).val());
|
||||
$('#ViewAfterHighseas').val($("#AfterHighSeasSalesCharge"+userid).val());
|
||||
|
||||
$('#ViewCustomduty').val($("#CustomDuty"+userid).val());
|
||||
$('#ViewAfterCustomduty').val($("#AfterCustomDuty"+userid).val());
|
||||
$('#ViewExcisedutyTax').val($("#ExciseDuty"+userid).val());
|
||||
$('#ViewAfterExcisedutyTax').val($("#AfterExciseDuty"+userid).val());
|
||||
$('#ViewExcisedutyEDcess').val($("#ExciseDutyEdCess"+userid).val());
|
||||
$('#ViewAfterExcisedutyEDcess').val($("#AfterExciseDutyEdCess"+userid).val());
|
||||
$('#ViewExcisedutySHcess').val($("#ExciseDutySHCess"+userid).val());
|
||||
$('#ViewAfterExcisedutySHcess').val($("#AfterExciseDutySHCess"+userid).val());
|
||||
|
||||
|
||||
$('#ViewCustomEDcess').val($("#CustomEdCess"+userid).val());
|
||||
|
||||
$('#ViewAfterCustomEDcess').val($("#AfterCustomEDCess"+userid).val());
|
||||
$('#ViewCustomSHcess').val($("#CustomSHCess"+userid).val());
|
||||
$('#ViewAfterCustomSHcess').val($("#AfterCustomSHCess"+userid).val());
|
||||
$('#ViewAdditionalExciseduty').val($("#AddlExciseDuty"+userid).val());
|
||||
$('#ViewAfterAdditionalExciseduty').val($("#AfterAddlExciseDuty"+userid).val());
|
||||
|
||||
$('#ViewGrossdutypayable').val($("#Grossdutypayable"+userid).val());
|
||||
$('#ViewGrossexpenses').val($("#Grossexpensesduetocustomduty"+userid).val());
|
||||
|
||||
$('#ViewPurQuantity').val($("#QuantityKG"+userid).val());
|
||||
$('#Viewpurchaserate').val($("#purchaseratePerKG"+userid).val());
|
||||
|
||||
$('#ViewCustomDutyExpenses').val($("#CustomDutyExpensesPerKG"+userid).val());
|
||||
$('#ViewRMCIncludingCustomers').val($("#RMCIncludingCustomersPerKG"+userid).val());
|
||||
|
||||
//$('#ViewAfterBasicPriceTax').val($("#BasicINRValue"+userid).val());
|
||||
$('#ViewAvailableModvat').val($("#AvailableModvat"+userid).val());
|
||||
|
||||
$('#ViewTotalExp').val($("#TotalValue"+userid).val());
|
||||
// $('#ViewINRBasicvalue').val($("#BasicINRValue"+userid).val());
|
||||
|
||||
|
||||
$('#ViewAfterAssessable').val($("#AssessableValue"+userid).val());
|
||||
$('#ViewAfterCustomEDcess').val($("#AfterCustomEdCess1"+userid).val());
|
||||
$('#ViewSubtotal').val($("#SubTotal"+userid).val());
|
||||
$('#ViewIgst').val($("#IGST"+userid).val());
|
||||
$('#ViewAfterIgst').val($("#AfterIGST"+userid).val());
|
||||
$('#ViewDutyImpact').val($("#DutyImpact"+userid).val());
|
||||
$('#ViewClearingCharges').val($("#ClearingCharge"+userid).val());
|
||||
$('#ViewNett').val($("#NetValue"+userid).val());
|
||||
|
||||
|
||||
|
||||
$('#drpviewFreight').val($("#FreightType"+userid).val());
|
||||
@ -5584,73 +5581,90 @@ function DeleteRow(rowid)
|
||||
function populateValueMainFormForDeleteItem(rowid)
|
||||
{
|
||||
var TotalLanding=$('#txttotallanding').val();
|
||||
var TotalHighseas=$('#txttotalhighseas').val();
|
||||
|
||||
var TotalCustom=$('#txttotalcustom').val();
|
||||
var TotalExcise=$('#txttotalexcise').val();
|
||||
var TotalExciseED=$('#txttotalexciseED').val();
|
||||
var TotalExciseSH=$('#txttotalexciseSH').val();
|
||||
|
||||
var TotalCustomED=$('#txttotalcustomED').val();
|
||||
var TotalCustomSH=$('#txttotalcustomSH').val();
|
||||
var TotalAdditionalExcise=$('#txttotalAdditionalExciseduty').val();
|
||||
|
||||
var TotalGrossDuty=$('#txttotalgrossduty').val();
|
||||
var TotalAvlmodvat=$('#txttotalavlmodvat').val();
|
||||
var TotalGrossExpense=$('#txttotalgrossexpense').val();
|
||||
|
||||
var TotalOrderValue=$('#txtToatlOrder').val();
|
||||
var TotalFreight=$('#txtTotalFreight').val();
|
||||
|
||||
|
||||
var TotalAssessable=$('#txttotalAssessable').val();
|
||||
|
||||
var TotalSubtotal=$('#txttotalSubtotal').val();
|
||||
|
||||
var TotalIgst=$('#txttotalIgst').val();
|
||||
|
||||
//console.log(TotalCustomED);
|
||||
|
||||
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 AfterCustomEDcess=$('#AfterCustomEdCess1'+rowid).val()==''?'0.00':$('#AfterCustomEdCess1'+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 =$('#TotalExp'+rowid).val()==''?'0.00':$('#TotalExp'+rowid).val();
|
||||
|
||||
|
||||
//console.log(AfterCustomEDcess);
|
||||
var totalExp=$('#TotalValue'+rowid).val()==''?'0.00':$('#TotalValue'+rowid).val();
|
||||
var Frieght=$('#AfterFreightValue'+rowid).val()==''?'0.00':$('#AfterFreightValue'+rowid).val();
|
||||
|
||||
|
||||
var AfterAssessable=$('#AssessableValue'+rowid).val()==''?'0.00':$('#AssessableValue'+rowid).val();
|
||||
|
||||
var AfterIgst=$('#AfterIGST'+rowid).val()==''?'0.00':$('#AfterIGST'+rowid).val();
|
||||
|
||||
var AfterSubtotal=$('#SubTotal'+rowid).val()==''?'0.00':$('#SubTotal'+rowid).val();
|
||||
|
||||
|
||||
|
||||
TotalAssessable=parseFloat(TotalAssessable)-parseFloat(AfterAssessable);
|
||||
|
||||
TotalIgst=parseFloat(TotalIgst)-parseFloat(AfterIgst);
|
||||
|
||||
TotalSubtotal=parseFloat(TotalSubtotal)-parseFloat(AfterSubtotal);
|
||||
|
||||
|
||||
|
||||
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);
|
||||
|
||||
TotalOrderValue=parseFloat(TotalOrderValue)-parseFloat(totalExp);
|
||||
TotalFreight=parseFloat(TotalFreight)-parseFloat(Frieght);
|
||||
|
||||
$('#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));
|
||||
|
||||
$('#txtToatlOrder').val(parseFloat(TotalOrderValue).toFixed(2));
|
||||
$('#txttot').val(parseFloat(TotalOrderValue).toFixed(2));
|
||||
|
||||
$('#txtTotalFreight').val(parseFloat(TotalFreight).toFixed(2));
|
||||
|
||||
|
||||
$('#txttotalAssessable').val(parseFloat(TotalAssessable).toFixed(2));
|
||||
|
||||
$('#txttotalSubtotal').val(parseFloat(TotalSubtotal).toFixed(2));
|
||||
|
||||
$('#txttotalIgst').val(parseFloat(TotalIgst).toFixed(2));
|
||||
|
||||
|
||||
|
||||
|
||||
@ -4282,68 +4282,83 @@ function DeleteRow(rowid)
|
||||
function populateValueMainFormForDeleteItem(rowid)
|
||||
{ //alert();
|
||||
var TotalLanding=$('#txttotallanding').val();
|
||||
var TotalHighseas=$('#txttotalhighseas').val();
|
||||
|
||||
var TotalCustom=$('#txttotalcustom').val();
|
||||
var TotalExcise=$('#txttotalexcise').val();
|
||||
var TotalExciseED=$('#txttotalexciseED').val();
|
||||
var TotalExciseSH=$('#txttotalexciseSH').val();
|
||||
|
||||
var TotalCustomED=$('#txttotalcustomED').val();
|
||||
var TotalCustomSH=$('#txttotalcustomSH').val();
|
||||
var TotalAdditionalExcise=$('#txttotalAdditionalExciseduty').val();
|
||||
|
||||
var TotalGrossDuty=$('#txttotalgrossduty').val();
|
||||
var TotalAvlmodvat=$('#txttotalavlmodvat').val();
|
||||
var TotalGrossExpense=$('#txttotalgrossexpense').val();
|
||||
|
||||
var TotalOrderValue=$('#txtToatlOrder').val();
|
||||
var TotalFrieght=$('#txtTotalFreight').val();
|
||||
//console.log(TotalLanding);
|
||||
|
||||
var TotalAssessable=$('#txttotalAssessable').val();
|
||||
|
||||
var TotalSubtotal=$('#txttotalSubtotal').val();
|
||||
|
||||
var TotalIgst=$('#txttotalIgst').val();
|
||||
//console.log(TotalSubtotal);
|
||||
var AfterLandingCharge= $('#AfterLandingChargee'+rowid).val() == '' ? '0.00' : $('#AfterLandingChargee'+rowid).val();
|
||||
//console.log(AfterLandingCharge);
|
||||
var AfterHighseas=$('#AfterHighseass'+rowid).val()==''?'0.00':$('#AfterHighseass'+rowid).val();
|
||||
|
||||
var AfterCustomduty=$('#AfterCustomduty'+rowid).val()==''?'0.00':$('#AfterCustomduty'+rowid).val();
|
||||
var AfterExcisedutyTax=$('#AfterExcisedutyTax'+rowid).val()==''?'0.00':$('#AfterExcisedutyTax'+rowid).val();
|
||||
var AfterExcisedutyEDcess=$('#AfterExcisedutyED'+rowid).val()==''?'0.00':$('#AfterExcisedutyED'+rowid).val();
|
||||
var AfterExciseDutySH=$('#AfterExcisedutySH'+rowid).val()==''?'0.00':$('#AfterExcisedutySH'+rowid).val();
|
||||
var AfterAdditionalExciseduty=$('#AfterAdditionalExciseduty'+rowid).val()==''?'0.00':$('#AfterAdditionalExciseduty'+rowid).val();
|
||||
|
||||
|
||||
var AfterCustomEDcess=$('#AfterCustomEDcess'+rowid).val()==''?'0.00':$('#AfterCustomEDcess'+rowid).val();
|
||||
var AfterCustomSHcess=$('#AfterCustomSHcess'+rowid).val()==''?'0.00':$('#AfterCustomSHcess'+rowid).val();
|
||||
var AdditionalExciseduty=$('#AfterAdditionalExciseduty'+rowid).val()==''?'0.00':$('#AfterAdditionalExciseduty'+rowid).val();
|
||||
|
||||
var Grossdutypayable=$('#Grossdutypayable'+rowid).val()==''?'0.00':$('#Grossdutypayable'+rowid).val();
|
||||
var AvailableModvat=$('#AvilableModvat'+rowid).val()==''?'0.00':$('#AvilableModvat'+rowid).val();
|
||||
var Grossexpenses=$('#Grossexpenses'+rowid).val()==''?'0.00':$('#Grossexpenses'+rowid).val();
|
||||
|
||||
var totalExp=$('#TotalExp'+rowid).val()==''?'0.00':$('#TotalExp'+rowid).val();
|
||||
var AfterFreight=$('#AfterFreightRate'+rowid).val()==''?'0.00':$('#AfterFreightRate'+rowid).val();
|
||||
|
||||
|
||||
|
||||
var AfterAssessable=$('#AfterAssessable'+rowid).val()==''?'0.00':$('#AfterAssessable'+rowid).val();
|
||||
|
||||
var AfterIgst=$('#AfterIgst'+rowid).val()==''?'0.00':$('#AfterIgst'+rowid).val();
|
||||
|
||||
var AfterSubtotal=$('#Subtotal'+rowid).val()==''?'0.00':$('#Subtotal'+rowid).val();
|
||||
|
||||
TotalLanding = parseFloat(TotalLanding) - parseFloat(AfterLandingCharge);
|
||||
//console.log(TotalLanding);
|
||||
TotalHighseas = parseFloat(TotalHighseas) - parseFloat(AfterHighseas);
|
||||
//console.log(AfterSubtotal);
|
||||
|
||||
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);
|
||||
|
||||
TotalOrderValue=parseFloat(TotalOrderValue)-parseFloat(totalExp);
|
||||
TotalFrieght=parseFloat(TotalFrieght)-parseFloat(AfterFreight);
|
||||
|
||||
TotalAssessable=parseFloat(TotalAssessable)-parseFloat(AfterAssessable);
|
||||
|
||||
TotalIgst=parseFloat(TotalIgst)-parseFloat(AfterIgst);
|
||||
|
||||
TotalSubtotal=parseFloat(TotalSubtotal)-parseFloat(AfterSubtotal);
|
||||
|
||||
|
||||
$('#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));
|
||||
|
||||
$('#txtToatlOrder').val(parseFloat(TotalOrderValue).toFixed(2));
|
||||
$('#txtTotalFreight').val(parseFloat(TotalFrieght).toFixed(2));
|
||||
|
||||
$('#txttotalAssessable').val(parseFloat(TotalAssessable).toFixed(2));
|
||||
|
||||
$('#txttotalSubtotal').val(parseFloat(TotalSubtotal).toFixed(2));
|
||||
|
||||
$('#txttotalIgst').val(parseFloat(TotalIgst).toFixed(2));
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user