0001447 : ps
This commit is contained in:
parent
ef042f8637
commit
bd977f5cb6
@ -464,7 +464,7 @@ mstr.CourierNo,pom.Status,pom.POType') //,bill.BillNo,bill.FilePath,
|
||||
if ($forwhat == 'amendment') {
|
||||
$builder->where('POMast.Status', PO_RELEASED);
|
||||
} else {
|
||||
$builder->where('POMast.Status !=', PO_AMENDED);
|
||||
// $builder->where('POMast.Status !=', PO_AMENDED);
|
||||
// $builder->orderBy('POMast.Status !=',PO_AMENDED);
|
||||
}
|
||||
|
||||
|
||||
@ -904,11 +904,14 @@ if (!empty($getlogpodtl)) {
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<?php if ($parentPO == '') { ?>
|
||||
<h4><?= "Edit Service Purchase Order - $PONO "; ?></h4>
|
||||
<?php } else { ?>
|
||||
<h4><?= "Amended Service Purchase Order - $PONO "; ?></h4>
|
||||
<?php } ?>
|
||||
<?php
|
||||
if ($PONOStatus != 'ST030') {
|
||||
$title = ($parentPO == '') ? "Edit Service Purchase Order - $PONO" : "Amended Service Purchase Order - $PONO";
|
||||
} else {
|
||||
$title = "View Amended Service Purchase Order - $PONO";
|
||||
}
|
||||
?>
|
||||
<h4><?= $title; ?></h4>
|
||||
<a href="<?php echo base_url() ?>purchaseorderListing" class="btn btn-secondary" id="back" value="Back">Back</a>
|
||||
</div>
|
||||
</div>
|
||||
@ -2515,6 +2518,19 @@ if (!empty($getlogpodtl)) {
|
||||
</td>
|
||||
</tr>
|
||||
</script> -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var PONOStatus = "<?= $PONOStatus ?>";
|
||||
console.log(PONOStatus);
|
||||
|
||||
if (PONOStatus === 'ST030') {
|
||||
$('input, textarea, select').attr('readonly', true);
|
||||
$('input[type="file"], input[type="radio"], input[type="checkbox"]').attr('disabled', true);
|
||||
$("#PaymentTerms,#drpSupplier,#insuranceStatus,#PoTypeOptions,#workstatus").prop("disabled", true);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
var index = <?php if (isset($index)) {
|
||||
echo $index;
|
||||
|
||||
@ -202,9 +202,14 @@
|
||||
<?php } ?>
|
||||
</td>
|
||||
<?php
|
||||
} else {
|
||||
|
||||
?>
|
||||
} else if ($statusCode == PO_AMENDED ) { ?>
|
||||
<td>
|
||||
<a data-toggle="tooltip" href="<?php echo base_url() . 'EditPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType. '&CapitalRange=' . $record->CapitalRange; ?>">
|
||||
<i class="fa fa-eye" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Amendment Purchase Order details"></i>
|
||||
|
||||
</a>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td>
|
||||
|
||||
|
||||
|
||||
@ -20,7 +20,8 @@
|
||||
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
|
||||
}
|
||||
|
||||
.save-btn, .cancel-btn {
|
||||
.save-btn,
|
||||
.cancel-btn {
|
||||
border: none;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
@ -53,8 +54,8 @@
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$(document).on('click', '.editable-field', function (e) {
|
||||
$(document).ready(function() {
|
||||
$(document).on('click', '.editable-field', function(e) {
|
||||
e.preventDefault();
|
||||
const $link = $(this);
|
||||
const value = $link.text().trim();
|
||||
@ -67,7 +68,7 @@
|
||||
});
|
||||
|
||||
// Handle click on the tick (save) button
|
||||
$(document).on('click', '.save-btn', function (e) {
|
||||
$(document).on('click', '.save-btn', function(e) {
|
||||
e.preventDefault();
|
||||
const $btn = $(this);
|
||||
const $editContainer = $btn.closest('.edit-container');
|
||||
@ -84,7 +85,7 @@
|
||||
});
|
||||
|
||||
// Handle click on the close (cancel) button
|
||||
$(document).on('click', '.cancel-btn', function (e) {
|
||||
$(document).on('click', '.cancel-btn', function(e) {
|
||||
e.preventDefault();
|
||||
const $btn = $(this);
|
||||
const $editContainer = $btn.closest('.edit-container');
|
||||
@ -93,7 +94,9 @@
|
||||
// Hide the edit container and show the <a> tag
|
||||
$editContainer.hide();
|
||||
$link.show();
|
||||
});});</script>
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php $parentPO = '';
|
||||
$AvlCapitalBudAmt = isset($AvlCapitalBudAmt) ? (int) $AvlCapitalBudAmt : 0;
|
||||
$insuranceStatus = array(
|
||||
@ -348,7 +351,7 @@ if (!empty($getlogpodtl)) {
|
||||
var SchName = <?php echo json_encode($DeliverSchedule); ?>;
|
||||
var DelDt = '<?php echo $Deliverydt; ?>';
|
||||
|
||||
$(document).ready(function () {
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#PaymentTerms").select2();
|
||||
if (insuranceOpt == "1") {
|
||||
@ -399,7 +402,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
|
||||
var capitalType = '';
|
||||
window.onload = function () {
|
||||
window.onload = function() {
|
||||
$('#PoTypeOptions').attr("style", "pointer-events: none;");
|
||||
var CapRan = '<?php echo $CapitalRange; ?>';
|
||||
if (CapRan == '1') {
|
||||
@ -445,7 +448,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$(document).ready(function() {
|
||||
$("#PaymentMethod").select2();
|
||||
//Initialize Select2 Elements
|
||||
$("#drpSupplier").select2();
|
||||
@ -476,7 +479,7 @@ if (!empty($getlogpodtl)) {
|
||||
// changeYear: true,
|
||||
// yearRange: '-100:+0'
|
||||
// });
|
||||
$('#Date').click(function () {
|
||||
$('#Date').click(function() {
|
||||
//for Dispatch range selection
|
||||
$('#Schedulediv').hide();
|
||||
$('#Deliverydtdiv').show();
|
||||
@ -490,14 +493,14 @@ if (!empty($getlogpodtl)) {
|
||||
// yearRange: '0:+10'
|
||||
// });
|
||||
|
||||
$('#Schedule').click(function () {
|
||||
$('#Schedule').click(function() {
|
||||
//for schedule range selection
|
||||
$('#Deliverydtdiv').hide();
|
||||
$('#Schedulediv').show();
|
||||
$('#deliverydateby').hide();
|
||||
});
|
||||
|
||||
$('#DeliverycheckDate').click(function () {
|
||||
$('#DeliverycheckDate').click(function() {
|
||||
//for Delivery Date selection
|
||||
$('#Schedulediv').hide();
|
||||
$('#deliverydateby').show();
|
||||
@ -514,11 +517,14 @@ if (!empty($getlogpodtl)) {
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<?php if ($parentPO == '') { ?>
|
||||
<h4><?= "Edit Capital Purchase Order - $PONO "; ?></h4>
|
||||
<?php } else { ?>
|
||||
<h4><?= "Amended Capital Purchase Order - $PONO "; ?></h4>
|
||||
<?php } ?>
|
||||
<?php
|
||||
if ($PONOStatus != 'ST030') {
|
||||
$title = ($parentPO == '') ? "Edit Capital Purchase Order - $PONO" : "Amended Capital Purchase Order - $PONO";
|
||||
} else {
|
||||
$title = "View Amended Capital Purchase Order - $PONO";
|
||||
}
|
||||
?>
|
||||
<h4><?= $title; ?></h4>
|
||||
<a href="<?php echo base_url() ?>purchaseorderListing" class="btn btn-secondary" id="back"
|
||||
value="Back">Back</a>
|
||||
</div>
|
||||
@ -929,7 +935,7 @@ if (!empty($getlogpodtl)) {
|
||||
<?php if ($PONOStatus === PO_DRAFT || $PONOStatus === PO_CREATED) { ?>
|
||||
<a href="#"
|
||||
class="editable-field"
|
||||
data-id ="<?php echo $index ?>" data-notes="<?php echo $record->LineitemAuditorNotes; ?>">
|
||||
data-id="<?php echo $index ?>" data-notes="<?php echo $record->LineitemAuditorNotes; ?>">
|
||||
<?php echo !empty($record->LineitemAuditorNotes) ? $record->LineitemAuditorNotes : "-"; ?>
|
||||
</a>
|
||||
<div class="edit-container" style="display:none;">
|
||||
@ -937,10 +943,12 @@ if (!empty($getlogpodtl)) {
|
||||
<button class="save-btn">✔</button>
|
||||
<button class="cancel-btn">✖</button>
|
||||
</div>
|
||||
<?php }else{ echo !empty($record->LineitemAuditorNotes) ? $record->LineitemAuditorNotes : "-"; } ?>
|
||||
<?php } else {
|
||||
echo !empty($record->LineitemAuditorNotes) ? $record->LineitemAuditorNotes : "-";
|
||||
} ?>
|
||||
</td>
|
||||
<td style="text-align:right !important"><?php echo $record->Quantity ?></td>
|
||||
<td ><?php echo $record->UOM ?></td>
|
||||
<td><?php echo $record->UOM ?></td>
|
||||
<td style="text-align:right !important"><?php echo $record->Rate ?></td>
|
||||
<td style="text-align:right !important"><?php echo number_format($record->Rate * $record->Quantity, 2, '.', '') ?></td>
|
||||
<?php if ($CapitalRange == '1') { ?>
|
||||
@ -1219,7 +1227,8 @@ if (!empty($getlogpodtl)) {
|
||||
data-userid="<?php echo $index; ?>" id="Del"><span class="ri-delete-bin-7-fill"></span></a>
|
||||
<?php
|
||||
} else { ?>
|
||||
<td> <a data-target='#VIEWCAPITAL' data-id="<?php echo $index; ?>"
|
||||
<td>
|
||||
<a data-target='#VIEWCAPITAL' data-id="<?php echo $index; ?>"
|
||||
data-userid="<?php echo $index; ?>" data-toggle="modal" href="#VIEWCAPITAL"><i
|
||||
class="fa fa-eye" data-toggle="tooltip"></i> </a> </td>
|
||||
<?php
|
||||
@ -1304,7 +1313,7 @@ if (!empty($getlogpodtl)) {
|
||||
<label>Total Basic Amount <?php echo "($INR)" ?> </label>
|
||||
|
||||
<?php
|
||||
$data = array('name' => 'CapitalBasicOrder', 'value' => set_value('CapitalBasicOrder', number_format($ExitTotalBasicOrderValue, 2, '.', '')), 'id' => 'CapitalBasicOrder', 'class' => 'form-control num', 'readonly' => 'true', );
|
||||
$data = array('name' => 'CapitalBasicOrder', 'value' => set_value('CapitalBasicOrder', number_format($ExitTotalBasicOrderValue, 2, '.', '')), 'id' => 'CapitalBasicOrder', 'class' => 'form-control num', 'readonly' => 'true',);
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -1589,10 +1598,12 @@ if (!empty($getlogpodtl)) {
|
||||
<?php } ?>
|
||||
<a class="btn btn-success Save" ID="Submit" onclick="Save(1)"> <span class="bold">Submit</span></a>
|
||||
<a class="btn btn btn-soft-primary waves-effect waves-light Save" ID="Submit" onclick="Save(4)"> <span class="bold">Approve</span></a>
|
||||
<?php } else if($PONOStatus == PO_AMENDED){ ?>
|
||||
<a class="btn btn-success" ID="OK" onclick="PageRedirect()">OK</a>
|
||||
<?php } else {
|
||||
if ($DEPCode == FINANCE) { ?>
|
||||
<a class="btn btn-success" ID="OK" onclick="PageRedirect()">OK</a>
|
||||
<?php } else if ($DEPCode != FINANCE) {
|
||||
<?php } else if($DEPCode != FINANCE) {
|
||||
if (($CapitalRange != 1)) { ?>
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(2)"> <span
|
||||
class="bold">Submit</span></a>
|
||||
@ -3089,14 +3100,13 @@ if (!empty($getlogpodtl)) {
|
||||
</div><!-- /.modal -->
|
||||
|
||||
<!-- 3rd modal new-->
|
||||
<div id="VIEWCAPITAL" class="modal fade " tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"
|
||||
style="display: none;">
|
||||
<div id="VIEWCAPITAL" 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">View Capital Purchase Order Item</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
</div>
|
||||
</div><!-- modal-header -->
|
||||
<form>
|
||||
<div class="modal-body p-4">
|
||||
<div class="form-row">
|
||||
@ -3136,7 +3146,7 @@ if (!empty($getlogpodtl)) {
|
||||
?>
|
||||
</div>
|
||||
</div><!-- Avail Bud Amount -->
|
||||
</div><!-- form-row -->
|
||||
</div><!-- 1st form-row -->
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-9"></div>
|
||||
<div class="form-group col-md-3" id="ExchangeRateModalEditDiv" style="display:none;">
|
||||
@ -3149,7 +3159,7 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div><!-- form-row -->
|
||||
</div><!-- 2nd form-row -->
|
||||
<div class="form-row" style="padding: 0px;">
|
||||
<div class="form-group col-md-3">
|
||||
<label>Item Code<span class="text-danger">*</span></label>
|
||||
@ -3187,7 +3197,7 @@ if (!empty($getlogpodtl)) {
|
||||
?>
|
||||
</div>
|
||||
</div><!-- Quantity -->
|
||||
</div><!-- form-row -->
|
||||
</div><!-- 3rd form-row -->
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-3"></div>
|
||||
<div class="form-group col-md-3" style="padding: 0px;">
|
||||
@ -3211,7 +3221,7 @@ if (!empty($getlogpodtl)) {
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div><!-- Basic value -->
|
||||
</div><!-- form-row -->
|
||||
</div><!-- 4th form-row -->
|
||||
<div class="form-row" style="padding:0px;" id="VIEWCAPdiv">
|
||||
<div class="form-group col-md-3">
|
||||
</div>
|
||||
@ -3242,8 +3252,7 @@ if (!empty($getlogpodtl)) {
|
||||
?>
|
||||
</div>
|
||||
</div><!-- Discounted Amt -->
|
||||
<div class="form-group col-md-3">
|
||||
</div>
|
||||
<div class="form-group col-md-3"></div>
|
||||
<div class="form-group col-md-3">
|
||||
<label>Freight Type </label>
|
||||
<?php
|
||||
@ -3375,8 +3384,9 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- VIEWCAPdiv3 form-row -->
|
||||
<div class="form-row" style="padding:1%;"></div>
|
||||
<div class="form-row" style="border:1px solid #000;padding:0px;" id="EditModalImportTaxHide" style="display:none;">
|
||||
<div class="form-row" style="padding:1%;">
|
||||
</div>
|
||||
<div class="form-row" style="border:1px solid #000;padding:0px;" id="ViewModalImportTaxHide" style="display:none;">
|
||||
<br />
|
||||
<div class="form-group col-md-6" style="padding:10px;">
|
||||
<div class="form-row">
|
||||
@ -3605,7 +3615,6 @@ if (!empty($getlogpodtl)) {
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--End of Adding of freight in view model -->
|
||||
<br>
|
||||
@ -3671,10 +3680,10 @@ if (!empty($getlogpodtl)) {
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div><!-- 2nd form-group col-md-6 -->
|
||||
</div><!-- form-row -->
|
||||
|
||||
</div><!-- form-row-Import-Tax-Hide -->
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12">
|
||||
<label>Capital Description </label>
|
||||
@ -3682,17 +3691,17 @@ if (!empty($getlogpodtl)) {
|
||||
$data = array('name' => 'ViewItemDescription', 'value' => set_value('ViewItemDescription'), 'id' => 'ViewItemDescription', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
|
||||
echo form_textarea($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- form-row -->
|
||||
</div><!-- modal-body -->
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-success" data-dismiss="modal" value="Cancel" style="margin-right:10px">Cancel</a>
|
||||
<?php if ($CapitalRange == 1 || $CapitalRange == 0) { ?>
|
||||
<!-- <a class="btn btn-success font ViewCapital" ID="ViewUpdateCapital"> <span class="bold">Update Capital</span></a> -->
|
||||
<?php } ?>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- modal-footer -->
|
||||
</form><!-- form -->
|
||||
</div><!-- modal-content -->
|
||||
</div><!-- modal-dialog modal-full-width -->
|
||||
</div><!-- /.modal -->
|
||||
|
||||
<!-- 3rd modal old-->
|
||||
@ -4305,6 +4314,19 @@ if (!empty($getlogpodtl)) {
|
||||
</td>
|
||||
</tr>
|
||||
</script> -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var PONOStatus = "<?= $PONOStatus ?>";
|
||||
console.log(PONOStatus);
|
||||
|
||||
if (PONOStatus === 'ST030') {
|
||||
$('input, textarea, select').attr('readonly', true);
|
||||
$('input[type="file"], input[type="radio"], input[type="checkbox"]').attr('disabled', true);
|
||||
$("#MaterialCode,#EditMaterialCode,#Reqnumber,#drpSupplier,#currencytype,#PoTypeOptions,#PaymentMethod,#insuranceStatus,#CapitalCostCenter").prop("disabled", true);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
var RequistQuantity = '';
|
||||
var AvilBudAmt = '';
|
||||
@ -4318,7 +4340,7 @@ if (!empty($getlogpodtl)) {
|
||||
var index = <?php echo $index; ?> + 1;
|
||||
|
||||
var myArray = <?php echo json_encode($res_arr_values); ?>;
|
||||
$.each(myArray, function (idx, obj) {
|
||||
$.each(myArray, function(idx, obj) {
|
||||
SelectedMaterialCode[CollIndex] = obj.materialCode;
|
||||
CollIndex = CollIndex + 1;
|
||||
|
||||
@ -4333,7 +4355,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
|
||||
|
||||
$("#BudgetType").change(function () {
|
||||
$("#BudgetType").change(function() {
|
||||
|
||||
var aa = $("#BudgetType option:selected").text();
|
||||
|
||||
@ -4343,7 +4365,7 @@ if (!empty($getlogpodtl)) {
|
||||
});
|
||||
|
||||
|
||||
$(function () {
|
||||
$(function() {
|
||||
|
||||
// $("#PODate").datepicker({
|
||||
// minDate: d,
|
||||
@ -4380,7 +4402,7 @@ if (!empty($getlogpodtl)) {
|
||||
//$('#DOMdiv').hide();
|
||||
}
|
||||
|
||||
$('#drpSupplier').change(function () {
|
||||
$('#drpSupplier').change(function() {
|
||||
|
||||
var cd = $("#drpSupplier option:selected").text();
|
||||
//alert(cd);
|
||||
@ -4396,7 +4418,7 @@ if (!empty($getlogpodtl)) {
|
||||
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);
|
||||
@ -4420,7 +4442,7 @@ if (!empty($getlogpodtl)) {
|
||||
$('#PaymentMethod').empty();
|
||||
var paymentList = <?php echo json_encode($Payment, JSON_PRETTY_PRINT) ?>;
|
||||
|
||||
$.each(paymentList, function (idx1, obj1) {
|
||||
$.each(paymentList, function(idx1, obj1) {
|
||||
|
||||
|
||||
if (obj1.PaymentID == supPaymentTerms) {
|
||||
@ -4435,7 +4457,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
});
|
||||
|
||||
$.each(paymentList, function (idx, obj) {
|
||||
$.each(paymentList, function(idx, obj) {
|
||||
|
||||
|
||||
if (obj.PaymentID != supPaymentTerms) {
|
||||
@ -4454,7 +4476,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
});
|
||||
|
||||
$('#Reqnumber').change(function () {
|
||||
$('#Reqnumber').change(function() {
|
||||
var ExchangeRate = '';
|
||||
var ExchangeRate = $('#ExchangeRt').val();
|
||||
var id = $('#Reqnumber').val();
|
||||
@ -4480,7 +4502,7 @@ if (!empty($getlogpodtl)) {
|
||||
var AvlBudAmt = '<?php echo $AvlAmount ?>';
|
||||
|
||||
// For Binding DepartmentName
|
||||
$.each(y, function (idx, obj) {
|
||||
$.each(y, function(idx, obj) {
|
||||
if (obj.ReqNo === id) {
|
||||
$("#CapitalDepartmentName").val(obj.DepartmentName);
|
||||
$("#CostCenter").val(obj.CostCenterCode);
|
||||
@ -4494,11 +4516,11 @@ if (!empty($getlogpodtl)) {
|
||||
$("#MaterialCode").append($('<option></option>').val("0").html("Select Material Code"));
|
||||
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) {
|
||||
@ -4529,7 +4551,7 @@ if (!empty($getlogpodtl)) {
|
||||
id = '';
|
||||
|
||||
});
|
||||
$('#MaterialCode').change(function () {
|
||||
$('#MaterialCode').change(function() {
|
||||
|
||||
var id = $('#MaterialCode').val();
|
||||
$("#CapitalItemName").val('');
|
||||
@ -4543,7 +4565,7 @@ if (!empty($getlogpodtl)) {
|
||||
var Material = <?php echo json_encode($MaterialList, JSON_PRETTY_PRINT) ?>;
|
||||
|
||||
for (i = 0; i < Material.length; i++) {
|
||||
$.each(Material[i], function (idx, obj) {
|
||||
$.each(Material[i], function(idx, obj) {
|
||||
if (obj.MaterialCode === id) {
|
||||
$("#CapitalItemName").val(obj.MaterialName);
|
||||
$("#CPUOM").val(obj.UOM);
|
||||
@ -4555,8 +4577,10 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
$('#RateIn').html('Rate(in' + " " + DisplayCurrencySymbol + '/' + CPUOMDisplay + ')');
|
||||
$('#EditRateIn').html('Rate(in' + " " + DisplayCurrencySymbol + '/' + CPUOMDisplay + ')');
|
||||
if(obj.material_rate != 0){
|
||||
Ratechange();calculateFreight(3);calculateFreightlocaddper();
|
||||
if (obj.material_rate != 0) {
|
||||
Ratechange();
|
||||
calculateFreight(3);
|
||||
calculateFreightlocaddper();
|
||||
}
|
||||
|
||||
|
||||
@ -4575,7 +4599,7 @@ if (!empty($getlogpodtl)) {
|
||||
supplierid: d,
|
||||
materialcode: id
|
||||
},
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
$('#loader').hide();
|
||||
if (response) alert(response);
|
||||
}
|
||||
@ -4588,7 +4612,7 @@ if (!empty($getlogpodtl)) {
|
||||
});
|
||||
|
||||
|
||||
$('#EditMaterialCode').change(function () {
|
||||
$('#EditMaterialCode').change(function() {
|
||||
|
||||
|
||||
var id = $('#EditMaterialCode').val();
|
||||
@ -4603,7 +4627,7 @@ if (!empty($getlogpodtl)) {
|
||||
var Material = <?php echo json_encode($MaterialList, JSON_PRETTY_PRINT) ?>;
|
||||
|
||||
for (i = 0; i < Material.length; i++) {
|
||||
$.each(Material[i], function (idx, obj) {
|
||||
$.each(Material[i], function(idx, obj) {
|
||||
if (obj.MaterialCode === id) {
|
||||
$("#EditItemName").val(obj.MaterialName);
|
||||
$("#EditUOM").val(obj.UOM);
|
||||
@ -4625,7 +4649,7 @@ if (!empty($getlogpodtl)) {
|
||||
supplierid: d,
|
||||
materialcode: id
|
||||
},
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
$('#loader').hide();
|
||||
if (response) alert(response);
|
||||
}
|
||||
@ -5240,7 +5264,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
|
||||
/* This is used add capital po line item */
|
||||
$('.AddCapital').click(function () {
|
||||
$('.AddCapital').click(function() {
|
||||
tinyMCE.triggerSave();
|
||||
|
||||
if (validateCapitalTax() && validateExceedLimit() && ExceedQuantityCheck()) {
|
||||
@ -5402,7 +5426,9 @@ if (!empty($getlogpodtl)) {
|
||||
<button class="save-btn">✔</button>
|
||||
<button class="cancel-btn">✖</button>
|
||||
</div></td>`;
|
||||
}else{ rowHtml += `<td>-</td>`; }
|
||||
} else {
|
||||
rowHtml += `<td>-</td>`;
|
||||
}
|
||||
rowHtml += `<td style="text-align:right !important">${quantity}</td>
|
||||
<td style="text-align:right !important">${uom}</td>
|
||||
<td style="text-align:right !important">${itemRate}</td>
|
||||
@ -5902,7 +5928,7 @@ if (!empty($getlogpodtl)) {
|
||||
var Material = <?php echo json_encode($MaterialList, JSON_PRETTY_PRINT) ?>;
|
||||
|
||||
for (i = 0; i < Material.length; i++) {
|
||||
$.each(Material[i], function (index, value) {
|
||||
$.each(Material[i], function(index, value) {
|
||||
|
||||
|
||||
if (value.MaterialCode == materialCode) {
|
||||
@ -5917,7 +5943,7 @@ if (!empty($getlogpodtl)) {
|
||||
}
|
||||
|
||||
SelectedMaterialCode.splice(SelectedMaterialCode.indexOf('removeItem'), 1);
|
||||
$.each(SelectedMaterialList.Mat, function (i, el) {
|
||||
$.each(SelectedMaterialList.Mat, function(i, el) {
|
||||
|
||||
if (this.materialCode == removeItem) {
|
||||
SelectedMaterialList.Mat.splice(i, 1);
|
||||
@ -5928,7 +5954,7 @@ if (!empty($getlogpodtl)) {
|
||||
var x = <?php echo json_encode($POItem, JSON_PRETTY_PRINT) ?>;
|
||||
|
||||
var result = '0';
|
||||
$.each(x, function (idx, obj) {
|
||||
$.each(x, function(idx, obj) {
|
||||
|
||||
if (obj.LineItemNo === LineItemNo) {
|
||||
result = '1';
|
||||
@ -5968,9 +5994,9 @@ if (!empty($getlogpodtl)) {
|
||||
},
|
||||
type: "POST",
|
||||
url: "<?php echo base_url() ?>purchaseorder/DeletePODetails",
|
||||
success: function (data) {
|
||||
success: function(data) {
|
||||
$('#loader').hide();
|
||||
(data) ? alert(response) : alert("Error");
|
||||
(data) ? alert(response): alert("Error");
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -6191,14 +6217,14 @@ if (!empty($getlogpodtl)) {
|
||||
$('#txtToatlOrder').val((parseFloat(TotalOrderValueSummary)).toFixed(2));
|
||||
|
||||
}
|
||||
$(document).ready(function () {
|
||||
$(document).ready(function() {
|
||||
setTimeout(() => {
|
||||
$('#drpFreight').addClass('form-control');
|
||||
|
||||
}, 1000);
|
||||
/* get Edit Capital Po Modal*/
|
||||
|
||||
$("#EDITCAPITAL").on("shown.bs.modal", function (e) {
|
||||
$("#EDITCAPITAL").on("shown.bs.modal", function(e) {
|
||||
|
||||
|
||||
|
||||
@ -6329,7 +6355,7 @@ if (!empty($getlogpodtl)) {
|
||||
$("#EditMaterialCode").append($('<option></option>').val($('#materialCode' + userid).val()).html($('#materialCode' + userid).val() + "-" + $('#materialName' + userid).val()));
|
||||
|
||||
for (i = 0; i < Material.length; i++) {
|
||||
$.each(Material[i], function (idx, obj) {
|
||||
$.each(Material[i], function(idx, obj) {
|
||||
if (obj.MaterialCode != $('#materialCode' + userid).val()) {
|
||||
$("#EditMaterialCode").append($('<option></option>').val(obj.MaterialCode).html(obj.MaterialCode + "-" + obj.MaterialName));
|
||||
|
||||
@ -6341,7 +6367,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
/* get View Capital Po Modal*/
|
||||
|
||||
$("#VIEWCAPITAL").on("shown.bs.modal", function (e) {
|
||||
$("#VIEWCAPITAL").on("shown.bs.modal", function(e) {
|
||||
|
||||
|
||||
|
||||
@ -6480,7 +6506,7 @@ if (!empty($getlogpodtl)) {
|
||||
});
|
||||
|
||||
/*get edit material list*/
|
||||
$('#EditMaterialCode').change(function () {
|
||||
$('#EditMaterialCode').change(function() {
|
||||
|
||||
var id = $('#EditMaterialCode').val();
|
||||
$("#EditCapitalItemName").val('');
|
||||
@ -6493,7 +6519,7 @@ if (!empty($getlogpodtl)) {
|
||||
var Material = <?php echo json_encode($MaterialList, JSON_PRETTY_PRINT) ?>;
|
||||
|
||||
for (i = 0; i < Material.length; i++) {
|
||||
$.each(Material[i], function (idx, obj) {
|
||||
$.each(Material[i], function(idx, obj) {
|
||||
if (obj.MaterialCode === id) {
|
||||
$("#EditCapitalItemName").val(obj.MaterialName);
|
||||
$("#EditCPUOM").val(obj.UOM);
|
||||
@ -6514,7 +6540,7 @@ if (!empty($getlogpodtl)) {
|
||||
supplierid: d,
|
||||
materialcode: id
|
||||
},
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
$('#loader').hide();
|
||||
if (response) alert(response);
|
||||
}
|
||||
@ -6641,7 +6667,7 @@ if (!empty($getlogpodtl)) {
|
||||
formData.append('POFile', " ");
|
||||
console.error('No file selected.');
|
||||
}
|
||||
$('input, select, textarea').each(function () {
|
||||
$('input, select, textarea').each(function() {
|
||||
var input = $(this);
|
||||
var inputID = input.attr('id'); // Get the ID of the input field
|
||||
|
||||
@ -6655,7 +6681,7 @@ if (!empty($getlogpodtl)) {
|
||||
type: "POST",
|
||||
url: "<?php echo base_url() ?>purchaseorder/EditCapitalPurchaseOrder",
|
||||
|
||||
success: function (data) {
|
||||
success: function(data) {
|
||||
$('#loader').hide();
|
||||
if (data) {
|
||||
// console.log(data);
|
||||
@ -6960,7 +6986,7 @@ if (!empty($getlogpodtl)) {
|
||||
/**
|
||||
* This function is used for Edit Capital
|
||||
*/
|
||||
$('.EditCapital').click(function () {
|
||||
$('.EditCapital').click(function() {
|
||||
|
||||
tinyMCE.triggerSave();
|
||||
if (validateEditCapitalTax() && EditExceedQuantityCheck() && validateEditExceedLimit()) {
|
||||
@ -7173,7 +7199,7 @@ if (!empty($getlogpodtl)) {
|
||||
});
|
||||
|
||||
|
||||
$('.ViewCapital').click(function () {
|
||||
$('.ViewCapital').click(function() {
|
||||
|
||||
var tr = document.getElementById(userid);
|
||||
var cellval = tr.cells;
|
||||
@ -7612,7 +7638,7 @@ if (!empty($getlogpodtl)) {
|
||||
var DisplayCurrencySymbol = '';
|
||||
var ViewCurrencySymbol = '';
|
||||
var currency = <?php echo json_encode($Currency, JSON_PRETTY_PRINT) ?>;
|
||||
$.each(currency, function (idx, obj) {
|
||||
$.each(currency, function(idx, obj) {
|
||||
if (obj.Currency_Code === $("#currencytype").val()) {
|
||||
$("#CurrencySymbol").val(obj.FontCode2000);
|
||||
DisplayCurrencySymbol = obj.FontCode2000;
|
||||
@ -7632,11 +7658,11 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
|
||||
});
|
||||
$('#currencytype').change(function () {
|
||||
$('#currencytype').change(function() {
|
||||
var SelectCurrency = $('#currencytype').val();
|
||||
|
||||
|
||||
$.each(currency, function (idx, obj) {
|
||||
$.each(currency, function(idx, obj) {
|
||||
if (obj.Currency_Code === SelectCurrency) {
|
||||
$("#CurrencySymbol").val(obj.FontCode2000);
|
||||
DisplayCurrencySymbol = obj.FontCode2000;
|
||||
@ -7697,7 +7723,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
}
|
||||
//If others is the payment terms to display mandatory field
|
||||
$("#PaymentMethod").change(function () {
|
||||
$("#PaymentMethod").change(function() {
|
||||
var otherPayment = '<?php echo $otherPayment; ?>';
|
||||
if ($('#PaymentMethod').val().trim() == 'PT08') {
|
||||
$('#otheroptiondiv').show();
|
||||
@ -7708,7 +7734,7 @@ if (!empty($getlogpodtl)) {
|
||||
$('#Otherpayment').val('');
|
||||
}
|
||||
});
|
||||
$("#insuranceStatus").change(function () {
|
||||
$("#insuranceStatus").change(function() {
|
||||
var InsNo = '<?php echo $InsuranceNumber; ?>';
|
||||
|
||||
if ($("#insuranceStatus").val() == "1") {
|
||||
@ -7719,7 +7745,7 @@ if (!empty($getlogpodtl)) {
|
||||
$('#InsuranceNumber').val('');
|
||||
}
|
||||
});
|
||||
$('#drpFreight').change(function () {
|
||||
$('#drpFreight').change(function() {
|
||||
|
||||
var FreightType = $("#drpFreight").val();
|
||||
|
||||
@ -7761,7 +7787,7 @@ if (!empty($getlogpodtl)) {
|
||||
calculateFreight(0);
|
||||
|
||||
});
|
||||
$('#drpEditFreight').change(function () {
|
||||
$('#drpEditFreight').change(function() {
|
||||
var FreightType = $("#drpEditFreight").val();
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
@ -7800,7 +7826,7 @@ if (!empty($getlogpodtl)) {
|
||||
calculateFreight(1);
|
||||
});
|
||||
|
||||
$('#drpViewFreight').change(function () {
|
||||
$('#drpViewFreight').change(function() {
|
||||
var FreightType = $("#drpViewFreight").val();
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
@ -8114,7 +8140,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
/* Capital Discount calcualation */
|
||||
|
||||
$('#DiscountType').change(function () {
|
||||
$('#DiscountType').change(function() {
|
||||
if ($('#CPRate').val() != '') {
|
||||
selValue = $("#DiscountType").val();
|
||||
$('#txtDiscount').val('');
|
||||
@ -8138,7 +8164,7 @@ if (!empty($getlogpodtl)) {
|
||||
Ratechange();
|
||||
|
||||
});
|
||||
$('#EditDiscountType').change(function () {
|
||||
$('#EditDiscountType').change(function() {
|
||||
if ($('#EditCPRate').val() != '') {
|
||||
selValue = $("#EditDiscountType").val();
|
||||
$('#txtEditDiscount').val('');
|
||||
@ -8269,7 +8295,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
var edit = '';
|
||||
|
||||
$('#drpFreightloc').change(function () {
|
||||
$('#drpFreightloc').change(function() {
|
||||
var FreightType = $("#drpFreightloc").val();
|
||||
|
||||
if (FreightType == "PER TRIP") {
|
||||
@ -8327,7 +8353,7 @@ if (!empty($getlogpodtl)) {
|
||||
});
|
||||
|
||||
|
||||
$('#packagingcalmodel').on('hidden.bs.modal', function () {
|
||||
$('#packagingcalmodel').on('hidden.bs.modal', function() {
|
||||
console.log("add form ");
|
||||
|
||||
$('#CAPITAL').modal('show');
|
||||
@ -8417,7 +8443,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
|
||||
|
||||
$('#drpFreighteditloc').change(function () {
|
||||
$('#drpFreighteditloc').change(function() {
|
||||
var FreightType = $("#drpFreighteditloc").val();
|
||||
|
||||
if (FreightType == '<?php echo PERTRIP; ?>') {
|
||||
@ -8556,7 +8582,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
|
||||
|
||||
$('#drpFreightviewloc').change(function () {
|
||||
$('#drpFreightviewloc').change(function() {
|
||||
var FreightType = $("#drpFreightviewloc").val();
|
||||
|
||||
if (FreightType == '<?php echo PERTRIP; ?>') {
|
||||
@ -8687,7 +8713,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
|
||||
|
||||
$('.UpdateViewCapital').click(function () {
|
||||
$('.UpdateViewCapital').click(function() {
|
||||
|
||||
var FreightType = $('#drpFreightviewloc').val();
|
||||
var FreightRate = $('#txtFreightlocview').val();
|
||||
@ -9284,41 +9310,39 @@ if (!empty($getlogpodtl)) {
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$(document).ready(function() {
|
||||
// When the second modal is about to be shown
|
||||
$('#packagingcalmodel').on('show.bs.modal', function () {
|
||||
$('#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);
|
||||
});
|
||||
|
||||
// Reset z-index when the second modal is hidden (optional)
|
||||
$('#packagingcalmodel').on('hidden.bs.modal', function () {
|
||||
$('#packagingcalmodel').on('hidden.bs.modal', function() {
|
||||
$('#packagingcalmodel').css('z-index', ''); // Reset to default
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$(document).ready(function() {
|
||||
// When the second modal is about to be shown
|
||||
$('#editpackagingcalmodel').on('show.bs.modal', function () {
|
||||
$('#editpackagingcalmodel').on('show.bs.modal', function() {
|
||||
// Set a higher z-index for the second modal to appear on top
|
||||
$('#editpackagingcalmodel').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);
|
||||
});
|
||||
|
||||
// Reset z-index when the second modal is hidden (optional)
|
||||
$('#editpackagingcalmodel').on('hidden.bs.modal', function () {
|
||||
$('#editpackagingcalmodel').on('hidden.bs.modal', function() {
|
||||
$('#editpackagingcalmodel').css('z-index', ''); // Reset to default
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
@ -2036,11 +2036,14 @@ if (!empty($getlogpodtl)) {
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<?php if ($parentPO == '') { ?>
|
||||
<h4><?= "Edit Revenue Purchase Order - $PONO "; ?></h4>
|
||||
<?php } else { ?>
|
||||
<h4><?= "Amended Revenue Purchase Order - $PONO "; ?></h4>
|
||||
<?php } ?>
|
||||
<?php
|
||||
if ($PONOStatus != 'ST030') {
|
||||
$title = ($parentPO == '') ? "Edit Revenue Purchase Order - $PONO" : "Amended Revenue Purchase Order - $PONO";
|
||||
} else {
|
||||
$title = "View Amended Revenue Purchase Order - $PONO";
|
||||
}
|
||||
?>
|
||||
<h4><?= $title; ?></h4>
|
||||
<a href="<?php echo base_url() ?>purchaseorderListing" class="btn btn-secondary" id="back"
|
||||
value="Back">Back</a>
|
||||
</div>
|
||||
@ -4381,6 +4384,18 @@ if (!empty($getlogpodtl)) {
|
||||
</section>
|
||||
</div>
|
||||
</script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var PONOStatus = "<?= $PONOStatus ?>";
|
||||
console.log(PONOStatus);
|
||||
|
||||
if (PONOStatus === 'ST030') {
|
||||
$('input, textarea, select').attr('readonly', true);
|
||||
$('input[type="file"], input[type="radio"], input[type="checkbox"]').attr('disabled', true);
|
||||
$("#PaymentTerms,#drpSupplier").prop("disabled", true);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
var index = <?php if (isset($index)) {
|
||||
echo $index;
|
||||
|
||||
@ -348,9 +348,7 @@ if (!empty($getlogpodtl)) {
|
||||
</style>
|
||||
|
||||
<script src="<?php echo base_url() ?>public/assets/tinymce/js/tinymce/tinymce.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/assets/js/CreatePOValidation.js" type="text/javascript">
|
||||
|
||||
</script>
|
||||
<script src="<?php echo base_url(); ?>public/assets/js/CreatePOValidation.js" type="text/javascript"></script>
|
||||
|
||||
|
||||
<script>
|
||||
@ -461,11 +459,14 @@ if (!empty($getlogpodtl)) {
|
||||
<div class="col-12">
|
||||
<!-- start page title -->
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<?php if ($parentPO == '') { ?>
|
||||
<h4><?= "Edit Import Purchase Order - $PONO "; ?></h4>
|
||||
<?php } else { ?>
|
||||
<h4><?= "Amended Import Purchase Order - $PONO "; ?></h4>
|
||||
<?php } ?>
|
||||
<?php
|
||||
if ($PONOStatus != 'ST030') {
|
||||
$title = ($parentPO == '') ? "Edit Import Purchase Order - $PONO" : "Amended Import Purchase Order - $PONO";
|
||||
} else {
|
||||
$title = "View Amended Import Purchase Order - $PONO";
|
||||
}
|
||||
?>
|
||||
<h4><?= $title; ?></h4>
|
||||
<a href="<?php echo base_url() ?>purchaseorderListing" class="btn btn-secondary" id="back" value="Back">Back</a>
|
||||
</div><!-- end page title -->
|
||||
</div><!-- end col-->
|
||||
@ -887,7 +888,10 @@ if (!empty($getlogpodtl)) {
|
||||
<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 'AvlBudAmt'.$index ?>" id="<?php //echo 'AvlBudAmt'.$index ?>" value="<?php //echo $record->AvlBudAmt ; ?>" /> -->
|
||||
<!--<input type="hidden" name="<?php //echo 'AvlBudAmt'.$index
|
||||
?>" id="<?php //echo 'AvlBudAmt'.$index
|
||||
?>" value="<?php //echo $record->AvlBudAmt ;
|
||||
?>" /> -->
|
||||
<input type="hidden" name="<?php echo 'AvlBudAmt' . $index ?>" id="<?php echo 'AvlBudAmt' . $index ?>" value="<?php echo "$AvlAmount"; ?>" />
|
||||
|
||||
<input type="hidden" name="<?php echo 'LineItemNo' . $index ?>" id="<?php echo 'LineItemNo' . $index ?>" value="<?php echo $record->LineItemNo; ?>" />
|
||||
@ -927,8 +931,14 @@ if (!empty($getlogpodtl)) {
|
||||
<input type="hidden" name="<?php echo 'CustomSHCess' . $index ?>" id="<?php echo 'CustomSHCess' . $index ?>" value="<?php echo $record->CustomSHCess; ?>" />
|
||||
<input type="hidden" name="<?php echo 'AfterCustomSHCess' . $index ?>" id="<?php echo 'AfterCustomSHCess' . $index ?>" value="<?php echo $record->AfterCustomSHCess; ?>" />
|
||||
|
||||
<!-- <input type="hidden" name="<?php // echo 'Grossdutypayable' . $index ?>" id="<?php // echo 'Grossdutypayable' . $index ?>" value="<?php // echo $record->Grossdutypayable; ?>" /> -->
|
||||
<!-- <input type="hidden" name="<?php // echo 'QuantityKG' . $index ?>" id="<?php // echo 'QuantityKG' . $index ?>" value="<?php // echo $record->QuantityKG; ?>" />-->
|
||||
<!-- <input type="hidden" name="<?php // echo 'Grossdutypayable' . $index
|
||||
?>" id="<?php // echo 'Grossdutypayable' . $index
|
||||
?>" value="<?php // echo $record->Grossdutypayable;
|
||||
?>" /> -->
|
||||
<!-- <input type="hidden" name="<?php // echo 'QuantityKG' . $index
|
||||
?>" id="<?php // echo 'QuantityKG' . $index
|
||||
?>" value="<?php // echo $record->QuantityKG;
|
||||
?>" />-->
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'BasicPriceInMTon' . $index ?>" id="<?php echo 'BasicPriceInMTonG' . $index ?>" value="<?php echo $record->BasicPriceInMTon; ?>" />
|
||||
@ -938,7 +948,10 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
|
||||
|
||||
<!-- <input type="hidden" name="<?php // echo 'Grossdutypayable' . $index ?>" id="<?php // echo 'Grossdutypayable' . $index ?>" value="<?php // echo $record->Grossdutypayable; ?>" />-->
|
||||
<!-- <input type="hidden" name="<?php // echo 'Grossdutypayable' . $index
|
||||
?>" id="<?php // echo 'Grossdutypayable' . $index
|
||||
?>" value="<?php // echo $record->Grossdutypayable;
|
||||
?>" />-->
|
||||
|
||||
<input type="hidden" name="<?php echo 'BasicINRValue' . $index ?>" id="<?php echo 'BasicINRValue' . $index ?>" value="<?php echo $record->BasicINRValue; ?>" />
|
||||
|
||||
@ -946,10 +959,16 @@ if (!empty($getlogpodtl)) {
|
||||
<input type="hidden" name="<?php echo 'ExchangeRate' . $index ?>" id="<?php echo 'ExchangeRate' . $index ?>" value="<?php echo $record->ExchangeRate; ?>" />
|
||||
|
||||
|
||||
<!-- <input type="hidden" name="<?php // echo 'AfterCustomEDcess' . $index ?>" id="<?php // echo 'AfterCustomEDcess' . $index ?>" value="<?php // echo $record->AfterCustomEdCess; ?>" /> -->
|
||||
<!-- <input type="hidden" name="<?php // echo 'AfterCustomEDcess' . $index
|
||||
?>" id="<?php // echo 'AfterCustomEDcess' . $index
|
||||
?>" value="<?php // echo $record->AfterCustomEdCess;
|
||||
?>" /> -->
|
||||
|
||||
|
||||
<!-- <input type="hidden" name="<?php // echo 'CustomEDcess' . $index ?>" id="<?php // echo 'CustomEDcess' . $index ?>" value="<?php // echo $record->CustomEdCess; ?>" /> -->
|
||||
<!-- <input type="hidden" name="<?php // echo 'CustomEDcess' . $index
|
||||
?>" id="<?php // echo 'CustomEDcess' . $index
|
||||
?>" value="<?php // echo $record->CustomEdCess;
|
||||
?>" /> -->
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'FreightType' . $index ?>" id="<?php echo 'FreightType' . $index ?>" value="<?php echo $record->FreightType; ?>" />
|
||||
@ -964,7 +983,10 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
<input type="hidden" name="<?php echo 'Addinstruction' . $index ?>" id="<?php echo 'Addinstruction' . $index ?>" value="<?php echo $record->ServiceMaterialDescription; ?>" />
|
||||
|
||||
<!-- <input type="hidden" name="<?php // echo 'AfterFreightValue' . $index ?>" id="<?php // echo 'AfterFreightValue' . $index ?>" value="<?php // echo $record->AfterFreightValue; ?>" /> -->
|
||||
<!-- <input type="hidden" name="<?php // echo 'AfterFreightValue' . $index
|
||||
?>" id="<?php // echo 'AfterFreightValue' . $index
|
||||
?>" value="<?php // echo $record->AfterFreightValue;
|
||||
?>" /> -->
|
||||
|
||||
|
||||
<input type="hidden" name="<?php echo 'AssessableValue' . $index ?>" id="<?php echo 'AssessableValue' . $index ?>" value="<?php echo $record->AssessableValue; ?>" />
|
||||
@ -989,10 +1011,14 @@ if (!empty($getlogpodtl)) {
|
||||
<?php
|
||||
|
||||
if ($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED || $PONOStatus == REQITEM_Emergency_PO_CREATED || $PONOStatus == PO_APPROVED) { ?>
|
||||
<td> <a data-target='#editimportpomodel' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#editimportpomodel"><i class="ri-pencil-fill" data-toggle="tooltip"></i> </a> <a href='#' onclick="DeleteRow(<?php echo $index; ?>)" class="link" data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" id="Del"><span class="ri-delete-bin-7-fill"></span></a>
|
||||
<td> <a data-target='#editimportpomodel' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#editimportpomodel"><i class="ri-pencil-fill" data-toggle="tooltip"></i> </a>
|
||||
<a href='#' onclick="DeleteRow(<?php echo $index; ?>)" class="link" data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" id="Del"><span class="ri-delete-bin-7-fill"></span></a>
|
||||
</td>
|
||||
<?php
|
||||
} else { ?>
|
||||
<td> <a data-target='#viewimportmodal' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#viewimportmodal"><i class="fa fa-eye" data-toggle="tooltip" title="Click here to view the <?php echo $record->ReqNo; ?>Click here to view Requisition details"></i> </a> </td>
|
||||
<!-- <td> <a data-target='#viewimportmodal' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#viewimportmodal"><i class="fa fa-eye" data-toggle="tooltip" title="Click here to view the <?php echo $record->ReqNo; ?> Requisition details"></i></a> </td> -->
|
||||
<td> <a data-target='#viewimportmodal' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#viewimportmodal"><i class=" ri-eye-fill" data-toggle="tooltip"></i> </a>
|
||||
</td>
|
||||
<?php
|
||||
} ?>
|
||||
</tr> <?php
|
||||
@ -1318,15 +1344,12 @@ if (!empty($getlogpodtl)) {
|
||||
<?php } ?>
|
||||
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)"> <span class="bold">Submit</span></a>
|
||||
<a class="btn btn btn-soft-primary waves-effect waves-light Submit" ID="Submit" onclick="Save(4)"> <span class="bold">Approve</span></a>
|
||||
<!-- <input type="reset" class="btn btn-success" value="Reset"> -->
|
||||
<?php } else if($PONOStatus == PO_AMENDED){ ?>
|
||||
<a class="btn btn-success" ID="OK" onclick="PageRedirect()">OK</a>
|
||||
<?php } else { ?>
|
||||
|
||||
|
||||
<?php if ($DEPCode == FINANCE) { ?>
|
||||
<a class="btn btn-success" ID="OK" onclick="PageRedirect()">OK</a>
|
||||
|
||||
<?php } else { ?>
|
||||
<!-- <input type="reset" class="btn btn-success" value = "OK"> -->
|
||||
<a class="btn btn-success Submit" ID="Submit" onclick="Save(2)"> <span class="bold">Submit</span></a>
|
||||
<a class="btn btn btn-soft-primary waves-effect waves-light Submit" ID="Submit" onclick="Save(4)"> <span class="bold">Approve</span></a>
|
||||
<a class="btn btn-success" href="<?php echo base_url(); ?>purchaseorderListing">OK</a>
|
||||
@ -2996,13 +3019,25 @@ if (!empty($getlogpodtl)) {
|
||||
<!-- <a class="btn btn-success font UpdateImport" ID="UpdateImport"> <span class="bold">Update</span></a> -->
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div><!-- /. modal-content -->
|
||||
</div>
|
||||
</div><!-- /.modal -->
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var PONOStatus = "<?= $PONOStatus ?>";
|
||||
console.log(PONOStatus);
|
||||
|
||||
if (PONOStatus === 'ST030') {
|
||||
$('input, textarea, select').attr('readonly', true);
|
||||
$('input[type="file"], input[type="radio"], input[type="checkbox"]').attr('disabled', true);
|
||||
$("#drpSupplier,#currencytype,#PaymentTerms").prop("disabled", true);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#Date').click(function() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user