changes in amendment purchase order vadivel J 21-11-2024
This commit is contained in:
parent
387c2af713
commit
00f1a98071
@ -231,6 +231,7 @@ class Amendmentpurchaseorder extends BaseController
|
||||
{
|
||||
$NewPO = '';
|
||||
$MAD = '';
|
||||
$changeStatus = $this->request->getPost('changeStatus');
|
||||
$PONO = $this->request->getPost('txtPONO');
|
||||
$POdt = $this->request->getPost('PODate');
|
||||
$PODate = get_date_time_format($POdt);
|
||||
@ -306,7 +307,7 @@ class Amendmentpurchaseorder extends BaseController
|
||||
}
|
||||
$AmendmentNewPoNo = generate_amendment_po_number($PONO);
|
||||
|
||||
$POMaster = array('PONO' => $AmendmentNewPoNo, 'ParentPO' => $PONO, 'SupplierID' => $SupplierID, 'POType' => $POType, 'PORange' => $PoRange, 'TotalOrderValue' => $TotalOrderValueSummary, 'PODate' => $PODate, 'Status' => PO_RELEASED, 'PaymentTerms' => $PaymentTerms, 'PaymentOtherDescription' => $Otherpayment, 'Mode_Of_Shipment' => $Modeofshipment, 'Supplier_Reference' => $supplierreference, 'Supplier_Offer_No' => $supplieroffno, 'Other_Reference' => $otherreference, 'Fincap' => $fincap, 'InsuranceStatus' => $insurancestatus, 'InsuranceNumber' => $InsuranceNumber, 'POSubType' => $revenuetype, 'DeliverySchedule' => $DeliverySchedule, 'DeliveryOption' => $DeliveryOption, 'ServiceDescription' => $SpecialInstruction, 'CreatedBy' => $updatedBy, 'DeliveryAddress' => $DeliveryAddr, 'DeliveryDate' => $Deliverydt, 'UpdatedOn' => $updateddt, 'ReleasedBy' => $updatedBy, 'ReleasedOn' => $updateddt, 'AmendedDetails' => $MAD, 'IsQualityChkReqired' => $qtycheckresult);
|
||||
$POMaster = array('PONO' => $AmendmentNewPoNo, 'ParentPO' => $PONO, 'SupplierID' => $SupplierID, 'POType' => $POType, 'PORange' => $PoRange, 'TotalOrderValue' => $TotalOrderValueSummary, 'PODate' => $PODate, 'Status' => $changeStatus == 1 ? PO_RELEASED : PO_DRAFT, 'PaymentTerms' => $PaymentTerms, 'PaymentOtherDescription' => $Otherpayment, 'Mode_Of_Shipment' => $Modeofshipment, 'Supplier_Reference' => $supplierreference, 'Supplier_Offer_No' => $supplieroffno, 'Other_Reference' => $otherreference, 'Fincap' => $fincap, 'InsuranceStatus' => $insurancestatus, 'InsuranceNumber' => $InsuranceNumber, 'POSubType' => $revenuetype, 'DeliverySchedule' => $DeliverySchedule, 'DeliveryOption' => $DeliveryOption, 'ServiceDescription' => $SpecialInstruction, 'CreatedBy' => $updatedBy, 'DeliveryAddress' => $DeliveryAddr, 'DeliveryDate' => $Deliverydt, 'UpdatedOn' => $updateddt, 'ReleasedBy' => $updatedBy, 'ReleasedOn' => $updateddt, 'AmendedDetails' => $MAD, 'IsQualityChkReqired' => $qtycheckresult);
|
||||
$file = $this->request->getFile('POFile');
|
||||
$requestfilename = $file->getName();
|
||||
$PrePOFile = $this->request->getPost('PrePOFile');
|
||||
@ -329,7 +330,10 @@ class Amendmentpurchaseorder extends BaseController
|
||||
} else {
|
||||
$POMaster['POFile'] = $PrePOFile ? $PrePOFile : null;
|
||||
}
|
||||
// print_r($POMaster);die;
|
||||
|
||||
// print_r($POMaster);
|
||||
// echo 'end';
|
||||
// die;
|
||||
|
||||
$LastPO = $this->purchaseorder_model->addAmendPOMaster($POMaster, $updatedBy, $PONO);
|
||||
|
||||
@ -578,6 +582,7 @@ class Amendmentpurchaseorder extends BaseController
|
||||
|
||||
|
||||
echo 'Purchase Order Amended Successfully! PO Number Is: ' . $PONO . '- New PO Number is' . $NewPO;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -131,14 +131,17 @@ if (!empty($INRSYMBOL)) {
|
||||
<!-- Latest compiled and minified CSS -->
|
||||
|
||||
<style>
|
||||
.modal { overflow: auto !important; }
|
||||
.modal {
|
||||
overflow: auto !important;
|
||||
}
|
||||
|
||||
.text-right {
|
||||
text-align: right !important;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center !important;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script src="<?php echo base_url() ?>public/assets/tinymce/js/tinymce/tinymce.min.js"></script>
|
||||
@ -684,9 +687,7 @@ if (!empty($INRSYMBOL)) {
|
||||
//alert((FreightValue/100) * (basicValue-AfterDiscount));
|
||||
//alert(((FreightValue/100) * basicValue));
|
||||
//alert(FreightCalculation);
|
||||
if (FreightCalculation == 0)
|
||||
|
||||
{
|
||||
if (FreightCalculation == 0) {
|
||||
AfterFreight = <?php echo FREIGHT_PERCENTAGE; ?>;
|
||||
} else {
|
||||
AfterFreight = <?php echo FREIGHT_PERCENTAGE_AFTER; ?>;
|
||||
@ -931,7 +932,8 @@ if (!empty($INRSYMBOL)) {
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<h4><?= "Amendment Revenue Purchase Order - $PONO "; ?></h4>
|
||||
<a href="<?php echo base_url() ?>amendmentpurchaseorder" class="btn btn-secondary" id="back" value="Back">Back</a>
|
||||
<a href="<?php echo base_url() ?>amendmentpurchaseorder" class="btn btn-secondary" id="back"
|
||||
value="Back">Back</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1027,7 +1029,8 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-3" id="Schedulediv" style="display:none;">
|
||||
<input type="hidden" name="beforeScheduleby" value="<?php echo $DeliverSchedule; ?>">
|
||||
<input type="hidden" name="beforeScheduleby"
|
||||
value="<?php echo $DeliverSchedule; ?>">
|
||||
<label>Schedule By<span class="text-danger">*</span></label>
|
||||
<?php
|
||||
$data = array('name' => 'Scheduleby', 'value' => set_value('Scheduleby', $DeliverSchedule), 'id' => 'Scheduleby', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40', 'maxlength' => '110');
|
||||
@ -1040,7 +1043,8 @@ if (!empty($INRSYMBOL)) {
|
||||
<?php
|
||||
$data = array('name' => 'DeliveryAddr', 'value' => set_value('DeliveryAddr', $DeliveryAddress), 'id' => 'DeliveryAddr', 'class' => 'form-control', 'required' => 'true', 'rows' => '3', 'cols' => '40', 'readonly' => 'true');
|
||||
echo Form_textarea($data);
|
||||
?> <input type="hidden" name="txtDeliveryAddress" id="txtDeliveryAddress" value="<?php echo $DeliveryAddress; ?>">
|
||||
?> <input type="hidden" name="txtDeliveryAddress" id="txtDeliveryAddress"
|
||||
value="<?php echo $DeliveryAddress; ?>">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1144,7 +1148,8 @@ if (!empty($INRSYMBOL)) {
|
||||
//echo "$pay2->PaymentTerms";
|
||||
|
||||
?>
|
||||
<input type="hidden" name="beforePaymentTermsText" value="<?php echo $pay2->PaymentTerms ?>">
|
||||
<input type="hidden" name="beforePaymentTermsText"
|
||||
value="<?php echo $pay2->PaymentTerms ?>">
|
||||
<?php
|
||||
|
||||
$optionsPay[$pay2->PaymentID] = $pay2->PaymentTerms;
|
||||
@ -1214,7 +1219,8 @@ if (!empty($INRSYMBOL)) {
|
||||
<br>
|
||||
<div class="form-row">
|
||||
<div class="table-responsive">
|
||||
<table id="revenueTax" class="table table-striped table-hover mb-0" style="font-size:12px;">
|
||||
<table id="revenueTax" class="table table-striped table-hover mb-0"
|
||||
style="font-size:12px;">
|
||||
<thead>
|
||||
|
||||
<tr>
|
||||
@ -1248,69 +1254,178 @@ if (!empty($INRSYMBOL)) {
|
||||
<td><?php echo $record->UOM ?></td>
|
||||
<td align="right"><?php echo $record->Rate ?></td>
|
||||
|
||||
<td align="right"><?php echo number_format($record->BasicValue, 2, '.', '') ?></td>
|
||||
<td align="right">
|
||||
<?php echo number_format($record->BasicValue, 2, '.', '') ?></td>
|
||||
|
||||
<td align="right"><?php echo $record->Taxamount ?></td>
|
||||
<td align="right"><?php echo $record->TotalValue ?></td>
|
||||
<input type="hidden" name="<?php echo 'Reqnumber' . $index ?>" id="<?php echo 'Reqnumber' . $index ?>" value="<?php echo $record->ReqNo; ?>" />
|
||||
<input type="hidden" name="<?php echo 'departmentName' . $index ?>" id="<?php echo 'departmentName' . $index ?>" value="<?php echo $record->DepartmentName; ?>" />
|
||||
<input type="hidden" name="<?php echo 'AvlAmount' . $index ?>" id="<?php echo 'AvlAmount' . $index ?>" value="<?php echo $AvlAmount; ?>" />
|
||||
<input type="hidden" name="<?php echo 'LineItemNo' . $index ?>" id="<?php echo 'LineItemNo' . $index ?>" value="<?php echo $record->LineItemNo; ?>" />
|
||||
<input type="hidden" name="<?php echo 'costCode' . $index ?>" id="<?php echo 'costCode' . $index ?>" value="<?php echo $record->CostCenterCode; ?>" />
|
||||
<input type="hidden" name="<?php echo 'materialCode' . $index ?>" id="<?php echo 'materialCode' . $index ?>" value="<?php echo $record->MaterialCode; ?>" />
|
||||
<input type="hidden" name="<?php echo 'materialName' . $index ?>" id="<?php echo 'materialName' . $index ?>" value="<?php echo $record->MaterialName; ?>" />
|
||||
<input type="hidden" name="<?php echo 'uom' . $index ?>" id="<?php echo 'uom' . $index ?>" value="<?php echo $record->UOM; ?>" />
|
||||
<input type="hidden" name="<?php echo 'quantity' . $index ?>" id="<?php echo 'quantity' . $index ?>" value="<?php echo $record->Quantity; ?>" />
|
||||
<input type="hidden" name="<?php echo 'Reqnumber' . $index ?>"
|
||||
id="<?php echo 'Reqnumber' . $index ?>"
|
||||
value="<?php echo $record->ReqNo; ?>" />
|
||||
<input type="hidden" name="<?php echo 'departmentName' . $index ?>"
|
||||
id="<?php echo 'departmentName' . $index ?>"
|
||||
value="<?php echo $record->DepartmentName; ?>" />
|
||||
<input type="hidden" name="<?php echo 'AvlAmount' . $index ?>"
|
||||
id="<?php echo 'AvlAmount' . $index ?>"
|
||||
value="<?php echo $AvlAmount; ?>" />
|
||||
<input type="hidden" name="<?php echo 'LineItemNo' . $index ?>"
|
||||
id="<?php echo 'LineItemNo' . $index ?>"
|
||||
value="<?php echo $record->LineItemNo; ?>" />
|
||||
<input type="hidden" name="<?php echo 'costCode' . $index ?>"
|
||||
id="<?php echo 'costCode' . $index ?>"
|
||||
value="<?php echo $record->CostCenterCode; ?>" />
|
||||
<input type="hidden" name="<?php echo 'materialCode' . $index ?>"
|
||||
id="<?php echo 'materialCode' . $index ?>"
|
||||
value="<?php echo $record->MaterialCode; ?>" />
|
||||
<input type="hidden" name="<?php echo 'materialName' . $index ?>"
|
||||
id="<?php echo 'materialName' . $index ?>"
|
||||
value="<?php echo $record->MaterialName; ?>" />
|
||||
<input type="hidden" name="<?php echo 'uom' . $index ?>"
|
||||
id="<?php echo 'uom' . $index ?>"
|
||||
value="<?php echo $record->UOM; ?>" />
|
||||
<input type="hidden" name="<?php echo 'quantity' . $index ?>"
|
||||
id="<?php echo 'quantity' . $index ?>"
|
||||
value="<?php echo $record->Quantity; ?>" />
|
||||
|
||||
<input type="hidden" name="<?php echo 'itemRate' . $index ?>" id="<?php echo 'itemRate' . $index ?>" value="<?php echo $record->Rate; ?>" />
|
||||
<input type="hidden" name="<?php echo 'per' . $index ?>" id="<?php echo 'per' . $index ?>" value="<?php echo $record->Per; ?>" />
|
||||
<input type="hidden" name="<?php echo 'service_description' . $index ?>" id="<?php echo 'service_description' . $index ?>" value="<?php echo $record->ServiceMaterialDescription; ?>" />
|
||||
<input type="hidden" name="<?php echo 'itemRate' . $index ?>"
|
||||
id="<?php echo 'itemRate' . $index ?>"
|
||||
value="<?php echo $record->Rate; ?>" />
|
||||
<input type="hidden" name="<?php echo 'per' . $index ?>"
|
||||
id="<?php echo 'per' . $index ?>"
|
||||
value="<?php echo $record->Per; ?>" />
|
||||
<input type="hidden" name="<?php echo 'service_description' . $index ?>"
|
||||
id="<?php echo 'service_description' . $index ?>"
|
||||
value="<?php echo $record->ServiceMaterialDescription; ?>" />
|
||||
|
||||
<input type="hidden" name="<?php echo 'DisType' . $index ?>" id="<?php echo 'DisType' . $index ?>" value="<?php echo $record->DiscountType; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeDisType' . $index ?>" id="<?php echo 'beforeDisType' . $index ?>" value="<?php echo $record->DiscountType; ?>" />
|
||||
<input type="hidden" name="<?php echo 'DisVal' . $index ?>" id="<?php echo 'DisVal' . $index ?>" value="<?php echo $record->DiscountValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeDisVal' . $index ?>" id="<?php echo 'beforeDisVal' . $index ?>" value="<?php echo $record->DiscountValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'AfterDisVal' . $index ?>" id="<?php echo 'AfterDisVal' . $index ?>" value="<?php echo $record->AfterDiscount; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAfterDisVal' . $index ?>" id="<?php echo 'beforeAfterDisVal' . $index ?>" value="<?php echo $record->AfterDiscount; ?>" />
|
||||
<input type="hidden" name="<?php echo 'PackOption' . $index ?>" id="<?php echo 'PackOption' . $index ?>" value="<?php echo $record->PackagingCalulatedOn; ?>" />
|
||||
<input type="hidden" name="<?php echo 'PackType' . $index ?>" id="<?php echo 'PackType' . $index ?>" value="<?php echo $record->PackagingType; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforePackType' . $index ?>" id="<?php echo 'beforePackType' . $index ?>" value="<?php echo $record->PackagingType; ?>" />
|
||||
<input type="hidden" name="<?php echo 'PackVal' . $index ?>" id="<?php echo 'PackVal' . $index ?>" value="<?php echo $record->PackagingValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforePackVal' . $index ?>" id="<?php echo 'beforePackVal' . $index ?>" value="<?php echo $record->PackagingValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'AfterPackVal' . $index ?>" id="<?php echo 'AfterPackVal' . $index ?>" value="<?php echo $record->AfterPackagingValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAfterPackVal' . $index ?>" id="<?php echo 'beforeAfterPackVal' . $index ?>" value="<?php echo $record->AfterPackagingValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'VatOption' . $index ?>" id="<?php echo 'VatOption' . $index ?>" value="<?php echo isset($record->VatCalulatedOn) ? $record->VatCalulatedOn : ''; ?>" />
|
||||
<input type="hidden" name="<?php echo 'VatVal' . $index ?>" id="<?php echo 'VatVal' . $index ?>" value="<?php echo $record->SGST; ?>" /> <!-- SGST-->
|
||||
<input type="hidden" name="<?php echo 'beforeVatVal' . $index ?>" id="<?php echo 'beforeVatVal' . $index ?>" value="<?php echo $record->SGST; ?>" /><!-- SGST-->
|
||||
<input type="hidden" name="<?php echo 'AfterVatVal' . $index ?>" id="<?php echo 'AfterVatVal' . $index ?>" value="<?php echo $record->AfterSGST; ?>" /><!-- SGST-->
|
||||
<input type="hidden" name="<?php echo 'beforeAfterVatVal' . $index ?>" id="<?php echo 'beforeAfterVatVal' . $index ?>" value="<?php echo $record->AfterSGST; ?>" /><!-- SGST-->
|
||||
<input type="hidden" name="<?php echo 'GSTVal' . $index ?>" id="<?php echo 'GSTVal' . $index ?>" value="<?php echo $record->CGST; ?>" /><!-- CGST-->
|
||||
<input type="hidden" name="<?php echo 'beforeGSTVal' . $index ?>" id="<?php echo 'beforeGSTVal' . $index ?>" value="<?php echo $record->CGST; ?>" /><!-- CGST-->
|
||||
<input type="hidden" name="<?php echo 'AfterGSTVal' . $index ?>" id="<?php echo 'AfterGSTVal' . $index ?>" value="<?php echo $record->AfterCGST; ?>" /><!-- CGST-->
|
||||
<input type="hidden" name="<?php echo 'beforeAfterGSTVal' . $index ?>" id="<?php echo 'beforeAfterGSTVal' . $index ?>" value="<?php echo $record->AfterCGST; ?>" /><!-- CGST-->
|
||||
<input type="hidden" name="<?php echo 'OtherTaxVal' . $index ?>" id="<?php echo 'OtherTaxVal' . $index ?>" value="<?php echo $record->IGST; ?>" /><!-- IGST-->
|
||||
<input type="hidden" name="<?php echo 'beforeOtherTaxVal' . $index ?>" id="<?php echo 'beforeOtherTaxVal' . $index ?>" value="<?php echo $record->IGST; ?>" /><!-- IGST-->
|
||||
<input type="hidden" name="<?php echo 'AfterOtherTaxVal' . $index ?>" id="<?php echo 'AfterOtherTaxVal' . $index ?>" value="<?php echo $record->AfterIGST; ?>" /><!-- IGST-->
|
||||
<input type="hidden" name="<?php echo 'beforeAfterOtherTaxVal' . $index ?>" id="<?php echo 'beforeAfterOtherTaxVal' . $index ?>" value="<?php echo $record->AfterIGST; ?>" /><!-- IGST-->
|
||||
<input type="hidden" name="<?php echo 'DisType' . $index ?>"
|
||||
id="<?php echo 'DisType' . $index ?>"
|
||||
value="<?php echo $record->DiscountType; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeDisType' . $index ?>"
|
||||
id="<?php echo 'beforeDisType' . $index ?>"
|
||||
value="<?php echo $record->DiscountType; ?>" />
|
||||
<input type="hidden" name="<?php echo 'DisVal' . $index ?>"
|
||||
id="<?php echo 'DisVal' . $index ?>"
|
||||
value="<?php echo $record->DiscountValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeDisVal' . $index ?>"
|
||||
id="<?php echo 'beforeDisVal' . $index ?>"
|
||||
value="<?php echo $record->DiscountValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'AfterDisVal' . $index ?>"
|
||||
id="<?php echo 'AfterDisVal' . $index ?>"
|
||||
value="<?php echo $record->AfterDiscount; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAfterDisVal' . $index ?>"
|
||||
id="<?php echo 'beforeAfterDisVal' . $index ?>"
|
||||
value="<?php echo $record->AfterDiscount; ?>" />
|
||||
<input type="hidden" name="<?php echo 'PackOption' . $index ?>"
|
||||
id="<?php echo 'PackOption' . $index ?>"
|
||||
value="<?php echo $record->PackagingCalulatedOn; ?>" />
|
||||
<input type="hidden" name="<?php echo 'PackType' . $index ?>"
|
||||
id="<?php echo 'PackType' . $index ?>"
|
||||
value="<?php echo $record->PackagingType; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforePackType' . $index ?>"
|
||||
id="<?php echo 'beforePackType' . $index ?>"
|
||||
value="<?php echo $record->PackagingType; ?>" />
|
||||
<input type="hidden" name="<?php echo 'PackVal' . $index ?>"
|
||||
id="<?php echo 'PackVal' . $index ?>"
|
||||
value="<?php echo $record->PackagingValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforePackVal' . $index ?>"
|
||||
id="<?php echo 'beforePackVal' . $index ?>"
|
||||
value="<?php echo $record->PackagingValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'AfterPackVal' . $index ?>"
|
||||
id="<?php echo 'AfterPackVal' . $index ?>"
|
||||
value="<?php echo $record->AfterPackagingValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAfterPackVal' . $index ?>"
|
||||
id="<?php echo 'beforeAfterPackVal' . $index ?>"
|
||||
value="<?php echo $record->AfterPackagingValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'VatOption' . $index ?>"
|
||||
id="<?php echo 'VatOption' . $index ?>"
|
||||
value="<?php echo isset($record->VatCalulatedOn) ? $record->VatCalulatedOn : ''; ?>" />
|
||||
<input type="hidden" name="<?php echo 'VatVal' . $index ?>"
|
||||
id="<?php echo 'VatVal' . $index ?>"
|
||||
value="<?php echo $record->SGST; ?>" /> <!-- SGST-->
|
||||
<input type="hidden" name="<?php echo 'beforeVatVal' . $index ?>"
|
||||
id="<?php echo 'beforeVatVal' . $index ?>"
|
||||
value="<?php echo $record->SGST; ?>" /><!-- SGST-->
|
||||
<input type="hidden" name="<?php echo 'AfterVatVal' . $index ?>"
|
||||
id="<?php echo 'AfterVatVal' . $index ?>"
|
||||
value="<?php echo $record->AfterSGST; ?>" /><!-- SGST-->
|
||||
<input type="hidden" name="<?php echo 'beforeAfterVatVal' . $index ?>"
|
||||
id="<?php echo 'beforeAfterVatVal' . $index ?>"
|
||||
value="<?php echo $record->AfterSGST; ?>" /><!-- SGST-->
|
||||
<input type="hidden" name="<?php echo 'GSTVal' . $index ?>"
|
||||
id="<?php echo 'GSTVal' . $index ?>"
|
||||
value="<?php echo $record->CGST; ?>" /><!-- CGST-->
|
||||
<input type="hidden" name="<?php echo 'beforeGSTVal' . $index ?>"
|
||||
id="<?php echo 'beforeGSTVal' . $index ?>"
|
||||
value="<?php echo $record->CGST; ?>" /><!-- CGST-->
|
||||
<input type="hidden" name="<?php echo 'AfterGSTVal' . $index ?>"
|
||||
id="<?php echo 'AfterGSTVal' . $index ?>"
|
||||
value="<?php echo $record->AfterCGST; ?>" /><!-- CGST-->
|
||||
<input type="hidden" name="<?php echo 'beforeAfterGSTVal' . $index ?>"
|
||||
id="<?php echo 'beforeAfterGSTVal' . $index ?>"
|
||||
value="<?php echo $record->AfterCGST; ?>" /><!-- CGST-->
|
||||
<input type="hidden" name="<?php echo 'OtherTaxVal' . $index ?>"
|
||||
id="<?php echo 'OtherTaxVal' . $index ?>"
|
||||
value="<?php echo $record->IGST; ?>" /><!-- IGST-->
|
||||
<input type="hidden" name="<?php echo 'beforeOtherTaxVal' . $index ?>"
|
||||
id="<?php echo 'beforeOtherTaxVal' . $index ?>"
|
||||
value="<?php echo $record->IGST; ?>" /><!-- IGST-->
|
||||
<input type="hidden" name="<?php echo 'AfterOtherTaxVal' . $index ?>"
|
||||
id="<?php echo 'AfterOtherTaxVal' . $index ?>"
|
||||
value="<?php echo $record->AfterIGST; ?>" /><!-- IGST-->
|
||||
<input type="hidden"
|
||||
name="<?php echo 'beforeAfterOtherTaxVal' . $index ?>"
|
||||
id="<?php echo 'beforeAfterOtherTaxVal' . $index ?>"
|
||||
value="<?php echo $record->AfterIGST; ?>" /><!-- IGST-->
|
||||
<!-- <input type="hidden" name="<?php echo 'FreightOption' . $index ?>" id="<?php echo 'FreightOption' . $index ?>" value="<?php echo isset($record->FreightCalulatedOn) ? $record->FreightCalulatedOn : ''; ?>" /> -->
|
||||
<input type="hidden" name="<?php echo 'FreightType' . $index ?>" id="<?php echo 'FreightType' . $index ?>" value="<?php echo $record->FreightType; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeFreightType' . $index ?>" id="<?php echo 'beforeFreightType' . $index ?>" value="<?php echo $record->FreightType; ?>" />
|
||||
<input type="hidden" name="<?php echo 'FreightVal' . $index ?>" id="<?php echo 'FreightVal' . $index ?>" value="<?php echo $record->FreightValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeFreightVal' . $index ?>" id="<?php echo 'beforeFreightVal' . $index ?>" value="<?php echo $record->FreightValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'AfterFreightVal' . $index ?>" id="<?php echo 'AfterFreightVal' . $index ?>" value="<?php echo $record->AfterFreightValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeAfterFreightVal' . $index ?>" id="<?php echo 'before-AfterFreightVal' . $index ?>" value="<?php echo $record->AfterFreightValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'Nooftrips' . $index ?>" id="<?php echo 'Nooftrips' . $index ?>" value="<?php echo $record->NoOfTrip; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeNooftrips' . $index ?>" id="<?php echo 'beforeNooftrips' . $index ?>" value="<?php echo $record->NoOfTrip; ?>" />
|
||||
<input type="hidden" name="<?php echo 'basicval' . $index ?>" id="<?php echo 'basicval' . $index ?>" value="<?php echo $record->BasicValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'Insval' . $index ?>" id="<?php echo 'Insval' . $index ?>" value="<?php echo $record->Insurance; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeInsval' . $index ?>" id="<?php echo 'beforeInsval' . $index ?>" value="<?php echo $record->Insurance; ?>" />
|
||||
<input type="hidden" name="<?php echo 'TotalOrderValue' . $index ?>" id="<?php echo 'TotalOrderValue' . $index ?>" value="<?php echo $record->TotalValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeqty' . $index ?>" id="<?php echo 'beforeqty' . $index ?>" value="<?php echo $record->Quantity; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeitemRate' . $index ?>" id="<?php echo 'beforeitemRate' . $index ?>" value="<?php echo $record->Rate; ?>" />
|
||||
<input type="hidden" name="<?php echo 'FreightType' . $index ?>"
|
||||
id="<?php echo 'FreightType' . $index ?>"
|
||||
value="<?php echo $record->FreightType; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeFreightType' . $index ?>"
|
||||
id="<?php echo 'beforeFreightType' . $index ?>"
|
||||
value="<?php echo $record->FreightType; ?>" />
|
||||
<input type="hidden" name="<?php echo 'FreightVal' . $index ?>"
|
||||
id="<?php echo 'FreightVal' . $index ?>"
|
||||
value="<?php echo $record->FreightValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeFreightVal' . $index ?>"
|
||||
id="<?php echo 'beforeFreightVal' . $index ?>"
|
||||
value="<?php echo $record->FreightValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'AfterFreightVal' . $index ?>"
|
||||
id="<?php echo 'AfterFreightVal' . $index ?>"
|
||||
value="<?php echo $record->AfterFreightValue; ?>" />
|
||||
<input type="hidden"
|
||||
name="<?php echo 'beforeAfterFreightVal' . $index ?>"
|
||||
id="<?php echo 'before-AfterFreightVal' . $index ?>"
|
||||
value="<?php echo $record->AfterFreightValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'Nooftrips' . $index ?>"
|
||||
id="<?php echo 'Nooftrips' . $index ?>"
|
||||
value="<?php echo $record->NoOfTrip; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeNooftrips' . $index ?>"
|
||||
id="<?php echo 'beforeNooftrips' . $index ?>"
|
||||
value="<?php echo $record->NoOfTrip; ?>" />
|
||||
<input type="hidden" name="<?php echo 'basicval' . $index ?>"
|
||||
id="<?php echo 'basicval' . $index ?>"
|
||||
value="<?php echo $record->BasicValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'Insval' . $index ?>"
|
||||
id="<?php echo 'Insval' . $index ?>"
|
||||
value="<?php echo $record->Insurance; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeInsval' . $index ?>"
|
||||
id="<?php echo 'beforeInsval' . $index ?>"
|
||||
value="<?php echo $record->Insurance; ?>" />
|
||||
<input type="hidden" name="<?php echo 'TotalOrderValue' . $index ?>"
|
||||
id="<?php echo 'TotalOrderValue' . $index ?>"
|
||||
value="<?php echo $record->TotalValue; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeqty' . $index ?>"
|
||||
id="<?php echo 'beforeqty' . $index ?>"
|
||||
value="<?php echo $record->Quantity; ?>" />
|
||||
<input type="hidden" name="<?php echo 'beforeitemRate' . $index ?>"
|
||||
id="<?php echo 'beforeitemRate' . $index ?>"
|
||||
value="<?php echo $record->Rate; ?>" />
|
||||
|
||||
|
||||
|
||||
<td> <a data-target='#EDITREVENUE' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#EDITREVENUE"><i class="ri-pencil-fill"></i></a>
|
||||
<td> <a data-target='#EDITREVENUE' data-id="<?php echo $index; ?>"
|
||||
data-userid="<?php echo $index; ?>" data-toggle="modal"
|
||||
href="#EDITREVENUE"><i class="ri-pencil-fill"></i></a>
|
||||
|
||||
<!-- <td> <a data-toggle="tooltip" href="#"><i class="ri-pencil-fill" data-toggle="tooltip" title="<?php //echo $record->ReqNo;
|
||||
?> - Click here to view Requistion details"></i> </a> </td> -->
|
||||
@ -1421,7 +1536,8 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label>Total Order Amount <?php echo "($INRSYM)" ?> </label>
|
||||
<input type="hidden" name="preTotalOdervalue" value="<?php echo $totOrderSummaryAmt; ?>">
|
||||
<input type="hidden" name="preTotalOdervalue"
|
||||
value="<?php echo $totOrderSummaryAmt; ?>">
|
||||
<?php
|
||||
$data = array('name' => 'txtTotalOrderValueSummary', 'value' => set_value('txtTotalOrderValueSummary', number_format($totOrderSummaryAmt, 2, '.', '')), 'id' => 'txtTotalOrderValueSummary', 'class' => 'form-control num', 'readonly' => 'true', 'style' => 'text-align:right;');
|
||||
echo form_input($data);
|
||||
@ -1442,21 +1558,29 @@ if (!empty($INRSYMBOL)) {
|
||||
<div>
|
||||
<input type="file" name="POFile" id="POFile">
|
||||
<?php if ($PrePOFile) { ?>
|
||||
<label><a title="previously uploaded PO File" href="<?php echo base_url() . 'public/uploads/POfiles/' . $PrePOFile ?>"><span>previously uploaded - </span><small><?= $PrePOFile; ?></small></a></label>
|
||||
<label><a title="previously uploaded PO File"
|
||||
href="<?php echo base_url() . 'public/uploads/POfiles/' . $PrePOFile ?>"><span>previously
|
||||
uploaded - </span><small><?= $PrePOFile; ?></small></a></label>
|
||||
<?php } ?>
|
||||
<input type="hidden" id="PrePOFile" name="PrePOFile" value="<?php echo $PrePOFile; ?>" /><br>
|
||||
<input type="hidden" id="PrePOFile" name="PrePOFile"
|
||||
value="<?php echo $PrePOFile; ?>" /><br>
|
||||
</div>
|
||||
<div class="btn-container" style="text-align: right;">
|
||||
<input type="button" class="btn btn-success" value="Cancel" onClick="window.location ='amendmentpurchaseorder';">
|
||||
|
||||
<input type="hidden" name="txtPoRange" id="txtPoRange" />
|
||||
<input type="hidden" name="isEdit" id="isEdit" value="0" />
|
||||
<input type="hidden" name="txtStatus" id="txtStatus" />
|
||||
<input type="hidden" name="txtRowCount" id="txtRowCount" value="<?php echo $RowCount; ?>" />
|
||||
<input type="hidden" name="txtRowCount" id="txtRowCount"
|
||||
value="<?php echo $RowCount; ?>" />
|
||||
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
|
||||
<input type="hidden" name="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>" />
|
||||
|
||||
<!-- <a class="btn btn-success Save" ID="Save" onclick="Save(0)" > <span class="bold">Save</span></a> -->
|
||||
<a class="btn btn-success Save" ID="Submit" onclick="Save(1)"> <span class="bold">Submit</span></a>
|
||||
<input type="button" class="btn btn-secondary" value="Cancel"
|
||||
onClick="window.location ='amendmentpurchaseorder';">
|
||||
<a class="btn btn-primary Save" onclick="Save(0)"> <span
|
||||
class="bold">Draft</span></a>
|
||||
<a class="btn btn-success Save" ID="Submit" onclick="Save(1)"> <span
|
||||
class="bold">Approve</span></a>
|
||||
|
||||
<!-- <input type="reset" class="btn btn-success" value = "OK"> -->
|
||||
</div>
|
||||
@ -1501,19 +1625,19 @@ if (!empty($INRSYMBOL)) {
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
<!-- Modal for Packing Calculation -->
|
||||
<div id="packagingcalmodel" class="modal fade" tabindex="-1" role="dialog"
|
||||
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
||||
<div id="packagingcalmodel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
|
||||
aria-hidden="true" style="display: none;">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">Packing Calculation On</h4>
|
||||
<button type="button" class="close" data-dismiss="modal"
|
||||
aria-hidden="true">×</button>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
</div>
|
||||
<div class="modal-body p-4">
|
||||
<form>
|
||||
<div>
|
||||
<input type="radio" name="optPackaging" checked="checked" value="0" id="optPackagingBasicAmount">
|
||||
<input type="radio" name="optPackaging" checked="checked" value="0"
|
||||
id="optPackagingBasicAmount">
|
||||
<label for="optPackagingBasicAmount">Basic Amount</label>
|
||||
</div>
|
||||
|
||||
@ -1527,25 +1651,26 @@ if (!empty($INRSYMBOL)) {
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-secondary" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
|
||||
<a class="btn btn-success" ID="PackagingOption" onclick="SetPackagingOption();" > <span class="bold">Ok</span></a>
|
||||
<a class="btn btn-success" ID="PackagingOption" onclick="SetPackagingOption();"> <span
|
||||
class="bold">Ok</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.modal -->
|
||||
<!-- Modal for CST Calculation -->
|
||||
<div id="CSTCalModel" class="modal fade" tabindex="-1" role="dialog"
|
||||
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
||||
<div id="CSTCalModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"
|
||||
style="display: none;">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">CST Calculation On</h4>
|
||||
<button type="button" class="close" data-dismiss="modal"
|
||||
aria-hidden="true">×</button>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
</div>
|
||||
<div class="modal-body p-4">
|
||||
<form>
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="optCST" checked="checked" value="0" id="optCST">Basic Amount</label>
|
||||
<label><input type="radio" name="optCST" checked="checked" value="0" id="optCST">Basic
|
||||
Amount</label>
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="optCST" value="1" id="optCST">Excise Duty</label>
|
||||
@ -1554,19 +1679,19 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-success" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success" ID="CSTOption" onclick="SetCSTCalculation();" style="margin-top: -24px;"> <span class="bold">Ok</span></a>
|
||||
<a class="btn btn-success" ID="CSTOption" onclick="SetCSTCalculation();"
|
||||
style="margin-top: -24px;"> <span class="bold">Ok</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.modal -->
|
||||
<div id="EDITREVENUE" class="modal fade" tabindex="-1" role="dialog"
|
||||
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
||||
<div id="EDITREVENUE" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"
|
||||
style="display: none;">
|
||||
<div class="modal-dialog modal-full-width" style="width:1060px !important ;">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">Edit Revenue Purchase Order Line Item</h4>
|
||||
<button type="button" class="close" data-dismiss="modal"
|
||||
aria-hidden="true">×</button>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
</div>
|
||||
<form>
|
||||
<div class="modal-body p-4">
|
||||
@ -1903,7 +2028,8 @@ if (!empty($INRSYMBOL)) {
|
||||
<label><?php echo "Revenue Description"; ?></label>
|
||||
<?php
|
||||
$data = array('name' => 'Edit_Service_Description', 'value' => set_value('Edit_Service_Description'), 'id' => 'Edit_Service_Description', 'class' => 'form-control', 'rows' => '2', 'cols' => '100');
|
||||
echo form_textarea($data);;
|
||||
echo form_textarea($data);
|
||||
;
|
||||
?>
|
||||
|
||||
</div>
|
||||
@ -1912,7 +2038,8 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-success" data-dismiss="modal" value="Cancel" style="margin:10px;">Cancel</a>
|
||||
<a class="btn btn-success EditRevenue" ID="EditRevenue"> <span class="bold">Edit Revenue</span></a>
|
||||
<a class="btn btn-success EditRevenue" ID="EditRevenue"> <span class="bold">Edit
|
||||
Revenue</span></a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@ -1927,23 +2054,25 @@ if (!empty($INRSYMBOL)) {
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">Freight Calculation On</h4>
|
||||
<button type="button" class="close" data-dismiss="modal"
|
||||
aria-hidden="true">×</button>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
</div>
|
||||
<div class="modal-body p-4">
|
||||
<form>
|
||||
|
||||
<div>
|
||||
<label><input type="radio" name="optfreight" checked="checked" value='0' id="optFreight"> Basic Amount</label>
|
||||
<label><input type="radio" name="optfreight" checked="checked" value='0' id="optFreight"> Basic
|
||||
Amount</label>
|
||||
</div>
|
||||
<div>
|
||||
<label><input type="radio" name="optfreight" id="optFreight" value='1'> After Discount Amount</label>
|
||||
<label><input type="radio" name="optfreight" id="optFreight" value='1'> After Discount
|
||||
Amount</label>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-secondary waves-effect" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-info waves-effect waves-light" ID="PackagingOption" onclick="SetFreightOption();" > <span class="bold">Ok</span></a>
|
||||
<a class="btn btn-info waves-effect waves-light" ID="PackagingOption"
|
||||
onclick="SetFreightOption();"> <span class="bold">Ok</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1952,55 +2081,60 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
<!-- Modal for Excise Duty Calculation-->
|
||||
|
||||
<div id="ExciseDutyCalModel" class="modal fade" tabindex="-1" role="dialog"
|
||||
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
||||
<div id="ExciseDutyCalModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
|
||||
aria-hidden="true" style="display: none;">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">Excise Duty Calculation On</h4>
|
||||
<button type="button" class="close" data-dismiss="modal"
|
||||
aria-hidden="true">×</button>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
</div>
|
||||
<div class="modal-body p-4">
|
||||
<form>
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="optExcise" checked="checked" value="0" id="optExcise">From Basic Amount</label>
|
||||
<label><input type="radio" name="optExcise" checked="checked" value="0" id="optExcise">From
|
||||
Basic Amount</label>
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="optExcise" value="1" id="optExcise">Basic Amount - Discount Amount</label>
|
||||
<label><input type="radio" name="optExcise" value="1" id="optExcise">Basic Amount - Discount
|
||||
Amount</label>
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="optExcise" value="2" id="optExcise">(Basic Amount - Discount Amount ) + Packing Cost</label>
|
||||
<label><input type="radio" name="optExcise" value="2" id="optExcise">(Basic Amount - Discount
|
||||
Amount ) + Packing Cost</label>
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="optExcise" value="3" id="optExcise">Basic Amount + Packing Cost</label>
|
||||
<label><input type="radio" name="optExcise" value="3" id="optExcise">Basic Amount + Packing
|
||||
Cost</label>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-secondary waves-effect" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-info waves-effect waves-ligh" ID="ExciseOption" onclick="SetExciseCalculation();" style="margin-top: -24px;"> <span class="bold">Ok</span></a>
|
||||
<a class="btn btn-secondary waves-effect" data-dismiss="modal" style="margin-top: -24px;"
|
||||
value="Cancel">Cancel</a>
|
||||
<a class="btn btn-info waves-effect waves-ligh" ID="ExciseOption" onclick="SetExciseCalculation();"
|
||||
style="margin-top: -24px;"> <span class="bold">Ok</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.modal -->
|
||||
<!-- Modal for Vat Calculation -->
|
||||
|
||||
<div id="VatCalModel" class="modal fade" tabindex="-1" role="dialog"
|
||||
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
|
||||
<div id="VatCalModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"
|
||||
style="display: none;">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">Vat Calculation On</h4>
|
||||
<button type="button" class="close" data-dismiss="modal"
|
||||
aria-hidden="true">×</button>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
</div>
|
||||
<div class="modal-body p-4">
|
||||
<form>
|
||||
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="optVat" checked="checked" value="0" id="optVat">Basic Amount</label>
|
||||
<label><input type="radio" name="optVat" checked="checked" value="0" id="optVat">Basic
|
||||
Amount</label>
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="optVat" value="1" id="optVat">Excise Duty</label>
|
||||
@ -2009,7 +2143,8 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-success" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success" ID="VatOption" onclick="SetVatCalculation();" style="margin-top: -24px;"> <span class="bold">Ok</span></a>
|
||||
<a class="btn btn-success" ID="VatOption" onclick="SetVatCalculation();"
|
||||
style="margin-top: -24px;"> <span class="bold">Ok</span></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@ -2430,6 +2565,13 @@ if (!empty($INRSYMBOL)) {
|
||||
//alert('final else for store data');
|
||||
// $('.content').loader('show');
|
||||
var formData = new FormData($('.CreatePO')[0]);
|
||||
|
||||
if (status == 0) { // for draft
|
||||
formData.append('changeStatus','STO14');
|
||||
};
|
||||
if (status == 1) { // for approve
|
||||
formData.append('changeStatus','STO26');
|
||||
};
|
||||
$('#loader').show();
|
||||
$.ajax({
|
||||
// data:$('.CreatePO').serialize(),
|
||||
@ -2439,7 +2581,7 @@ if (!empty($INRSYMBOL)) {
|
||||
processData: false,
|
||||
contentType: false,
|
||||
success: function (data) {
|
||||
// console.log(data);
|
||||
console.log(data);
|
||||
if (data) {
|
||||
$('#loader').hide();
|
||||
$('#txtRowCount').val('');
|
||||
@ -2447,13 +2589,20 @@ if (!empty($INRSYMBOL)) {
|
||||
$('#txtStatus').val('');
|
||||
$('#SpcialInstruction').val('');
|
||||
$('#txtDeliveryAddress').val('')
|
||||
window.location = "amendmentpurchaseorder";
|
||||
|
||||
window.location = status == 1 ? "amendmentpurchaseorder" : "purchaseorderListing";
|
||||
|
||||
} else {
|
||||
$('#loader').hide();
|
||||
alert("Error");
|
||||
}
|
||||
|
||||
},
|
||||
error : function(error){
|
||||
console.error("error occured" + error);
|
||||
},
|
||||
complete : function (){
|
||||
$('#loader').hide();
|
||||
console.log("ajax call is completed ..!!")
|
||||
}
|
||||
|
||||
});
|
||||
@ -2461,6 +2610,8 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// this function is used to clear data changing schedule option
|
||||
$('#Scheduleby').change(function () {
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user