Major Issues completed in po : ps

This commit is contained in:
VE10-Sanjeev 2025-03-15 10:17:35 +00:00
parent 150ccfc146
commit cce1920996
17 changed files with 1644 additions and 1625 deletions

View File

@ -589,7 +589,11 @@ class Amendmentpurchaseorder extends BaseController
}
echo 'Purchase Order Amended Successfully! PO Number Is: ' . $PONO . '- New PO Number is' . $NewPO;
$message = 'Purchase Order ' . $PONO . ' Amended Successfully! - New PO Number is: ' . $NewPO ;
if($changeStatus == 'ST014'){
$message = 'Purchase Order ' . $PONO . ' Amended Successfully! - New PO Number is: ' . $NewPO .' (Saved as Draft)';
}
echo $message;
}
@ -883,7 +887,12 @@ class Amendmentpurchaseorder extends BaseController
$this->purchaseorder_model->pomasterupdatestatus($NewPO, $Newstatus);
}
echo 'PO Number is' . $PONO . ' is Amended Successfully! - New Amended PO Number is ' . $NewPO;
$message = 'Purchase Order ' . $PONO . ' Amended Successfully! - New PO Number is: ' . $NewPO ;
if($changeStatus == 'ST014'){
$message = 'Purchase Order ' . $PONO . ' Amended Successfully! - New PO Number is: ' . $NewPO .' (Saved as Draft)';
}
echo $message;
}
/**
@ -906,7 +915,6 @@ class Amendmentpurchaseorder extends BaseController
$Deliverydt = '';
if (($DeliveryOption == 1) || ($DeliveryOption == 2)) {
$Deliverydt = null;
if ($DeliveryOption == 1) {
$DeliverySchedule = $this->request->getPost('Scheduleby');
}
@ -955,12 +963,15 @@ class Amendmentpurchaseorder extends BaseController
}
$MAD .= "Current Paymemnt Terms :&nbsp;&nbsp;" . $prePaymentmethodtext . "<br>";
}
if ($predispatch != $curdispatch) {
$MAD .= "Current Delivery Option :&nbsp;&nbsp;" . $predispatch . $preDeliverySchedule . $preDate . "<br>";
}
if ($DeliverySchedule1 != $preDeliverySchedule) {
$MAD .= "Current DeliveyOption :&nbsp;&nbsp;" . $preDeliverySchedule . $preDate . $predispatch . "<br>";
}
if ($preDate != $Date) {
$MAD .= "Current DeliveyOption :&nbsp;&nbsp;" . $preDate . $preDeliverySchedule . "<br>";
}
@ -995,6 +1006,7 @@ class Amendmentpurchaseorder extends BaseController
$qtycheck = $this->purchaseorder_model->getqtycheck($PONO);
$qtycheckresult = '';
foreach ($qtycheck as $qty) {
$qtycheckresult = $qty->IsQualityChkReqired;
}
@ -1006,8 +1018,10 @@ class Amendmentpurchaseorder extends BaseController
if ($PaymentMethod != 'PT08') {
$Otherpayment = '';
}
$updatedBy = $this->session->get('userId');
$AmendmentNewPoNo = generate_amendment_po_number($PONO);
$POMaster = array('PONO' => $AmendmentNewPoNo, 'ParentPO' => $PONO, 'SupplierID' => $SupplierID, 'TotalOrderValue' => $FinalTotalOrder, 'POType' => $POType, 'PODate' => $PODate, 'Status' =>$changeStatus , 'CapitalRange' => $PoRange, 'ExchangeRate' => $ExchangeRate, 'ExchangeRateCalculatedon' => $ExchangeRateOn, 'PaymentTerms' => $PaymentMethod, 'PaymentOtherDescription' => $Otherpayment, 'ServiceDescription' => $SpcialInstruction, 'CreatedBy' => $CreateBy, 'DeliveryAddress' => $DeliveryAddr, 'DeliveryDate' => $Deliverydt, 'CreatedDate' => $createddt, 'ReleasedBy' => $updatedBy, 'ReleasedOn' => $updateddt, 'DeliverySchedule' => $DeliverySchedule, 'DeliveryOption' => $DeliveryOption, 'CurrencyType' => $currencytypeID, 'AmendedDetails' => $MAD, 'Import_DispatchDetails' => $curdispatch, 'Import_PlaceofOrgin' => $PlaceOforigin, 'Supplier_Reference' => $SupplierReference, 'Mode_Of_Shipment' => $ModeOfShipment, 'Supplier_Offer_No' => $SuppliersOfferNo, 'Other_Reference' => $OtherReferences, 'Fincap' => $Fincap, 'InsuranceStatus' => $InsuranceOptions, 'InsuranceNumber' => $InsuranceNumber, 'POSubType' => $ServiceTypeOptions, 'IsQualityChkReqired' => $qtycheckresult);
$file = $this->request->getFile('POFile');
@ -1040,11 +1054,10 @@ class Amendmentpurchaseorder extends BaseController
$NewPO = $LastPO[0]['PONO'];
}
if( $changeStatus == "ST026" || $changeStatus == "ST014"){
$PODetail = array('Status' => PO_AMENDED); //TO SET PARENT PO AS AMENDMENT STATUS
$APO = $this->purchaseorder_model->updateAmendPOMaster($PONO, $PODetail);
}
if( $changeStatus == "ST026" || $changeStatus == "ST014"){
$PODetail = array('Status' => PO_AMENDED); //TO SET PARENT PO AS AMENDMENT STATUS
$APO = $this->purchaseorder_model->updateAmendPOMaster($PONO, $PODetail);
}
$LineItemStatus = REQITEM_NEW;
@ -1057,7 +1070,6 @@ class Amendmentpurchaseorder extends BaseController
// {
// $igrno = $igrvalue[0]->IGRNO;
// $po =$igrvalue[0]->PONO;
// }
foreach ($igrvalue as $value) {
@ -1065,9 +1077,6 @@ class Amendmentpurchaseorder extends BaseController
$igrno = $value->IGRNO;
$po = $value->PONO;
// print_r($igrno);
if ($PONO == $po) {
$NewPOno = array('PONO' => $NewPO);
// print_r($NewPOno);
@ -1077,7 +1086,6 @@ class Amendmentpurchaseorder extends BaseController
}
for ($i = 1; $i <= $RowCount; $i++) {
$CAD = '';
@ -1093,63 +1101,34 @@ class Amendmentpurchaseorder extends BaseController
$Productprice = $this->request->getPost('basicvalInINR' . $i);
$LandingCharge = $this->request->getPost('beforeLanding' . $i);
$AfterLandingCharge = $this->request->getPost('landingCharge' . $i);
$CustomDuty = $this->request->getPost('beforeCustomDuty' . $i);
$AfterCustomDuty = $this->request->getPost('CustomDuty' . $i);
$CustomEd = $this->request->getPost('beforeCustomEDCess' . $i);
$AfterCustomEd = $this->request->getPost('CustomEDCess' . $i);
$CustomSH = $this->request->getPost('beforeCustomSHCess' . $i);
$AfterCustomSH = $this->request->getPost('CustomSHCess' . $i);
$Grossdutypayable = $this->request->getPost('GrossDutyPayable' . $i);
$purchaseratePerKG = $this->request->getPost('purchaseRate' . $i);
$CustomDutyExpensesPerKG = $this->request->getPost('CustomDutyExpenses' . $i);
$QuantityKG = $this->request->getPost('PurQuantity' . $i);
$Totalvalueitem = $this->request->getPost('PerKgExpense' . $i);
$Assable = $this->request->getPost('AssessableValue' . $i);
$beforeAssable = $this->request->getPost('beforeAssessableValue' . $i);
$Subtotal = $this->request->getPost('SubTotal' . $i);
$beforeSubtotal = $this->request->getPost('beforeSubTotal' . $i);
$Igst = $this->request->getPost('IGSTInt' . $i);
$beforeIgst = $this->request->getPost('beforeIGSTInt' . $i);
$AfterIgst = $this->request->getPost('AfterIGSTInt' . $i);
$ClearingCharge = $this->request->getPost('ClearingCharge' . $i);
$NetValue = $this->request->getPost('NetValue' . $i);
$DutyImpact = $this->request->getPost('DutyImpact' . $i);
$CostCenter = $this->request->getPost('CPCostCode' . $i);
$SGST = $this->request->getPost('SGST' . $i);
$preSGST = $this->request->getPost('beforeSGST' . $i);
$CGST = $this->request->getPost('CGST' . $i);
$preCGST = $this->request->getPost('beforeCGST' . $i);
$IGST = $this->request->getPost('IGST' . $i);
$preIGST = $this->request->getPost('beforeIGST' . $i);
$SGSTvalue = $this->request->getPost('afterSGST' . $i);
$preSGSTvalue = $this->request->getPost('beforeSGSTvalue' . $i);
$CGSTvalue = $this->request->getPost('afterCGST' . $i);
@ -1171,12 +1150,10 @@ class Amendmentpurchaseorder extends BaseController
$AfterFreightValue = $this->request->getPost('AfterFreightVal' . $i);
$NOOfTrip = $this->request->getPost('NoOfTrip' . $i);
$POLineItemNo = $this->request->getPost('LineItemNo' . $i);
$FreightTypeloc = $this->request->getPost('Ftype' . $i);
$FreightNoofTriploc = $this->request->getPost('NoTrip' . $i);
$Freightrateloc = $this->request->getPost('Fvalue' . $i);
$FreightAmountloc = $this->request->getPost('Afvalue' . $i);
$beforeFreightTypeloc = $this->request->getPost('beforeFtype' . $i);
$beforeFreightNoofTriploc = $this->request->getPost('beforeNoTrip' . $i);
$beforeFreightrateloc = $this->request->getPost('beforeFvalue' . $i);
@ -1263,20 +1240,28 @@ class Amendmentpurchaseorder extends BaseController
$CAD .= $CAD2;
}
if($itemRate != 0){
// changed rate are update here
$this->purchaseorder_model->updateMaterialRate($MaterialCode, $itemRate); }
$POLineItemList = array('PONO' => $NewPO, 'ReqNo' => $Reqnumber, 'MaterialCode' => $MaterialCode, 'Quantity' => $Quantity, 'Rate' => $itemRate, 'Status' => $LineItemStatus, 'CreatedBy' => $CreateBy, 'CreatedDate' => $createddt, 'CostCenterCode' => $CostCenter, 'AmendedDetails' => $CAD, 'Per' => $Per, 'ServiceMaterialDescription' => $CapitalItemDescrition,'LineitemAuditorNotes' => $LineitemAuditorNotes);
$POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList);
$LineItemNo = '';
// PO line item insert here
$POLineItemList = array('PONO' => $NewPO, 'ReqNo' => $Reqnumber, 'MaterialCode' => $MaterialCode, 'Quantity' => $Quantity, 'Rate' => $itemRate, 'Status' => $LineItemStatus, 'CreatedBy' => $CreateBy, 'CreatedDate' => $createddt, 'CostCenterCode' => $CostCenter, 'AmendedDetails' => $CAD, 'Per' => $Per, 'ServiceMaterialDescription' => $CapitalItemDescrition,'LineitemAuditorNotes' => $LineitemAuditorNotes);
$POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList);
foreach ($POLineItem as $line) :
$LineItemNo = $line['LineItemNo'];
endforeach;
// don't use this foreach
// foreach ($POLineItem as $line) :
// $LineItemNo = $line['LineItemNo'];
// endforeach;
$LineItemNo = '';
if (count($POLineItem) > 0) {
$LineItemNo = $POLineItem[0]['LineItemNo'];
}
if (!is_null($POType) && is_string($POType) && trim($POType) === 'CAPITAL') {
if ($capitalType == '1') {
// 1 means
$ServiceTaxList = array('LineItemNo' => $LineItemNo, 'CGST' => $CGST, 'After_CGST' => $CGSTvalue, 'SGST' => $SGST, 'After_SGST' => $SGSTvalue, 'IGST' => $IGST, 'After_IGST' => $IGSTvalue, 'otherallowance' => $otherallowance, 'TotalValue' => $TotalServiceOrderValue, 'CreatedBy' => $CreateBy, 'CreatedDate' => $createddt, 'discount' => $DiscountType, 'discountval' => $DiscountValue, 'Afterdiscountval' => $AfterDiscount, 'FreightType' => $FreightTypeloc, 'NoOfTrip' => $FreightNoofTriploc, 'FreightValue' => $Freightrateloc, 'AfterFreightValue' => $FreightAmountloc);
$ServiceTax = $this->purchaseorder_model->addServiceTax($ServiceTaxList);
} else if ($capitalType == '0') {
@ -1309,7 +1294,12 @@ class Amendmentpurchaseorder extends BaseController
}
echo 'Purchase Order' . $PONO . 'Amended Successfully! New PO Number Is: ' . $NewPO;
$message = 'Purchase Order ' . $PONO . ' Amended Successfully! - New PO Number is: ' . $NewPO ;
if($changeStatus == 'ST014'){
$message = 'Purchase Order ' . $PONO . ' Amended Successfully! - New PO Number is: ' . $NewPO .' (Saved as Draft)';
}
echo $message;
}
@ -1444,7 +1434,7 @@ class Amendmentpurchaseorder extends BaseController
if (count($LastPO) > 0) {
$NewPO = $LastPO[0]['PONO'];
}
if( $changeStatus == "ST026" || $changeStatus == "ST014"){
$PODetail = array('Status' => PO_AMENDED); //TO SET PARENT PO AS AMENDMENT STATUS
@ -1667,7 +1657,6 @@ class Amendmentpurchaseorder extends BaseController
$LineItemNo = $POLineItem[0]['LineItemNo'];
}
$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);
$ImportList = $this->purchaseorder_model->addImportTax($ImportTaxList);
}
@ -1695,6 +1684,11 @@ class Amendmentpurchaseorder extends BaseController
$this->purchaseorder_model->pomasterupdatestatus($NewPO, $Newstatus);
}
echo 'Purchase Order is' . $PONO . 'Amended Successfully! New PO Number is: ' . $NewPO;
$message = 'Purchase Order ' . $PONO . ' Amended Successfully! - New PO Number is: ' . $NewPO ;
if($changeStatus == 'ST014'){
$message = 'Purchase Order ' . $PONO . ' Amended Successfully! - New PO Number is: ' . $NewPO .' (Saved as Draft)';
}
echo $message;
}
}

View File

@ -1259,7 +1259,13 @@ class Purchaseorder extends BaseController
}
}
}
echo 'Purchase Order Created Successfully! PO Number Is: ' . $PONO;
$message = 'Revenue Purchase Order Created Successfully! PO Number Is: ' . $PONO;
if($POStatus == 'ST014'){
$message = 'Revenue Purchase Order Saved as Draft! PO Number Is: ' . $PONO;
} else if($POStatus == 'ST026'){
$message = 'Revenue Purchase Order Approved Successfully! PO Number Is: ' . $PONO;
}
echo $message;
} catch (\Exception $e) {
log_message('error', 'Exception occurred: ' . $e->getMessage());
echo 'An error occurred while creating the purchase order. Please try again.';
@ -1590,7 +1596,13 @@ class Purchaseorder extends BaseController
}
}
echo 'Purchase Order Updated Successfully! PO Number Is: ' . $PONO;
$message = 'Revenue Purchase Order Updated Successfully! PO Number Is: ' . $PONO;
if($POStatus == 'ST014'){
$message = 'Revenue Purchase Order Saved as Draft! PO Number Is: ' . $PONO;
} else if($POStatus == 'ST026'){
$message = 'Revenue Purchase Order Approved Successfully! PO Number Is: ' . $PONO;
}
echo $message;
}
@ -2151,7 +2163,14 @@ class Purchaseorder extends BaseController
}
}
echo 'Purchase Order Created Successfully! PO Number Is: ' . $PONO;
$message = 'Import Purchase Order Created Successfully! PO Number Is: ' . $PONO;
if($POStatus == 'ST014'){
$message = 'Import Purchase Order Saved as Draft! PO Number Is: ' . $PONO;
} else if($POStatus == 'ST026'){
$message = 'Import Purchase Order Approved Successfully! PO Number Is: ' . $PONO;
}
echo $message;
} catch (\Exception $e) {
log_message('error', 'Exception occurred: ' . $e->getMessage());
echo 'An error occurred while creating the purchase order. Please try again.';
@ -2533,7 +2552,13 @@ class Purchaseorder extends BaseController
}
echo 'Purchase Order Updated Successfully! PO Number Is: ' . $PONO;
$message = 'Import Purchase Order Updated Successfully! PO Number Is: ' . $PONO;
if($POStatus == 'ST014'){
$message = 'Import Purchase Order Saved as Draft! PO Number Is: ' . $PONO;
} else if($POStatus == 'ST026'){
$message = 'Import Purchase Order Approved Successfully! PO Number Is: ' . $PONO;
}
echo $message;
}
@ -2912,7 +2937,13 @@ class Purchaseorder extends BaseController
}
}
echo 'Purchase Order Created Successfully! PO Number Is: ' . $PONO;
$message = 'Capital Purchase Order Created Successfully! PO Number Is: ' . $PONO;
if($POStatus == 'ST014'){
$message = 'Capital Purchase Order Saved as Draft! PO Number Is: ' . $PONO;
} else if($POStatus == 'ST026'){
$message = 'Capital Purchase Order Approved Successfully! PO Number Is: ' . $PONO;
}
echo $message;
} catch (\Exception $e) {
log_message('error', 'Exception occurred: ' . $e->getMessage());
echo 'An error occurred while creating the purchase order. Please try again.';
@ -3342,9 +3373,14 @@ class Purchaseorder extends BaseController
}
}
}
$message = 'Capital Purchase Order Updated Successfully! PO Number Is: ' . $PONO;
if($POStatus == 'ST014'){
$message = 'Capital Purchase Order Saved as Draft! PO Number Is: ' . $PONO;
} else if($POStatus == 'ST026'){
$message = 'Capital Purchase Order Approved Successfully! PO Number Is: ' . $PONO;
}
echo $message;
echo 'Purchase Order Updated Successfully! PO Number Is: ' . $PONO;
}

View File

@ -342,7 +342,15 @@ class Servicepurchaseorder extends BaseController
}
}
}
echo 'Service Purchase Order Created Successfully! PO Number Is: ' . $PONO;
$message = 'Service Purchase Order Created Successfully! PO Number Is: ' . $PONO;
if($POStatus == 'ST015'){
$message = 'Service Purchase Order Saved as Draft! PO Number Is: ' . $PONO;
} else if($POStatus == 'ST026'){
$message = 'Service Purchase Order Approved Successfully! PO Number Is: ' . $PONO;
}
echo $message;
}
//update service po
function UpdateServicePurchaseOrder()
@ -606,7 +614,15 @@ class Servicepurchaseorder extends BaseController
}
/*--------- Lineitem Section starts ---------------------*/
}
echo 'Purchase Order Updated Successfully! PO Number Is: ' . $PONO;
$message = 'Service Purchase Order Updated Successfully! PO Number Is: ' . $PONO;
if($POStatus == 'ST014'){
$message = 'Service Purchase Order Created Successfully! PO Number Is: ' . $PONO;
} else if($POStatus == 'ST015'){
$message = 'Service Purchase Order Saved as Draft! PO Number Is: ' . $PONO;
} else if($POStatus == 'ST026'){
$message = 'Service Purchase Order Approved Successfully! PO Number Is: ' . $PONO;
}
echo $message;
}

View File

@ -2855,7 +2855,7 @@ if (!empty($getlogpodtl)) {
function populateValueMainFormForEditServiceTax() {
var rows = $('#ServiceTable tbody tr').length;
var rows = document.getElementById('ServiceTable').rows.length;
// alert(rows);
var editrow = parseFloat(rows) - 1;
var TotCgst = 0;
@ -3373,7 +3373,7 @@ if (!empty($getlogpodtl)) {
AvlBudAmt = '<?php echo number_format($AvlAmount + $TotalBasicAmount, 2, '.', '') ?>';
//ServiceTable
var rows = $('#ServiceTable tbody tr').length;
var rows = document.getElementById('ServiceTable').rows.length;
var DeletedMaterialCode = '';
var DeletedMaterialName = '';

View File

@ -420,10 +420,11 @@
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table id="Inwardgateregistertable1" class="table table-striped table-hover mb-0 editabletable IGR_Line" style="font-size:12px;">
<!-- <table id="Inwardgateregistertable1" class="table table-striped table-hover mb-0 editabletable IGR_Line" style="font-size:12px;"> -->
<table id="Inwardgateregistertable1" class="table table-bordered table-hover mb-0 editabletable IGR_Line" style="font-size:12px;">
<thead style="background-color:#ddd !important">
<tr>
<th style="width: 50px;">#</th>
<th style="width: 50px;">SNo</th>
<th style="width: 100px;">Item Code</th>
<th style="width: 150px; word-wrap: break-word; word-break: break-all; white-space: normal;">Item Description</th>
<th style="width: 50px;">UOM</th>

File diff suppressed because it is too large Load Diff

View File

@ -1722,7 +1722,7 @@ if (!empty($POItem) && $CapitalRange == '1') {
<a class="btn btn-success Save" onclick="Save(0)">&nbsp;&nbsp;<span
class="bold">Save as Draft</span></a>
<a class="btn btn-success Save" ID="Submit" onclick="Save(1)">&nbsp;&nbsp;<span
class="bold">Submit</span></a>
class="bold">Approve</span></a>
</div>
@ -2144,304 +2144,306 @@ if (!empty($POItem) && $CapitalRange == '1') {
?>
</div>
</div>
<div class="form-row" style="border:solid black 1px; padding:1%;">
<div class="form-row" style="padding:1%;" id="EditModalImportTaxHide" style="display:none;">
<br/>
<div class="form-group col-md-6" style="padding:15px;">
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditBasicPriceTax">Basic Price In<?php echo "($INR)" ?></label>
</div>
<!--<div class="form-group col-md-4">
<div >
<?php
$data = array('name' => 'EditBasicPriceTax', 'value' => set_value('EditBasicPriceTax'), 'id' => 'EditBasicPriceTax', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);');
echo form_input($data);
?>
</div>
</div>-->
<div class="col-md-4 col-md-offset-4">
<?php
$data = array('name' => 'EditAfterBasicPriceTax', 'value' => set_value('EditAfterBasicPriceTax'), 'id' => 'EditAfterBasicPriceTax', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditLandingCharge">Landing charge<?php echo "$INR" ?></label>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditLandingCharge', 'value' => set_value('EditLandingCharge'), 'id' => 'EditLandingCharge', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditAfterLandingCharge', 'value' => set_value('EditAfterLandingCharge'), 'id' => 'EditAfterLandingCharge', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditHighseas">Assessable Value (A)<?php echo "$INR" ?></label>
</div>
<div class="form-group col-md-4">
<div style="display: none;">
<?php
$data = array('name' => 'EditHighseas ', 'value' => set_value('EditHighseas'), 'id' => 'EditHighseas', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditAfterAssessable', 'value' => set_value('EditAfterAssessable'), 'id' => 'EditAfterAssessable', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditCustomduty"> Custom duty (B) :<?php echo "$INR" ?></label>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditCustomduty', 'value' => set_value('EditCustomduty'), 'id' => 'EditCustomduty', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditAfterCustomduty', 'value' => set_value('EditAfterCustomduty'), 'id' => 'EditAfterCustomduty', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditCustomEDcess"> Custom ED_cess : (C)<?php echo "($INR)" ?></label>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditCustomEDcess', 'value' => set_value('EditCustomEDcess'), 'id' => 'EditCustomEDcess', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditAfterCustomEDcess', 'value' => set_value('EditAfterCustomEDcess'), 'id' => 'EditAfterCustomEDcess', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditCustomSHcess"> Custom S & H cess : (D)<?php echo "($INR)" ?></label>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditCustomSHcess', 'value' => set_value('EditCustomSHcess'), 'id' => 'EditCustomSHcess', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditAfterCustomSHcess', 'value' => set_value('EditAfterCustomSHcess'), 'id' => 'EditAfterCustomSHcess', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="form-group col-md-6" style="padding:15px;">
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditAdditionalExciseduty"> Subtotal: (E)<?php echo "($INR)" ?></label>
</div>
<div class="form-group col-md-4">
<div style="display: none">
<?php
$data = array('name' => 'EditAdditionalExciseduty ', 'value' => set_value('EditAdditionalExciseduty'), 'id' => 'EditAdditionalExciseduty', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditSubtotal', 'value' => set_value('EditSubtotal'), 'id' => 'EditSubtotal', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<!-- Additional Excise duty : (g) -->
<label for="EditIgstInt">
IGST on (E): (F)
<?php echo " ($INR)"; ?>
</label>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditIgstInt ', 'value' => set_value('EditIgstInt', 0), 'id' => 'EditIgstInt', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditCalculateIgst()');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditAfterIgstInt', 'value' => set_value('EditAfterIgstInt', 0), 'id' => 'EditAfterIgstInt', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-8">
<label for="EditGrossdutypayable">
Total Duty <?php echo "($INR)" ?>
</label>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditGrossdutypayable ', 'value' => set_value('EditGrossdutypayable'), 'id' => 'EditGrossdutypayable', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<!--Start of Adding of Frieght model-->
<div class="form-row" style="padding:0px;">
<div class="form-group col-md-4">
<label for="drpamendFreight">Freight Type</label>
<?php
$options = array("0" => 'Select Freight Type');
if (!empty($FreightType)) {
foreach ($FreightType as $SID):
$options[$SID->ConfigValue] = $SID->ConfigValue;
endforeach;
}
echo form_dropdown('drpamendFreight', $options, set_value('drpamendFreight'), 'id="drpamendFreight" class="form-control "');
?>
</div>
<div class="form-group col-md-4" id="AmendTripsValue" style="display:none;">
<label for="AmendNOOfTrips">NO Of Trips</label>
<?php
$data = array('name' => 'AmendNOOfTrips', 'value' => set_value('AmendNOOfTrips'), 'id' => 'AmendNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4">
<label for="AmendtxtFreight">Freight Rate</label>
<?php
$data = array('name' => 'AmendtxtFreight', 'value' => set_value('AmendtxtFreight'), 'id' => 'AmendtxtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(3);');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4" style="padding-left: 0px;">
<label for="AmendtxtAfterFreight"> Freight Amt </label>
<?php
$data = array('name' => 'AmendtxtAfterFreight', 'value' => set_value('AmendtxtAfterFreight'), 'id' => 'AmendtxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<!--End of Adding of freight in edit model -->
<br>
<p style="text-align:center; font-size: 16px; "><b>Cost Of The Product Per UOM</b></p>
<hr>
<br>
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditDutyImpact">
Duty Impact
</label>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditDutyImpact', 'value' => set_value('EditDutyImpact'), 'id' => 'EditDutyImpact', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4" style="margin-top: -4.8%">
<label for="EditPurQuantity">Quantity</label>
<?php
$data = array('name' => 'EditPurQuantity', 'value' => set_value('EditPurQuantity'), 'id' => 'EditPurQuantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditCustomDutyExpenses">
Custom Duty<?php echo "($INR)/UOM" ?>
</label>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditCustomDutyExpenses ', 'value' => set_value('EditCustomDutyExpenses'), 'id' => 'EditCustomDutyExpenses', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditClearingCharges"> Clearing Charges <?php echo "($INR)" ?></label>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditClearingCharges', 'value' => set_value('EditClearingCharges'), 'id' => 'EditClearingCharges', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
<div id="EditModalImportTaxHide" style="display:none;">
<div class="form-row" style="border:solid black 1px; padding:1%;">
<div class="form-row" style="padding:1%;">
<div class="form-group col-md-4 " style="margin-top: -4.8%">
<label for="EditNett">Net per Uom<?php echo "($INR)"; ?></label>
<?php
$data = array('name' => 'EditNett', 'value' => set_value('EditNett'), 'id' => 'EditNett', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<br/>
<div class="form-group col-md-6" style="padding:15px;">
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditBasicPriceTax">Basic Price In<?php echo "($INR)" ?></label>
</div>
<!--<div class="form-group col-md-4">
<div >
<?php
$data = array('name' => 'EditBasicPriceTax', 'value' => set_value('EditBasicPriceTax'), 'id' => 'EditBasicPriceTax', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);');
echo form_input($data);
?>
</div>
</div>-->
<div class="col-md-4 col-md-offset-4">
<?php
$data = array('name' => 'EditAfterBasicPriceTax', 'value' => set_value('EditAfterBasicPriceTax'), 'id' => 'EditAfterBasicPriceTax', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditLandingCharge">Landing charge<?php echo "$INR" ?></label>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditLandingCharge', 'value' => set_value('EditLandingCharge'), 'id' => 'EditLandingCharge', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditAfterLandingCharge', 'value' => set_value('EditAfterLandingCharge'), 'id' => 'EditAfterLandingCharge', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditHighseas">Assessable Value (A)<?php echo "$INR" ?></label>
</div>
<div class="form-group col-md-4">
<div style="display: none;">
<?php
$data = array('name' => 'EditHighseas ', 'value' => set_value('EditHighseas'), 'id' => 'EditHighseas', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditAfterAssessable', 'value' => set_value('EditAfterAssessable'), 'id' => 'EditAfterAssessable', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditCustomduty"> Custom duty (B) :<?php echo "$INR" ?></label>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditCustomduty', 'value' => set_value('EditCustomduty'), 'id' => 'EditCustomduty', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditAfterCustomduty', 'value' => set_value('EditAfterCustomduty'), 'id' => 'EditAfterCustomduty', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditCustomEDcess"> Custom ED_cess : (C)<?php echo "($INR)" ?></label>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditCustomEDcess', 'value' => set_value('EditCustomEDcess'), 'id' => 'EditCustomEDcess', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditAfterCustomEDcess', 'value' => set_value('EditAfterCustomEDcess'), 'id' => 'EditAfterCustomEDcess', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditCustomSHcess"> Custom S & H cess : (D)<?php echo "($INR)" ?></label>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditCustomSHcess', 'value' => set_value('EditCustomSHcess'), 'id' => 'EditCustomSHcess', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditAfterCustomSHcess', 'value' => set_value('EditAfterCustomSHcess'), 'id' => 'EditAfterCustomSHcess', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="form-group col-md-6" style="padding:15px;">
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditAdditionalExciseduty"> Subtotal: (E)<?php echo "($INR)" ?></label>
</div>
<div class="form-group col-md-4">
<div style="display: none">
<?php
$data = array('name' => 'EditAdditionalExciseduty ', 'value' => set_value('EditAdditionalExciseduty'), 'id' => 'EditAdditionalExciseduty', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditSubtotal', 'value' => set_value('EditSubtotal'), 'id' => 'EditSubtotal', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<!-- Additional Excise duty : (g) -->
<label for="EditIgstInt">
IGST on (E): (F)
<?php echo " ($INR)"; ?>
</label>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditIgstInt ', 'value' => set_value('EditIgstInt', 0), 'id' => 'EditIgstInt', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditCalculateIgst()');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditAfterIgstInt', 'value' => set_value('EditAfterIgstInt', 0), 'id' => 'EditAfterIgstInt', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-8">
<label for="EditGrossdutypayable">
Total Duty <?php echo "($INR)" ?>
</label>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditGrossdutypayable ', 'value' => set_value('EditGrossdutypayable'), 'id' => 'EditGrossdutypayable', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<!--Start of Adding of Frieght model-->
<div class="form-row" style="padding:0px;">
<div class="form-group col-md-4">
<label for="drpamendFreight">Freight Type</label>
<?php
$options = array("0" => 'Select Freight Type');
if (!empty($FreightType)) {
foreach ($FreightType as $SID):
$options[$SID->ConfigValue] = $SID->ConfigValue;
endforeach;
}
echo form_dropdown('drpamendFreight', $options, set_value('drpamendFreight'), 'id="drpamendFreight" class="form-control "');
?>
</div>
<div class="form-group col-md-4" id="AmendTripsValue" style="display:none;">
<label for="AmendNOOfTrips">NO Of Trips</label>
<?php
$data = array('name' => 'AmendNOOfTrips', 'value' => set_value('AmendNOOfTrips'), 'id' => 'AmendNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4">
<label for="AmendtxtFreight">Freight Rate</label>
<?php
$data = array('name' => 'AmendtxtFreight', 'value' => set_value('AmendtxtFreight'), 'id' => 'AmendtxtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(3);');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4" style="padding-left: 0px;">
<label for="AmendtxtAfterFreight"> Freight Amt </label>
<?php
$data = array('name' => 'AmendtxtAfterFreight', 'value' => set_value('AmendtxtAfterFreight'), 'id' => 'AmendtxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<!--End of Adding of freight in edit model -->
<br>
<p style="text-align:center; font-size: 16px; "><b>Cost Of The Product Per UOM</b></p>
<hr>
<br>
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditDutyImpact">
Duty Impact
</label>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditDutyImpact', 'value' => set_value('EditDutyImpact'), 'id' => 'EditDutyImpact', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4" style="margin-top: -4.8%">
<label for="EditPurQuantity">Quantity</label>
<?php
$data = array('name' => 'EditPurQuantity', 'value' => set_value('EditPurQuantity'), 'id' => 'EditPurQuantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditCustomDutyExpenses">
Custom Duty<?php echo "($INR)/UOM" ?>
</label>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditCustomDutyExpenses ', 'value' => set_value('EditCustomDutyExpenses'), 'id' => 'EditCustomDutyExpenses', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditClearingCharges"> Clearing Charges <?php echo "($INR)" ?></label>
</div>
<div class="form-group col-md-4">
<?php
$data = array('name' => 'EditClearingCharges', 'value' => set_value('EditClearingCharges'), 'id' => 'EditClearingCharges', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
?>
</div>
<div class="form-group col-md-4 " style="margin-top: -4.8%">
<label for="EditNett">Net per Uom<?php echo "($INR)"; ?></label>
<?php
$data = array('name' => 'EditNett', 'value' => set_value('EditNett'), 'id' => 'EditNett', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-6" align="right" style="display:none;"> <label>Total Order
Amount :</label></div>
<div class="form-group col-md-6" style="display:none;">
<?php
$data = array('name' => 'EdittxtTotalOrderValue', 'value' => set_value('EdittxtTotalOrderValue'), 'id' => 'EdittxtTotalOrderValue', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-6" align="right" style="display:none;"> <label>Total Order
Amount :</label></div>
<div class="form-group col-md-6" style="display:none;">
<?php
$data = array('name' => 'EdittxtTotalOrderValue', 'value' => set_value('EdittxtTotalOrderValue'), 'id' => 'EdittxtTotalOrderValue', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
</div>
<br>
<div class="form-row" style="text-align: left;">
@ -3369,7 +3371,7 @@ Calculate Landing charge
$('#EditOtherAllowances').val($('#otherallowance' + userid).val());
//$('#Editservicetotalordervaue').val($('#totalservicevalue'+userid).val());
$('#Editservicetotalordervaue').val(cellval[8].innerHTML);
$('#Editservicetotalordervaue').val(cellval[9].innerHTML);
@ -4079,19 +4081,20 @@ Calculate Landing charge
$('#AfterFreightVal' + userid).val(AfterFreightVal);
$('#DisVal' + userid).val(DisVal);
$('#AfterDisVal' + userid).val(AfterDisVal);
cellval[2].innerHTML = materialName;
var shorten = materialName.length > 13 ? materialName.slice(0, 13) + "..." : materialName;
cellval[2].innerHTML = shorten;
//alert(materialName);
cellval[3].innerHTML = parseFloat(quantity).toFixed(2);
cellval[4].innerHTML = parseFloat(quantity).toFixed(2);
//alert(quantity);
cellval[4].innerHTML = uom;
cellval[5].innerHTML = uom;
//alert(uom);
cellval[5].innerHTML = parseFloat(itemRate).toFixed(2);
cellval[6].innerHTML = parseFloat(itemRate).toFixed(2);
//alert(itemRate);
cellval[6].innerHTML = parseFloat(basicval).toFixed(2);
cellval[7].innerHTML = parseFloat(basicval).toFixed(2);
//alert(basicval);
cellval[7].innerHTML = parseFloat(TotalTaxValue).toFixed(2);
cellval[8].innerHTML = parseFloat(TotalTaxValue).toFixed(2);
//alert(TotalTaxValue);
cellval[8].innerHTML = parseFloat(totalservicevalue).toFixed(2);
cellval[9].innerHTML = parseFloat(totalservicevalue).toFixed(2);
//alert(basicval);
@ -4142,7 +4145,14 @@ Calculate Landing charge
function EditcalculateTaxValue() {
var CGSTTaxAmount = $('#EditAfterCgst').val() == '' ? '0.00' : $('#EditAfterCgst').val();
var SGSTTaxAmount = $('#EditAfterSgst').val() == '' ? '0.00' : $('#EditAfterSgst').val();
var IGSTTaxAmount = $('#EditAfterIgst').val() == '' ? '0.00' : $('#EditAfterIgst').val();
// var IGSTTaxAmount = $('#EditAfterIgst').val() == '' ? '0.00' : $('#EditAfterIgst').val();
var IGSTTaxAmount = 0.00;
if (capitalType == 'Domestic') {
IGSTTaxAmount = $('#EditAfterIgst').val() == '' ? '0.00' : $('#EditAfterIgst').val();
}
if(capitalType == 'International') {
IGSTTaxAmount = $('#EditAfterIgstInt').val() == '' ? '0.00' : $('#EditAfterIgstInt').val();
}
var otherallowanceAmount = $('#EditOtherAllowances').val() == '' ? '0.00' : $('#EditOtherAllowances').val();
//alert(CGSTTaxAmount+""+SGSTTaxAmount+""+IGSTTaxAmount+otherallowanceAmount)

View File

@ -1181,16 +1181,16 @@ if (!empty($getlogpodtl)) {
<input type="hidden" name="<?php echo 'AssessableValue' . $index ?>"
<input type="text" name="<?php echo 'AssessableValue' . $index ?>"
id="<?php echo 'AssessableValue' . $index ?>" value="<?php echo $record->AssessableValue; ?>" />
<input type="hidden" name="<?php echo 'SubTotal' . $index ?>"
<input type="text" name="<?php echo 'SubTotal' . $index ?>"
id="<?php echo 'SubTotal' . $index ?>" value="<?php echo $record->SubTotal; ?>" />
<input type="hidden" name="<?php echo 'IGSTInt' . $index ?>" id="<?php echo 'IGSTInt' . $index ?>"
<input type="text" name="<?php echo 'IGSTInt' . $index ?>" id="<?php echo 'IGSTInt' . $index ?>"
value="<?php echo $record->IGST; ?>" />
<input type="hidden" name="<?php echo 'AfterIGSTInt' . $index ?>"
<input type="text" name="<?php echo 'AfterIGSTInt' . $index ?>"
id="<?php echo 'AfterIGSTInt' . $index ?>" value="<?php echo $record->AfterIGST; ?>" />
<input type="hidden" name="<?php echo 'DutyImpact' . $index ?>"
@ -1453,8 +1453,8 @@ if (!empty($getlogpodtl)) {
</div>
<div class="form-row" style="padding:1% 1%;">
<div class="form-group col-md-3">
<div class="form-row"> <!-- style="padding:1% 1%;" -->
<div class="form-group col-md-4">
<label id="lbl_international">Total Order Value <?php echo "($INR)" ?> </label>
<?php
@ -2083,12 +2083,14 @@ if (!empty($getlogpodtl)) {
<div class="form-group col-md-4">
Basic Price <?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4" style="display:none;">
<div class="form-group">
<?php
$data = array('name' => 'BasicPriceTax', 'value' => set_value('BasicPriceTax'), 'id' => 'BasicPriceTax', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);');
echo form_input($data);
?>
<div class="form-group col-md-4">
<div style="display:none;">
<div class="form-group">
<?php
$data = array('name' => 'BasicPriceTax', 'value' => set_value('BasicPriceTax'), 'id' => 'BasicPriceTax', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);');
echo form_input($data);
?>
</div>
</div>
</div>
<div class="form-group col-md-4">
@ -2438,7 +2440,7 @@ if (!empty($getlogpodtl)) {
<div class="modal-header">
<h4 class="modal-title">Edit Capital Purchase Order Item</h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
</div><!-- /.header -->
<form>
<div class="modal-body p-4">
<div class="form-row">
@ -2492,7 +2494,7 @@ if (!empty($getlogpodtl)) {
</div>
</div>
</div>
</div><!-- /.1strow-->
<div class="form-row">
<div class="form-group col-md-9"></div>
@ -2505,7 +2507,7 @@ if (!empty($getlogpodtl)) {
?>
</div>
</div>
</div>
</div><!-- /.2ndrow-->
<div class="form-row" style="padding: 0px;">
<div class="form-group col-md-3">
@ -2544,7 +2546,7 @@ if (!empty($getlogpodtl)) {
?>
</div>
</div>
</div>
</div><!-- /.3rdrow-->
<div class="form-row">
@ -2575,7 +2577,7 @@ if (!empty($getlogpodtl)) {
</div>
</div>
</div>
</div><!-- /.4throw-->
<div class="form-row" style="padding:0px;" id="EDITCAPdiv">
<div class="form-group col-md-3">
@ -2677,7 +2679,7 @@ if (!empty($getlogpodtl)) {
</div>
</div>
</div>
</div><!-- /.5throw-->
<div class="form-row" id="EDITCAPdiv1">
<div class="form-group col-md-6" style="text-align:right !important">
<label> SGST In % </label>
@ -2701,7 +2703,7 @@ if (!empty($getlogpodtl)) {
</div>
</div>
</div>
</div><!-- /.C.D1-->
<div class="form-row" id="EDITCAPdiv2">
<div class="form-group col-md-6" style="text-align:right !important">
@ -2729,7 +2731,7 @@ if (!empty($getlogpodtl)) {
</div>
</div>
</div><!-- /.C.D2-->
<div class="form-row" id="EDITCAPdiv3">
<div class="col-md-9 col-md-offset-4" style="text-align:right !important">
<label>Other Allowances <?php echo "($INR)" ?></label>
@ -2754,8 +2756,8 @@ if (!empty($getlogpodtl)) {
?>
</div>
</div>
</div>
<div class="form-row" style="padding:1%;"></div>
</div><!-- /.C.D3-->
<div class="form-row" style="padding:1%;"></div><!-- /.layer-->
<div class="form-row" style="border:1px solid #000;padding:0px;" id="EditModalImportTaxHide"
style="display:none;">
<br />
@ -2764,8 +2766,8 @@ if (!empty($getlogpodtl)) {
<div class="form-group col-md-4">
Basic Price <?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4" style="display:none;">
<div class="form-group">
<div class="form-group col-md-4">
<div class="form-group" style="display:none;">
<?php
$data = array('name' => 'EditBasicPriceTax', 'value' => set_value('EditBasicPriceTax'), 'id' => 'EditBasicPriceTax', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event);');
echo form_input($data);
@ -2780,7 +2782,7 @@ if (!empty($getlogpodtl)) {
?>
</div>
</div>
</div>
</div><!-- f1strow -->
<div class="form-row">
<div class="form-group col-md-4">
Landing charge <?php echo "($INR)" ?>
@ -2801,7 +2803,7 @@ if (!empty($getlogpodtl)) {
?>
</div>
</div>
</div>
</div><!-- 2ndrow -->
<div class="form-row">
<div class="form-group col-md-4">
Assessable Value (A) <?php echo "($INR)" ?>
@ -2822,7 +2824,7 @@ if (!empty($getlogpodtl)) {
?>
</div>
</div>
</div>
</div><!-- 3rdrow -->
<div class="form-row">
<div class="form-group col-md-4">
Custom duty (B)<?php echo "($INR)" ?>
@ -2843,10 +2845,7 @@ if (!empty($getlogpodtl)) {
?>
</div>
</div>
</div>
</div><!-- 4throw -->
<div class="form-row">
<div class="form-group col-md-4">
Custom ED_cess (C)<?php echo "($INR)" ?>
@ -2867,7 +2866,7 @@ if (!empty($getlogpodtl)) {
?>
</div>
</div>
</div>
</div><!-- 5throw -->
<div class="form-row">
<div class="form-group col-md-4">
Custom S & H cess (D)<?php echo "($INR)" ?>
@ -2888,8 +2887,8 @@ if (!empty($getlogpodtl)) {
?>
</div>
</div>
</div>
</div>
</div><!-- 6throw -->
</div><!-- 1st 6th-->
<div class="form-group col-md-6" style="padding:10px;">
<div class="form-row">
<div class="form-group col-md-4">
@ -2911,13 +2910,7 @@ if (!empty($getlogpodtl)) {
?>
</div>
</div>
</div>
</div><!-- 7throw -->
<div class="form-row">
<div class="form-group col-md-4">
<!-- Additional Excise duty : (g) -->
@ -2939,14 +2932,7 @@ if (!empty($getlogpodtl)) {
?>
</div>
</div>
</div>
</div><!-- 8throw -->
<div class="form-row">
<div class="form-group col-md-8">
Total Duty (G) <?php echo "($INR)" ?>
@ -2959,12 +2945,10 @@ if (!empty($getlogpodtl)) {
?>
</div>
</div>
</div>
</div><!-- 9throw -->
<!--Start of Adding of Frieght model-->
<div class="form-row" style="padding:0px;">
<div class="form-group col-md-3">
<div class="form-group col-md-4">
<span>Freight Type </span>
<?php
$options = array("0" => 'Select Freight Type');
@ -2976,31 +2960,29 @@ if (!empty($getlogpodtl)) {
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight" class="form-control "');
?>
</div>
<div class="form-group col-md-3" id="EditTripsValue" style="display:none;">
<div class="form-group col-md-4" id="EditTripsValue" style="display:none;">
<span>NO Of Trips</span>
<?php
$data = array('name' => 'EditNOOfTrips', 'value' => set_value('EditNOOfTrips'), 'id' => 'EditNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(1);');
echo form_input($data);
?>
</div>
<div class="form-group col-md-3">
<div class="form-group col-md-4">
<span>Freight Rate </span>
<?php
$data = array('name' => 'txtEditFreight', 'value' => set_value('txtEditFreight'), 'id' => 'txtEditFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(1);');
echo form_input($data);
?>
</div>
<div class="form-group col-md-3" style="padding-left: 0px;">
<div class="form-group col-md-4" style="padding-left: 0px;">
<span>Freight Amt <?php echo "($INR)" ?></span>
<?php
$data = array('name' => 'txtEditAfterFreight', 'value' => set_value('txtEditAfterFreight'), 'id' => 'txtEditAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- 10throw -->
<!--End of Adding of freight in edit model -->
<br>
<p style="text-align:center; font-size: 16px; "><b>Cost Of The Product Per UOM</b></p>
<hr>
@ -3027,7 +3009,7 @@ if (!empty($getlogpodtl)) {
</div>
</div>
</div>
</div><!-- 11throw -->
<div class="form-row">
<div class="form-group col-md-4">
@ -3042,7 +3024,7 @@ if (!empty($getlogpodtl)) {
</div>
</div>
</div>
</div><!-- 12throw -->
<div class="form-row">
<div class="form-group col-md-4">
Clearing Charges <?php echo "($INR)" ?>
@ -3059,9 +3041,9 @@ if (!empty($getlogpodtl)) {
<div class="form-group col-md-4" style="margin-top: -25px;">
<div class="form-group col-md-4" style="margin-top: -19px;">
<!-- RMC Including Customers -->
<span><?php echo "Nett per UOM($INR)"; ?></span>
<span><?php echo "Net per UOM($INR)"; ?></span>
<div class="form-group">
<?php
$data = array('name' => 'EditNett', 'value' => set_value('EditNett'), 'id' => 'EditNett', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
@ -3075,11 +3057,11 @@ if (!empty($getlogpodtl)) {
</div>
</div><!-- 13throw -->
</div>
</div>
</div><!-- 2nd 6th-->
</div><!-- Import.Tax.Hide -->
<div class="form-row">
<div class="form-group col-md-12">
<label>Capital Description </label>
@ -3087,16 +3069,16 @@ if (!empty($getlogpodtl)) {
$data = array('name' => 'EditItemDescription', 'value' => set_value('EditItemDescription'), 'id' => 'EditItemDescription', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
echo form_textarea($data); ?>
</div>
</div>
</div>
</div><!-- C.Desc -->
</div><!-- /.body -->
<div class="modal-footer">
<a class="btn btn-success" data-dismiss="modal" value="Cancel" style="margin-right: 10px;">Cancel</a>
<a class="btn btn-success font EditCapital" ID="UpdateCapital">&nbsp;&nbsp;<span class="bold">Update
Capital</span></a>
</div>
</div><!-- /.footer -->
</form>
</div>
</div>
</div><!-- /.content -->
</div><!-- /.modal-dialog-->
</div><!-- /.modal -->
<!-- 3rd modal new-->
@ -3384,141 +3366,141 @@ if (!empty($getlogpodtl)) {
</div>
</div>
</div><!-- VIEWCAPdiv3 form-row -->
<div class="form-row" style="padding:1%;">
</div>
<div class="form-row" style="border:1px solid #000;padding:0px;" id="ViewModalImportTaxHide" style="display:none;">
<div class="form-row" style="padding:1%;"></div>
<div class="form-row" style="border:1px solid #000;padding:0px;" id="EditModalImportTaxHide"
style="display:none;">
<br />
<div class="form-group col-md-6" style="padding:10px;">
<div class="form-row">
<div class="form-group col-md-4">
Basic Price <?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4" style="display:none;">
<div class="form-group">
<?php
$data = array('name' => 'ViewBasicPriceTax', 'value' => set_value('ViewBasicPriceTax'), 'id' => 'ViewBasicPriceTax', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterBasicPriceTax', 'value' => set_value('ViewAfterBasicPriceTax'), 'id' => 'ViewAfterBasicPriceTax', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-4">
Landing charge <?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewLandingCharge', 'value' => set_value('ViewLandingCharge'), 'id' => 'ViewLandingCharge', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterLandingCharge', 'value' => set_value('ViewAfterLandingCharge'), 'id' => 'ViewAfterLandingCharge', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
<div class="form-row">
<div class="form-group col-md-4">
Basic Price <?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group" style="display:none;">
<?php
$data = array('name' => 'ViewBasicPriceTax', 'value' => set_value('ViewBasicPriceTax'), 'id' => 'ViewBasicPriceTax', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterBasicPriceTax', 'value' => set_value('ViewAfterBasicPriceTax'), 'id' => 'ViewAfterBasicPriceTax', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- 1strow -->
<div class="form-row">
<div class="form-group col-md-4">
Landing charge <?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewLandingCharge', 'value' => set_value('ViewLandingCharge'), 'id' => 'ViewLandingCharge', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterLandingCharge', 'value' => set_value('ViewAfterLandingCharge'), 'id' => 'ViewAfterLandingCharge', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-4">
Assessable Value (A) <?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group" style="display: none;">
<?php
$data = array('name' => 'ViewHighseas ', 'value' => set_value('ViewHighseas'), 'id' => 'ViewHighseas', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterAssessable', 'value' => set_value('ViewAfterAssessable'), 'id' => 'ViewAfterAssessable', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-4">
Custom duty (B)<?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewCustomduty', 'value' => set_value('ViewCustomduty'), 'id' => 'ViewCustomduty', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- 2ndrow -->
<div class="form-row">
<div class="form-group col-md-4">
Assessable Value (A) <?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group" style="display: none;">
<?php
$data = array('name' => 'ViewHighseas ', 'value' => set_value('ViewHighseas'), 'id' => 'ViewHighseas', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterAssessable', 'value' => set_value('ViewAfterAssessable'), 'id' => 'ViewAfterAssessable', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- 3rdrow -->
<div class="form-row">
<div class="form-group col-md-4">
Custom duty (B)<?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewCustomduty', 'value' => set_value('ViewCustomduty'), 'id' => 'ViewCustomduty', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'viewAfterCustomduty', 'value' => set_value('viewAfterCustomduty'), 'id' => 'viewAfterCustomduty', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'viewAfterCustomduty', 'value' => set_value('viewAfterCustomduty'), 'id' => 'viewAfterCustomduty', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-4">
Custom ED_cess (C)<?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewCustomEDcess', 'value' => set_value('ViewCustomEDcess'), 'id' => 'ViewCustomEDcess', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterCustomEDcess', 'value' => set_value('ViewAfterCustomEDcess'), 'id' => 'ViewAfterCustomEDcess', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- form-row -->
<div class="form-row">
<div class="form-group col-md-4">
Custom S & H cess (D)<?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewCustomSHcess', 'value' => set_value('ViewCustomSHcess'), 'id' => 'ViewCustomSHcess', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterCustomSHcess', 'value' => set_value('ViewAfterCustomSHcess'), 'id' => 'ViewAfterCustomSHcess', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- form-row -->
</div><!-- 1st form-group col-md-6 -->
</div>
</div>
</div><!-- 4throw -->
<div class="form-row">
<div class="form-group col-md-4">
Custom ED_cess (C)<?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewCustomEDcess', 'value' => set_value('ViewCustomEDcess'), 'id' => 'ViewCustomEDcess', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterCustomEDcess', 'value' => set_value('ViewAfterCustomEDcess'), 'id' => 'ViewAfterCustomEDcess', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- 5throw -->
<div class="form-row">
<div class="form-group col-md-4">
Custom S & H cess (D)<?php echo "($INR)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewCustomSHcess', 'value' => set_value('ViewCustomSHcess'), 'id' => 'ViewCustomSHcess', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-group">
<?php
$data = array('name' => 'ViewAfterCustomSHcess', 'value' => set_value('ViewAfterCustomSHcess'), 'id' => 'ViewAfterCustomSHcess', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
</div><!-- 6throw -->
</div><!-- international 1st col -->
<div class="form-group col-md-6" style="padding:10px;">
<div class="form-row">
<div class="form-group col-md-4">
@ -3541,8 +3523,7 @@ if (!empty($getlogpodtl)) {
</div>
</div>
</div>
</div><!-- 7throw -->
<div class="form-row">
<div class="form-group col-md-4">
<!-- Additional Excise duty : (g) -->
@ -3564,8 +3545,7 @@ if (!empty($getlogpodtl)) {
?>
</div>
</div>
</div>
</div><!-- 8throw -->
<div class="form-row">
<div class="form-group col-md-8">
Total Duty (G) <?php echo "($INR)" ?>
@ -3578,8 +3558,7 @@ if (!empty($getlogpodtl)) {
?>
</div>
</div>
</div>
</div><!-- 9throw -->
<!--Start of Frieght model-->
<div class="form-row" style="padding:0px;">
<div class="form-group col-md-4">
@ -3615,13 +3594,12 @@ if (!empty($getlogpodtl)) {
echo form_input($data);
?>
</div>
</div>
</div><!-- 10throw -->
<!--End of Adding of freight in view model -->
<br>
<p style="text-align:center; font-size: 16px; "><b>Cost Of The Product Per UOM</b></p>
<hr>
<br>
<div class="form-row">
<div class="form-group col-md-6">
<label>Duty Impact</label>
@ -3638,7 +3616,7 @@ if (!empty($getlogpodtl)) {
echo form_input($data);
?>
</div>
</div>
</div><!-- 11throw -->
<div class="form-row">
<div class="form-group col-md-6">
<label> Custom Duty Expenses <?php echo "($INR)/UOM" ?></label>
@ -3648,7 +3626,7 @@ if (!empty($getlogpodtl)) {
?>
</div>
</div>
</div><!-- 12throw -->
<div class="form-row">
<div class="form-group col-md-6">
@ -3660,13 +3638,13 @@ if (!empty($getlogpodtl)) {
</div>
<div class="form-group col-md-6">
<label><?php echo "Net per UOM($INR)"; ?></span>
<?php
$data = array('name' => 'ViewNett', 'value' => set_value('ViewNett'), 'id' => 'ViewNett', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
<label> Net per UOM <?php echo "($INR)" ?></label>
<?php
$data = array('name' => 'ViewNett', 'value' => set_value('ViewNett'), 'id' => 'ViewNett', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
echo form_input($data);
?>
</div>
</div>
?>
</div><!-- net -->
</div><!-- 13throw -->
<div class="form-row">
<!-- <div class="form-group col-md-6" style="text-align:right !important" style="display:none;"> <label>Total Order Amount :</label></div> -->
<div class="form-group col-md-6" style="display:none;">
@ -3677,13 +3655,10 @@ if (!empty($getlogpodtl)) {
?>
</div>
</div>
</div>
</div><!-- 2nd form-group col-md-6 -->
</div><!-- form-row-Import-Tax-Hide -->
</div><!-- 14throw row hidden -->
</div><!-- international 2nd col -->
</div><!-- ViewModalImportTaxHide -->
<br>
<div class="form-row">
<div class="form-group col-md-12">
<label>Capital Description </label>
@ -3691,7 +3666,7 @@ if (!empty($getlogpodtl)) {
$data = array('name' => 'ViewItemDescription', 'value' => set_value('ViewItemDescription'), 'id' => 'ViewItemDescription', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
echo form_textarea($data); ?>
</div>
</div><!-- form-row -->
</div><!-- form-row capitial Description -->
</div><!-- modal-body -->
<div class="modal-footer">
<a class="btn btn-success" data-dismiss="modal" value="Cancel" style="margin-right:10px">Cancel</a>
@ -5646,7 +5621,14 @@ if (!empty($getlogpodtl)) {
function calculateTaxValue() {
var Cgst = $('#AfterCgst').val() == '' ? '0.00' : $('#AfterCgst').val();
var Sgst = $('#AfterSgst').val() == '' ? '0.00' : $('#AfterSgst').val();
var Igst = $('#AfterIgst').val() == '' ? '0.00' : $('#AfterIgst').val();
var Igst = 0.00;
if (capitalType == 'Domestic') {
Igst = $('#AfterIgst').val() == '' ? '0.00' : $('#AfterIgst').val();
}
if(capitalType == 'International') {
Igst = $('#AfterIgstInt').val() == '' ? '0.00' : $('#AfterIgstInt').val(); // caps interna
}
var landingCharge = $('#AfterLandingCharge').val() == '' ? '0.00' : $('#AfterLandingCharge').val();
var HighSeasSalesCharge = $('#AfterHighseas').val() == '' ? '0.00' : $('#AfterHighseas').val();
var CustomDuty = $('#AfterCustomduty').val() == '' ? '0.00' : $('#AfterCustomduty').val();
@ -5685,6 +5667,7 @@ if (!empty($getlogpodtl)) {
var OtherAmt = $('#OtherAllowances').val() == '' ? '0.00' : $('#OtherAllowances').val();
var landingCharge = $('#AfterLandingCharge').val() == '' ? '0.00' : $('#AfterLandingCharge').val();
console.log("$('#AfterLandingCharge').val()",$('#AfterLandingCharge').val());
var CustomDuty = $('#AfterCustomduty').val() == '' ? '0.00' : $('#AfterCustomduty').val();
@ -6012,8 +5995,7 @@ if (!empty($getlogpodtl)) {
*/
function populateValueMainFormForDeleteServiceTax(deletedRow) {
var rows = $('#serviceTax tbody tr').length;
var rows = document.getElementById('serviceTax').rows.length;
var capital = <?php echo json_encode($CapitalRange, JSON_PRETTY_PRINT) ?>;
var TotalOrderValueSummary = 0;
@ -6117,6 +6099,7 @@ if (!empty($getlogpodtl)) {
var TotOtherI = $('#OtherAmt' + i).val() == '' ? '0.00' : $('#OtherAmt' + i).val();
var TotLandingI = $('#landingCharge' + i).val() == '' ? '0.00' : $('#landingCharge' + i).val();
// console.log("TotLandingI",TotLandingI);
var TotCustomI = $('#CustomDuty' + i).val() == '' ? '0.00' : $('#CustomDuty' + i).val();
@ -6227,7 +6210,7 @@ if (!empty($getlogpodtl)) {
$("#EDITCAPITAL").on("shown.bs.modal", function(e) {
// alert("***");
userid = $(e.relatedTarget).data('userid');
@ -6308,7 +6291,9 @@ if (!empty($getlogpodtl)) {
$('#EditAfterAssessable').val($("#AssessableValue" + userid).val());
$('#EditSubtotal').val($("#SubTotal" + userid).val());
$('#EditIgstInt').val($("#IGSTInt" + userid).val());
// alert("Fetched the value GST"+$("#IGSTInt" + userid).val());
$('#EditAfterIgstInt').val($("#AfterIGSTInt" + userid).val());
// alert("Fetched the value IGST"+$("#AfterIGSTInt" + userid).val());
$('#EditDutyImpact').val($("#DutyImpact" + userid).val());
$('#EditNett').val($("#NetValue" + userid).val());
$('#EditClearingCharges').val($("#ClearingCharge" + userid).val());
@ -7018,8 +7003,8 @@ if (!empty($getlogpodtl)) {
var AfterCgst = $("#EditAfterCgst").val();
var Sgst = $("#EditSgst").val();
var AfterSgst = $("#EditAfterSgst").val();
var Igst = $("#EditIgst").val();
var AfterIgst = $("#EditAfterIgst").val();
var Igst = $("#EditIgst").val();//Dom Caps
var AfterIgst = $("#EditAfterIgst").val();//Dom Caps
var OtherAmt = parseFloat($("#EditOtherAllowances").val() == '' ? "0.00" : $('#EditOtherAllowances').val()).toFixed(2);
var TotalTaxValue = EditcalculateTaxValue();
@ -7068,8 +7053,8 @@ if (!empty($getlogpodtl)) {
var Assessable = $("#EditAfterAssessable").val();
var SubTotal = $("#EditSubtotal").val();
// var Igst = $("#EditIgstInt").val();
// var AfterIgst = $("#EditAfterIgstInt").val();
var InternationalIgst = $("#EditIgstInt").val() == '' ? 0 : $("#EditIgstInt").val();
var InternationalAfterIgst = $("#EditAfterIgstInt").val() == '' ? 0 : $("#EditAfterIgstInt").val();
var DutyImpact = $("#EditDutyImpact").val();
var ClearingCharges = $('#EditClearingCharges').val();
var Nett = $('#EditNett').val();
@ -7170,23 +7155,23 @@ if (!empty($getlogpodtl)) {
$('#AssessableValue' + userid).val(Assessable);
$('#SubTotal' + userid).val(SubTotal);
$('#IGSTInt' + userid).val(Igst);
$('#AfterIGSTInt' + userid).val(AfterIgst);
$('#IGSTInt' + userid).val(InternationalIgst);
$('#AfterIGSTInt' + userid).val(InternationalAfterIgst);
$('#DutyImpact' + userid).val(DutyImpact);
$('#NetValue' + userid).val(Nett);
$('#ClearingCharge' + userid).val(ClearingCharges);
var shorten = materialName.length > 13 ? materialName.slice(0, 13) + "..." : materialName;
cellval[2].innerHTML = materialCode;
cellval[3].innerHTML = materialName;
cellval[3].innerHTML = shorten;
cellval[5].innerHTML = quantity;
cellval[6].innerHTML = uom;
cellval[7].innerHTML = parseFloat(itemRate).toFixed(2);
cellval[8].innerHTML = parseFloat(basicval).toFixed(2);
cellval[9].innerHTML = parseFloat(TotalTaxValue).toFixed(2);
cellval[9].innerHTML = parseFloat(TotalTaxValue).toFixed(2);// what should i display here ?? if international means
cellval[10].innerHTML = parseFloat(Total).toFixed(2);
@ -7344,7 +7329,14 @@ if (!empty($getlogpodtl)) {
function EditcalculateTaxValue() {
var Cgst = $('#EditAfterCgst').val() == '' ? '0.00' : $('#EditAfterCgst').val();
var Sgst = $('#EditAfterSgst').val() == '' ? '0.00' : $('#EditAfterSgst').val();
var Igst = $('#EditAfterIgst').val() == '' ? '0.00' : $('#EditAfterIgst').val();
var Igst = 0.00;
if (capitalType == 'Domestic') {
Igst = $('#EditAfterIgst').val() == '' ? '0.00' : $('#EditAfterIgst').val(); // caps dom
}
if(capitalType == 'International') {
Igst = $('#EditAfterIgstInt').val() == '' ? '0.00' : $('#EditAfterIgstInt').val(); // caps interna
}
console.log(Igst);
var landingCharge = $('#EditAfterLandingCharge').val() == '' ? '0.00' : $('#EditAfterLandingCharge').val();
var HighSeasSalesCharge = $('#EditAfterHighseas').val() == '' ? '0.00' : $('#EditAfterHighseas').val();
var CustomDuty = $('#EditAfterCustomduty').val() == '' ? '0.00' : $('#EditAfterCustomduty').val();
@ -7399,7 +7391,8 @@ if (!empty($getlogpodtl)) {
*/
function populateValueMainFormForEditCapitalTax() {
var rows = $('#serviceTax tbody tr').length;
var rows = document.getElementById('serviceTax').rows.length;
console.log("rr",rows);
var capital = <?php echo json_encode($CapitalRange, JSON_PRETTY_PRINT) ?>;
var TotalOrderValueSummary = 0;
@ -7426,9 +7419,9 @@ if (!empty($getlogpodtl)) {
var TotBasicAmt = 0;
var TotaFreight = 0;
console.log("***---***");
for (var i = 1; i < rows; i++) {
console.log(">>>---<<<");
var TotalOrderValueSummaryI = $('#ServiceTotalOrderValue' + i).val() == '' ? '0.00' : $('#ServiceTotalOrderValue' + i).val();
var TotalCgstI = $('#AfterCgst' + i).val() == '' ? '0.00' : $('#AfterCgst' + i).val();
@ -7442,6 +7435,7 @@ if (!empty($getlogpodtl)) {
var discountedRateValue = $('#AfterDisVal' + i).val() == '' ? '0.00' : $('#AfterDisVal' + i).val();
var TotLandingI = $('#landingCharge' + i).val() == '' ? '0.00' : $('#landingCharge' + i).val();
console.log(TotLandingI,"TotLandingI");
var TotCustomI = $('#CustomDuty' + i).val() == '' ? '0.00' : $('#CustomDuty' + i).val();
@ -7549,7 +7543,7 @@ if (!empty($getlogpodtl)) {
function populateValueMainFormForViewCapitalTax() {
var rows = $('#serviceTax tbody tr').length;
var rows = document.getElementById('serviceTax').rows.length;
var capital = <?php echo json_encode($CapitalRange, JSON_PRETTY_PRINT) ?>;
var TotalOrderValueSummary = 0;
@ -8740,7 +8734,8 @@ if (!empty($getlogpodtl)) {
function populateValueMainFormForupdateCapitalTax() {
var rows = $('#serviceTax tbody tr').length;
var rows = document.getElementById('serviceTax').rows.length;
var TotalFreight = 0;
var i = 0;
do {

View File

@ -1624,7 +1624,7 @@ if (!empty($RequistionDetails)) {
<!-- <a class="btn btn-success Save" ID="Save" onclick="Save(0)" >&nbsp;&nbsp;<span class="bold">Save</span></a> -->
<a class="btn btn-secondary Save" ID="Cancel" href="<?php echo base_url() . 'amendmentpurchaseorder'; ?>">&nbsp;&nbsp;<span class="bold">Cancel</span></a>
<a class="btn btn-success" onclick="Save(0)">&nbsp;&nbsp;<span class="bold">Save as Draft</span></a>
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)">&nbsp;&nbsp;<span class="bold">Submit</span></a>
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)">&nbsp;&nbsp;<span class="bold">Approve</span></a>
<!-- <input type="reset" class="btn btn-success" value="Reset"> -->
<?php //}else {
?>
@ -2916,7 +2916,7 @@ if (!empty($RequistionDetails)) {
function populateValueMainFormForEditImportTax() {
var rows = $('#ImportTax tbody tr').length;
var rows = document.getElementById('ImportTax').rows.length;;
var TotalLanding = 0;
var TotalCustom = 0;
var TotalCustomED = 0;

View File

@ -2552,7 +2552,7 @@ if (!empty($INRSYMBOL)) {
}
function populateValueMainFormForEditRevenueTax() {
var rows = $('#revenueTax tbody tr').length;
var rows = document.getElementById('revenueTax').rows.length;
var totBasicAmt = 0;
var totDiscountAmt = 0;
var totPackagingAmt = 0;
@ -2628,8 +2628,7 @@ if (!empty($INRSYMBOL)) {
<script>
function validateBudgetExceedLimit() {
//alert('inside validateBudgetExceedLimit function');
// var rows = document.getElementById('revenueTax').rows.length;
var rows = $('#revenueTax tbody tr').length;
var rows = document.getElementById('revenueTax').rows.length;
var ReqType = '<?php echo REVENUE ?>';
for (i = 1; i < rows; i++) {
var costcode = $('#costCode' + i).val();

View File

@ -4660,15 +4660,15 @@ if (!empty($getlogpodtl)) {
var tr = document.getElementById(userid);
var cellval = tr.cells;
cellval[2].innerHTML = editMaterialCode;
var shorten = editDescription.length > 13 ? editDescription.slice(0, 13) + "..." : editDescription;
cellval[2].innerHTML = shorten;
cellval[3].innerHTML = editDescription;
cellval[4].innerHTML = editQuantity;
cellval[5].innerHTML = editUOM;
cellval[6].innerHTML = itemRate;
cellval[7].innerHTML = basicval;
cellval[8].innerHTML = TotalTaxValue;
cellval[9].innerHTML = TotalOrderValue;
cellval[5].innerHTML = editQuantity;
cellval[6].innerHTML = editUOM;
cellval[7].innerHTML = itemRate;
cellval[8].innerHTML = basicval;
cellval[9].innerHTML = TotalTaxValue;
cellval[10].innerHTML = TotalOrderValue;
$('#materialCode' + userid).val(editMaterialCode);
@ -4810,7 +4810,8 @@ if (!empty($getlogpodtl)) {
function populateValueMainFormForEditRevenueTax() {
var rows = $('#revenueTax tbody tr').length;
var rows = document.getElementById('revenueTax').rows.length;
//alert(rows);
var editrow = parseFloat(rows) - 1;
//alert(editrow);
@ -4997,7 +4998,7 @@ if (!empty($getlogpodtl)) {
}
function validateBudgetExceedLimit() {
var rows = $('#revenueTax tbody tr').length;
var rows = document.getElementById('revenueTax').rows.length;
var ReqType = '<?php echo REVENUE ?>';
for (i = 1; i < rows; i++) {

View File

@ -348,7 +348,7 @@ foreach ($PaymentTerms as $TER) {
var Material = <?php echo json_encode($MaterialList, JSON_PRETTY_PRINT) ?>;
var AvlBudAmt = '<?php echo $AvlAmount ?>';
//ServiceTable
var rows = $('#ServiceTable tbody tr').length;
var rows = document.getElementById('ServiceTable').rows.length;
if (DeletedMaterialCode != undefined && DeletedMaterialCode != '') {
@ -1398,7 +1398,7 @@ foreach ($PaymentTerms as $TER) {
<input class="btn btn-secondary" type="button" class="btn btn-success mr-2 " value="Cancel" onClick="window.location ='amendmentpurchaseorder';">
<a class="btn btn-success Save" onclick="Save(0)" >&nbsp;&nbsp;<span class="bold">Save as Draft</span></a>
<a class="btn btn-success Save " ID="Submit" onclick="Save(1)">&nbsp;&nbsp;<span class="bold">Submit</span></a>
<a class="btn btn-success Save " ID="Submit" onclick="Save(1)">&nbsp;&nbsp;<span class="bold">Approve</span></a>
</div>
</div>
</div>
@ -2042,7 +2042,7 @@ foreach ($PaymentTerms as $TER) {
function populateValueMainFormForEditServiceTax() {
var rows = $('#ServiceTable tbody tr').length;
var rows = document.getElementById('ServiceTable').rows.length;
var TotCgst = 0;
var TotSgst = 0;

View File

@ -4661,7 +4661,7 @@ if (!empty($getlogpodtl)) {
//$('#txtToatlOrder').val(parseFloat(TotalOrderValue)).toFixed(2);
//var Aft=$('#AfterLandingCharge').val();
//console.log(Aft);
var rows = $('#ImportTax tbody tr').length;
var rows = document.getElementById('ImportTax').rows.length;
var i = 0;
do {
i += 1;
@ -5086,7 +5086,7 @@ if (!empty($getlogpodtl)) {
});
function populateValueMainFormForEditImportTax() {
var rows = $('#ImportTax tbody tr').length;
var rows = document.getElementById('ImportTax').rows.length;;
var TotalLanding = 0;
var TotalCustom = 0;
@ -5254,7 +5254,7 @@ if (!empty($getlogpodtl)) {
function populateValueMainFormForupdateImportTax() {
var rows = $('#ImportTax tbody tr').length;
var rows = document.getElementById('ImportTax').rows.length;;
var TotalFreight = 0;
var i = 0;
do {

View File

@ -3933,7 +3933,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
});
function populateValueMainFormForEditImportTax() {
var rows = $('#ImportTax tbody tr').length;
var rows = document.getElementById('ImportTax').rows.length;;
var TotalLanding = 0;
var TotalHighseas = 0;
var TotalCustom = 0;

View File

@ -3686,7 +3686,7 @@ if (!empty($INRSYMBOL)) {
function populateValueMainFormForEditRevenueTax() {
var rows = $('#revenueTax tbody tr').length;
var rows = document.getElementById('revenueTax').rows.length;
//alert(rows);
var totBasicAmt = 0;
var totDiscountAmt = 0;

View File

@ -1174,7 +1174,7 @@ if (!empty($INRSYMBOL)) {
<input type="hidden" name="Budget" id="Budget" />
<div class="btn-container" style="text-align: right;">
<a class="btn btn-success Save" ID="Cancel" onclick="Reset();">&nbsp;&nbsp;<span class="bold">Reset</span></a>
<a class="btn btn-secondary Save" ID="Cancel" onclick="Reset();">&nbsp;&nbsp;<span class="bold">Reset</span></a>
<a class="btn btn-success Save" ID="Save" onclick="Save(0)">&nbsp;&nbsp;<span class="bold">Save as Draft</span></a>
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)">&nbsp;&nbsp;<span class="bold">Submit</span></a>
</div><!-- 7.4 btn-container div closed here -->
@ -1494,11 +1494,10 @@ if (!empty($INRSYMBOL)) {
</div><!-- /.modal -->
<div align="center">
<div id="EDITSERVICE" class="modal fade" tabindex="-1" role="dialog"
<div id="EDITSERVICELINEITEM" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
<div class="modal-dialog modal-full-width">
<div class="modal-content " style="width: 1060px;">
<div class="modal-content" style="width: 1060px;">
<div class="modal-header">
<h4 class="modal-title">Edit Service Purchase Order Item</h4>
<button type="button" class="close" data-dismiss="modal"
@ -1517,7 +1516,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div><!-- EDITSERVICE.1.1 col-md-3 closed here -->
</div><!-- EDIT#SERVICE.1.1 col-md-3 closed here -->
<div class="form-group col-md-3">
<label>Department Name</label>
<div>
@ -1526,7 +1525,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div><!-- EDITSERVICE.1.2 col-md-3 closed here -->
</div><!-- EDIT#SERVICE.1.2 col-md-3 closed here -->
<div class="form-group col-md-3">
<label>Cost Center Code</label>
<div>
@ -1535,7 +1534,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div><!-- EDITSERVICE.1.3 col-md-3 closed here -->
</div><!-- EDIT#SERVICE.1.3 col-md-3 closed here -->
<div class="form-group col-md-3">
<label>Avail Budget Amount <?php echo "($INRSYM)" ?></label>
<div>
@ -1544,8 +1543,8 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div><!-- EDITSERVICE.1.4 col-md-3 closed here -->
</div><!-- EDITSERVICE.1 form-row closed here -->
</div><!-- EDIT#SERVICE.1.4 col-md-3 closed here -->
</div><!-- EDIT#SERVICE.1 form-row closed here -->
<div class="form-row">
<div class="form-group col-md-3">
<label>Item Code<span class="badge mandatory" #fff ;">*</span></label>
@ -1558,7 +1557,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div><!-- EDITSERVICE.2.1 col-md-3 closed here -->
</div><!-- EDIT#SERVICE.2.1 col-md-3 closed here -->
<div class="form-group col-md-3">
<label>Item Name</label>
<div>
@ -1567,7 +1566,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div><!-- EDITSERVICE.2.2 col-md-3 closed here
</div><!-- EDIT#SERVICE.2.2 col-md-3 closed here
<div class="form-group col-md-3" id=EditotherDescription>
<label>Item Description</label>
<div>
@ -1576,7 +1575,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div> EDITSERVICE.2.3 col-md-3 closed here -->
</div> EDIT#SERVICE.2.3 col-md-3 closed here -->
<div class="form-group col-md-3">
<label>UOM</label>
<div>
@ -1585,7 +1584,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div><!-- EDITSERVICE.2.4 col-md-3 closed here -->
</div><!-- EDIT#SERVICE.2.4 col-md-3 closed here -->
<div class="form-group col-md-3">
<label>Service Schedule Type</label>
<div>
@ -1595,8 +1594,8 @@ if (!empty($INRSYMBOL)) {
?>
<input type="hidden" name="EditFrequencyNo" id="EditFrequencyNo" value="EditFrequencyNo" />
</div>
</div><!-- EDITSERVICE.2.5 col-md-3 closed here -->
</div><!-- EDITSERVICE.2 form-row closed here -->
</div><!-- EDIT#SERVICE.2.5 col-md-3 closed here -->
</div><!-- EDIT#SERVICE.2 form-row closed here -->
<div class="form-row">
<div class="form-group col-md-3">
<label>Quantity<span class="badge mandatory">*</span></label>
@ -1606,7 +1605,7 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div><!-- EDITSERVICE.3.1 col-md-3 closed here -->
</div><!-- EDIT#SERVICE.3.1 col-md-3 closed here -->
<div class="form-group col-md-3">
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge mandatory">*</span></label>
<div>
@ -1615,13 +1614,13 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div><!-- EDITSERVICE.3.2 col-md-3 closed here -->
</div><!-- EDIT#SERVICE.3.2 col-md-3 closed here -->
<div class="form-group col-md-3">
<label>Per</label><!--date should be come-->
<?php
$data = array('name' => 'EditPer', 'value' => set_value('EditPer'), 'id' => 'EditPer', 'class' => 'form-control');
echo form_input($data); ?>
</div><!-- EDITSERVICE.3.3 col-md-3 closed here -->
</div><!-- EDIT#SERVICE.3.3 col-md-3 closed here -->
<div class="form-group col-md-3">
<label><?php echo "Basic Amount ($INRSYM)"; ?></label>
<div>
@ -1630,13 +1629,12 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div><!-- EDITSERVICE.3.4 col-md-3 closed here -->
</div><!-- EDITSERVICE.3 form-row closed here -->
</div><!-- EDIT#SERVICE.3.4 col-md-3 closed here -->
</div><!-- EDIT#SERVICE.3 form-row closed here -->
<div class="form-row">
<div class="form-group col-md-6" align="right">
CGST In %
</div><!-- EDITSERVICE.4.1 col-md-6 closed here -->
</div><!-- EDIT#SERVICE.4.1 col-md-6 closed here -->
<div class="form-group col-md-3">
<div>
@ -1646,7 +1644,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div><!-- EDITSERVICE.4.2 col-md-3 closed here -->
</div><!-- EDIT#SERVICE.4.2 col-md-3 closed here -->
<div class="form-group col-md-3">
<div>
@ -1656,12 +1654,12 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div><!-- EDITSERVICE.4.3 col-md-3 closed here -->
</div><!-- EDITSERVICE.4 form-row closed here -->
</div><!-- EDIT#SERVICE.4.3 col-md-3 closed here -->
</div><!-- EDIT#SERVICE.4 form-row closed here -->
<div class="form-row">
<div class="form-group col-md-6" align="right">
SGST In %
</div><!-- EDITSERVICE.5.1 col-md-6 closed here -->
</div><!-- EDIT#SERVICE.5.1 col-md-6 closed here -->
<div class="form-group col-md-3">
<div>
@ -1672,7 +1670,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div><!-- EDITSERVICE.5.2 col-md-3 closed here -->
</div><!-- EDIT#SERVICE.5.2 col-md-3 closed here -->
<div class="form-group col-md-3">
<div>
@ -1682,15 +1680,15 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div><!-- EDITSERVICE.5.3 col-md-3 closed here -->
</div><!-- EDIT#SERVICE.5.3 col-md-3 closed here -->
</div><!-- EDITSERVICE.5 form-row closed here -->
</div><!-- EDIT#SERVICE.5 form-row closed here -->
<div class="form-row">
<div class="form-group col-md-6" align="right">
IGST In %
</div><!-- EDITSERVICE.6.1 col-md-6 closed here -->
</div><!-- EDIT#SERVICE.6.1 col-md-6 closed here -->
<div class="form-group col-md-3">
<div>
@ -1701,7 +1699,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div><!-- EDITSERVICE.6.2 col-md-3 closed here -->
</div><!-- EDIT#SERVICE.6.2 col-md-3 closed here -->
<div class="form-group col-md-3">
<div>
@ -1711,13 +1709,14 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div><!-- EDITSERVICE.6.3 col-md-3 closed here -->
</div><!-- EDIT#SERVICE.6.3 col-md-3 closed here -->
</div><!-- EDITSERVICE.6 form-row closed here -->
</div><!-- EDIT#SERVICE.6 form-row closed here -->
<div class="form-row">
<div class="col-md-5 col-md-offset-4" align="right">
<div class="col-md-4"></div>
<div class="col-md-5" align="right">
<label>Other Allowances <?php echo "($INRSYM)" ?></label>
</div><!-- EDITSERVICE.7.1 col-md-5 col-md-offset-4 closed here -->
</div><!-- EDIT#SERVICE.7.1 col-md-5 col-md-offset-4 closed here -->
<div class="form-group col-md-3">
<div>
<?php
@ -1725,10 +1724,11 @@ if (!empty($INRSYMBOL)) {
echo form_input($data);
?>
</div>
</div><!-- EDITSERVICE.7.2 col-md-3 closed here -->
</div><!-- EDITSERVICE.7 form-row closed here -->
</div><!-- EDIT#SERVICE.7.2 col-md-3 closed here -->
</div><!-- EDIT#SERVICE.7 form-row closed here -->
<div class="form-row">
<div class="col-md-5 col-md-offset-4" align="right">
<div class="col-md-4"> </div>
<div class="col-md-5" align="right">
<label><?php echo "Total Order Value ($INRSYM)"; ?></label>
</div>
<div class="form-group col-md-3">
@ -1739,7 +1739,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
</div>
</div><!-- EDITSERVICE.8 form-row closed here -->
</div><!-- EDIT#SERVICE.8 form-row closed here -->
<div class="form-row">
<div class="form-group col-md-12">
@ -1748,47 +1748,25 @@ if (!empty($INRSYMBOL)) {
$data = array('name' => 'EdittxtSpcialInstruction', 'value' => set_value('EdittxtSpcialInstruction'), 'id' => 'EdittxtSpcialInstruction', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
echo form_textarea($data); ?>
</div>
</div><!-- EDITSERVICE.9 form-row closed here -->
</div><!-- EDIT#SERVICE.9 form-row closed here -->
</div>
</div>
</div><!-- /.modal-body -->
</div><!-- /.left-->
<div class="modal-footer">
<div class="form-row">
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
<a class="btn btn-success font EditService" ID="Edit">&nbsp;&nbsp;<span class="bold">Update Service</span></a>
</div>
</div><!-- EDITSERVICE modal-footer closed here -->
</form><!-- EDITSERVICE form closed here -->
</div>
</div>
</div><!-- /.modal-footer -->
</div><!-- EDIT#SERVICE modal-footer closed here -->
</form><!-- EDIT#SERVICE form closed here -->
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog modal-full-width -->
</div><!-- /.modal -->
</div>
<!-- <script type="text/html" id="ServiceList">
<tr id="<%=index%>">
<td align="left"><%=index%></td>
<td align="left"><%=ReqNo%></td>
<td align="left"><%=MaterialCode%></td>
<td align="left"><%=MaterialName%></td>
<td align="left"><%=Quantity%></td>
<td align="left"><%=UOM%></td>
<td align="left"><%=Rate%></td>
<td align="left"><%=BasicAmount%></td>
<td align="left"><%=Taxvalue%></td>
<td align="left"><%=TotalValue%></td>
<td>
<a data-target='#EDITSERVICE' data-id="<%=index%>" data-userid="<%=index%>" data-toggle="modal" href="#EDITSERVICE"><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit the <%=ReqNo%> Requisition details"></i>&nbsp;&nbsp;&nbsp;</a> <a href='#' onclick="DeleteRow(<%=index%>)" class="link" data-id="<%=index%>" data-userid="<%=index%>" id="Del"><span class="ri-delete-bin-7-fill"></span></a>
</td>
</tr>
</script> -->
<script>
$('#otherdescription').hide();
var index = '1';
@ -1805,18 +1783,14 @@ if (!empty($INRSYMBOL)) {
});
$("#EDITSERVICE").on("shown.bs.modal", function(e) {
console.log("Worng");
$("#EDITSERVICELINEITEM").on("shown.bs.modal", function(e) {
userid = $(e.relatedTarget).data('userid');
var tr = document.getElementById(userid);
var cellval = tr.cells;
//alert(userid)
var id = $('#Reqnumber' + userid).val();
$('#EditReqNo').val($('#Reqnumber' + userid).val());
@ -1864,7 +1838,7 @@ if (!empty($INRSYMBOL)) {
tinyMCE.get('EdittxtSpcialInstruction').setContent($('#ItemDescription' + userid).val());
//$('#EdittxtSpcialInstruction').val($('#ItemDescription'+userid).val());
$('#EdittxtSpcialInstruction').val($('#ItemDescription'+userid).val());
$("#EditMaterialCode").empty();
var Material = <?php echo json_encode($MaterialList, JSON_PRETTY_PRINT) ?>;
@ -2005,7 +1979,7 @@ if (!empty($INRSYMBOL)) {
<td style="text-align:right !important">${TotalTaxValue}</td>
<td style="text-align:right !important">${TotalOrderValue}</td>
<td>
<a data-target='#EDITSERVICE' data-id="${temp}" data-userid="${temp}" data-toggle="modal" href="#EDITSERVICE">
<a data-target='#EDITSERVICELINEITEM' data-id="${temp}" data-userid="${temp}" data-toggle="modal" href="#EDITSERVICELINEITEM">
<i class="ri-pencil-fill" data-toggle="tooltip"></i>
</a>
&nbsp;&nbsp;&nbsp;
@ -2101,7 +2075,7 @@ if (!empty($INRSYMBOL)) {
function populateValueMainFormForEditServiceTax() {
var rows = $('#ServiceTable tbody tr').length;
var rows = document.getElementById('ServiceTable').rows.length;
var TotCgst = 0;
var TotSgst = 0;
@ -2385,7 +2359,7 @@ if (!empty($INRSYMBOL)) {
var AvlBudAmt = '<?php echo $AvlAmount ?>';
var txtTotalOrderValueSummary = $('#txtTotBasicAmount').val();
if (serviceValidate()) {
if ($('#ServiceTable tbody tr').length < 1) {
if ( document.getElementById('ServiceTable').rows.length < 1) {
alert('Atleast One Line needed');
return false;
}

View File

@ -491,10 +491,10 @@
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table id="Inwardgateregistertable1" class="table table-striped table-hover mb-0 editabletable IGR_Line" style="font-size:12px;">
<table id="Inwardgateregistertable1" class="table table-bordered table-hover mb-0 editabletable IGR_Line" style="font-size:12px;">
<thead style="background-color:#ddd !important">
<tr>
<th style="width: 50px;">#</th>
<th style="width: 50px;">SNo</th>
<th style="width: 100px;">Item Code</th>
<th style="width: 150px;">Item Description</th>
<th style="width: 50px;">UOM</th>
@ -506,7 +506,7 @@
<th style="width: 50px;">Taxable Amt</th>
<th style="width: 50px;">Total Amt</th>
<th style="width: 150px;">Remarks</th>
<th style="width: 25px;">Calculate Net Weight</th>
<th style="width: 25px;">Net Weight</th>
<th style="width: 25px; display:none" id="gasShortageHeader">Add Gas Shortage</th>
<th style="width: 25px; display:none" id="gasShortageListHeader">Gas Shortage list</th>
</tr>