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>
|
||||
@ -169,7 +172,7 @@ if (!empty($INRSYMBOL)) {
|
||||
var DelDt = '<?php echo $Deliverydt; ?>';
|
||||
var insurancestatus = '<?php echo $insurencestatus; ?>';
|
||||
var InsuranceNumber = '<?php echo $insurenceno; ?>';
|
||||
$(document).ready(function() {
|
||||
$(document).ready(function () {
|
||||
|
||||
// $('#RequistionNo').attr("style", "pointer-events: none;");
|
||||
$('#drpSupplier').attr("style", "pointer-events: none;");
|
||||
@ -233,7 +236,7 @@ if (!empty($INRSYMBOL)) {
|
||||
Mat: []
|
||||
};
|
||||
// alert(new Date(year,month,day));
|
||||
$(function() {
|
||||
$(function () {
|
||||
|
||||
$("#PODate").datepicker({
|
||||
minDate: d,
|
||||
@ -255,7 +258,7 @@ if (!empty($INRSYMBOL)) {
|
||||
maxDate : 'now',
|
||||
dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '-100:+0'
|
||||
}); */
|
||||
$('#drpSupplier').change(function() {
|
||||
$('#drpSupplier').change(function () {
|
||||
var cd = $("#drpSupplier option:selected").text();
|
||||
//alert(cd);
|
||||
$("#changeSup").val(cd);
|
||||
@ -265,7 +268,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
if (id != '0') {
|
||||
var y = <?php echo json_encode($Suplist, JSON_PRETTY_PRINT) ?>;
|
||||
$.each(y, function(idx, obj) {
|
||||
$.each(y, function (idx, obj) {
|
||||
if (obj.SupplierID === id) {
|
||||
if (obj.MSME) {
|
||||
$("#SupAddress").val("MSME : " + obj.MSME + "\n" + obj.Address);
|
||||
@ -282,7 +285,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
});
|
||||
|
||||
$('#EditDiscountType').change(function() {
|
||||
$('#EditDiscountType').change(function () {
|
||||
selValue = $("#EditDiscountType").val();
|
||||
$('#txtEditDiscount').val('');
|
||||
$('#txtEditAfterDiscount').val('');
|
||||
@ -303,7 +306,7 @@ if (!empty($INRSYMBOL)) {
|
||||
});
|
||||
|
||||
|
||||
$('#EditPackagingType').change(function() {
|
||||
$('#EditPackagingType').change(function () {
|
||||
$('#txtEditPackaging').val('');
|
||||
$('#txtEditAfterPackaging').val('');
|
||||
selValue = $("#EditPackagingType").val();
|
||||
@ -328,7 +331,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
|
||||
|
||||
$('#drpEditFreight').change(function() {
|
||||
$('#drpEditFreight').change(function () {
|
||||
|
||||
var FreightType = $("#drpEditFreight").val();
|
||||
|
||||
@ -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; ?>;
|
||||
@ -847,30 +848,30 @@ if (!empty($INRSYMBOL)) {
|
||||
//alert('tot:'+tot);
|
||||
return tot;
|
||||
}
|
||||
$(document).ready(function() {
|
||||
$(document).ready(function () {
|
||||
$("#PaymentTerms").select2();
|
||||
|
||||
$('#Date').click(function() {
|
||||
$('#Date').click(function () {
|
||||
//for Date range selection
|
||||
$('#Schedulediv').hide();
|
||||
$('#Deliverydtdiv').show();
|
||||
});
|
||||
$('#Schedule').click(function() {
|
||||
$('#Schedule').click(function () {
|
||||
//for schedule range selection
|
||||
$('#Deliverydtdiv').hide();
|
||||
$('#Schedulediv').show();
|
||||
});
|
||||
SetVatorCST();
|
||||
});
|
||||
$(document).ready(function() {
|
||||
$('#Local').click(function() {
|
||||
$(document).ready(function () {
|
||||
$('#Local').click(function () {
|
||||
//for Date range selection
|
||||
$('#IGSTShow').hide();
|
||||
$('#SGSTShow').show();
|
||||
$('#SGSTModel').show(); // SGST Fields in Modal Show
|
||||
$('#IGSTModel').hide(); // IGST Fields in Modal Hide
|
||||
});
|
||||
$('#Inter_state').click(function() {
|
||||
$('#Inter_state').click(function () {
|
||||
//for schedule range selection
|
||||
$('#SGSTShow').hide();
|
||||
$('#IGSTShow').show();
|
||||
@ -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>
|
||||
@ -952,7 +954,7 @@ if (!empty($INRSYMBOL)) {
|
||||
<?php
|
||||
$options = array("0" => 'Selected Requisition Numbers');
|
||||
if (!empty($ReqList)) {
|
||||
foreach ($ReqList as $SID) :
|
||||
foreach ($ReqList as $SID):
|
||||
|
||||
$options[$SID->ReqNo] = $SID->ReqNo;
|
||||
//$ReqType = $SID->ReqType;
|
||||
@ -975,7 +977,7 @@ if (!empty($INRSYMBOL)) {
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($Suplist)) {
|
||||
foreach ($Suplist as $SID) :
|
||||
foreach ($Suplist as $SID):
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName;
|
||||
endforeach;
|
||||
}
|
||||
@ -1021,13 +1023,14 @@ if (!empty($INRSYMBOL)) {
|
||||
<label>Delivery Date<span class="text-danger">*</span></label>
|
||||
<div>
|
||||
<?php
|
||||
$data = array('name' => 'Deliverydt', 'value' => set_value('Deliverydt', $Deliverydt), 'id' => 'Deliverydt', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;', 'min' => date('d-m-Y'),);
|
||||
$data = array('name' => 'Deliverydt', 'value' => set_value('Deliverydt', $Deliverydt), 'id' => 'Deliverydt', 'class' => 'form-control num', 'required' => 'true', 'onkeypress' => 'return false;', 'min' => date('d-m-Y'), );
|
||||
echo form_input($data);
|
||||
?>
|
||||
</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>
|
||||
@ -1108,7 +1112,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
|
||||
if (!empty($PoTypeOptions)) {
|
||||
foreach ($PoTypeOptions as $POpt) :
|
||||
foreach ($PoTypeOptions as $POpt):
|
||||
|
||||
|
||||
$optionsPO[$POpt->ConfigValue] = $POpt->ConfigValue;
|
||||
@ -1144,13 +1148,14 @@ 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;
|
||||
}
|
||||
|
||||
foreach ($Payment as $pay1) :
|
||||
foreach ($Payment as $pay1):
|
||||
|
||||
if ($Terms != $pay1->PaymentID) {
|
||||
|
||||
@ -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,23 +1625,23 @@ 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">
|
||||
<div>
|
||||
<input type="radio" name="optPackaging" checked="checked" value="0"
|
||||
id="optPackagingBasicAmount">
|
||||
<label for="optPackagingBasicAmount">Basic Amount</label>
|
||||
</div>
|
||||
|
||||
<div >
|
||||
<div>
|
||||
<input type="radio" name="optPackaging" id="optPackagingAfterDiscountAmount" value="1">
|
||||
<label for="optPackagingAfterDiscountAmount">After Discount 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 class="modal-dialog modal-full-width" style="width:1060px !important ;" >
|
||||
<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">
|
||||
@ -1701,7 +1826,7 @@ if (!empty($INRSYMBOL)) {
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($TaxType)) {
|
||||
foreach ($TaxType as $SID) :
|
||||
foreach ($TaxType as $SID):
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
@ -1740,7 +1865,7 @@ if (!empty($INRSYMBOL)) {
|
||||
<?php
|
||||
$options = array("0" => 'Select Freight Type');
|
||||
if (!empty($FreightType)) {
|
||||
foreach ($FreightType as $SID) :
|
||||
foreach ($FreightType as $SID):
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
endforeach;
|
||||
}
|
||||
@ -1784,7 +1909,7 @@ if (!empty($INRSYMBOL)) {
|
||||
//print_r( $options);
|
||||
|
||||
if (!empty($TaxType)) {
|
||||
foreach ($TaxType as $SID) :
|
||||
foreach ($TaxType as $SID):
|
||||
|
||||
|
||||
$options[$SID->ConfigValue] = $SID->ConfigValue;
|
||||
@ -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>
|
||||
@ -2037,11 +2172,11 @@ if (!empty($INRSYMBOL)) {
|
||||
</tr>
|
||||
</script> -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(document).ready(function () {
|
||||
var tempUserId = 0;
|
||||
var index = '1';
|
||||
var userid = '';
|
||||
$("#EDITREVENUE").on("shown.bs.modal", function(e) {
|
||||
$("#EDITREVENUE").on("shown.bs.modal", function (e) {
|
||||
|
||||
var AvlBudAmt = '<?php echo $AvlAmount ?>';
|
||||
|
||||
@ -2099,9 +2234,9 @@ if (!empty($INRSYMBOL)) {
|
||||
$("#EditMaterialCode").append($('<option></option>').val($('#materialCode' + userid).val()).html($('#materialCode' + userid).val() + "-" + $('#materialName' + userid).val()));
|
||||
var isAdded = "0";
|
||||
for (i = 0; i < Material.length; i++) {
|
||||
$.each(Material[i], function(idx, obj) {
|
||||
$.each(Material[i], function (idx, obj) {
|
||||
if (obj.ReqNo === id) {
|
||||
$.each(SelectedMaterialList.Mat, function(idx1, el) {
|
||||
$.each(SelectedMaterialList.Mat, function (idx1, el) {
|
||||
if (id == el.ReqNo) {
|
||||
if (el.materialCode == obj.MaterialCode) {
|
||||
isAdded = "1";
|
||||
@ -2134,7 +2269,7 @@ if (!empty($INRSYMBOL)) {
|
||||
});
|
||||
$('#BudgetType').attr("style", "pointer-events: none;");
|
||||
|
||||
$('#EditRevenue').click(function() {
|
||||
$('#EditRevenue').click(function () {
|
||||
tinyMCE.triggerSave();
|
||||
if (validateEditRevenueTax() && validateEditExceedLimit()) {
|
||||
var CostCode = $("#EditCostCenter").val();
|
||||
@ -2364,7 +2499,7 @@ if (!empty($INRSYMBOL)) {
|
||||
},
|
||||
type: "POST",
|
||||
url: "<?php echo base_url() ?>serviceAvilBudgetAmount",
|
||||
success: function(data) {
|
||||
success: function (data) {
|
||||
$('#loader').hide();
|
||||
if (data) {
|
||||
avalbudAmt = parseFloat(data);
|
||||
@ -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(),
|
||||
@ -2438,8 +2580,8 @@ if (!empty($INRSYMBOL)) {
|
||||
data: formData,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
success: function(data) {
|
||||
// console.log(data);
|
||||
success: function (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,8 +2610,10 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// this function is used to clear data changing schedule option
|
||||
$('#Scheduleby').change(function() {
|
||||
$('#Scheduleby').change(function () {
|
||||
|
||||
$("#Deliverydt").datepicker({
|
||||
minDate: 'now',
|
||||
@ -2473,13 +2624,13 @@ if (!empty($INRSYMBOL)) {
|
||||
});
|
||||
|
||||
});
|
||||
$('#Deliverydt').change(function() {
|
||||
$('#Deliverydt').change(function () {
|
||||
|
||||
$('#Scheduleby').val('');
|
||||
|
||||
});
|
||||
// < !--script for table, It works uned the datatable plugin-- >
|
||||
$(function() {
|
||||
$(function () {
|
||||
|
||||
// $('#revenueTax').DataTable({
|
||||
// "paging": false,
|
||||
@ -2492,7 +2643,7 @@ if (!empty($INRSYMBOL)) {
|
||||
// });
|
||||
});
|
||||
//If others is the payment terms , display mandatory field
|
||||
$("#PaymentTerms").change(function() {
|
||||
$("#PaymentTerms").change(function () {
|
||||
if ($('#PaymentTerms').val().trim() == 'PT08') {
|
||||
$('#otheroptiondiv').show();
|
||||
} else {
|
||||
@ -2501,7 +2652,7 @@ if (!empty($INRSYMBOL)) {
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
$('#insurancestatus').change(function() {
|
||||
$('#insurancestatus').change(function () {
|
||||
var ans = $("#insurancestatus").val();
|
||||
//alert(ans);
|
||||
if (ans == 0) {
|
||||
@ -2517,13 +2668,13 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(document).ready(function () {
|
||||
// When the second modal is about to be shown
|
||||
$('#packagingcalmodel').on('show.bs.modal', function () {
|
||||
// Set a higher z-index for the second modal to appear on top
|
||||
$('#packagingcalmodel').css('z-index', 1060); // Set the z-index for the second modal
|
||||
// Ensure the second modal backdrop appears above the first one
|
||||
setTimeout(function() {
|
||||
setTimeout(function () {
|
||||
$('.modal-backdrop').last().css('z-index', 1055);
|
||||
}, 0);
|
||||
});
|
||||
@ -2537,13 +2688,13 @@ if (!empty($INRSYMBOL)) {
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(document).ready(function () {
|
||||
// When the second modal is about to be shown
|
||||
$('#freightmodel').on('show.bs.modal', function () {
|
||||
// Set a higher z-index for the second modal to appear on top
|
||||
$('#freightmodel').css('z-index', 1060); // Set the z-index for the second modal
|
||||
// Ensure the second modal backdrop appears above the first one
|
||||
setTimeout(function() {
|
||||
setTimeout(function () {
|
||||
$('.modal-backdrop').last().css('z-index', 1055);
|
||||
}, 0);
|
||||
});
|
||||
|
||||
@ -139,7 +139,7 @@
|
||||
} else {
|
||||
$cdate = date('d-m-Y', strtotime($record->createdDtm));
|
||||
} ?>
|
||||
<td><?php echo $cdate; ?> </td>
|
||||
<td><?php echo $cdate; ?></td>
|
||||
<!-- <td><?php echo $record->userId ?></td> -->
|
||||
<td><?php echo $record->FirstName ?></td>
|
||||
<td><?php echo $record->EmailId ?></td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user