po reopened issues solved
This commit is contained in:
parent
a8ccd0137f
commit
b2b6e788b2
@ -1631,6 +1631,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
</div>
|
||||
<?php } ?>
|
||||
<input type="hidden" id="PrePOFile" name="PrePOFile" value="<?php echo $PrePOFile; ?>" /><br>
|
||||
</div>
|
||||
</div>
|
||||
<div class="px-6"> </div>
|
||||
|
||||
@ -7424,7 +7424,6 @@ if (!empty($INRSYMBOL)) {
|
||||
}
|
||||
});
|
||||
console.log("Data before AJAX call:", Object.fromEntries(formData));
|
||||
return;
|
||||
|
||||
// Perform form validation
|
||||
if (validate()) {
|
||||
|
||||
@ -977,31 +977,40 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
<br>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group">
|
||||
<label>Select Purchase Order File</label><br>
|
||||
<input type="file" name="POFile" id="POFile"><br>
|
||||
</div>
|
||||
</div><!-- form-row PO file -->
|
||||
<!-- f i l e c h o o s e n -->
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<label>Select Purchase Order File</label><br>
|
||||
<input type="file" name="POFile" id="POFile"><br>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /. f i l e c h o o s e n -->
|
||||
<!-- h i d d e n f i e l d s -->
|
||||
<div class= "col-md-12">
|
||||
<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" />
|
||||
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
|
||||
<input type="hidden" name="Budget" id="Budget" />
|
||||
<!--<input type="hidden" name="CapitalToatlOrder" id="CapitalToatlOrder" /> -->
|
||||
</div>
|
||||
<!--/.h i d d e n f i e l d s -->
|
||||
<!-- f o o t e r b u t t o n -->
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<!-- <a class="btn btn-secondary Save" ID="Cancel" onclick="Reset();"> <span class="bold">Cancel</span></a> -->
|
||||
<a class="btn btn-secondary Save" ID="Cancel" href="<?php echo base_url() . 'purchaseorderListing'; ?>"> <span class="bold">Cancel</span></a>
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(0)"> <span class="bold">Save as Draft</span></a>
|
||||
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)"> <span class="bold">Submit</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--/. f o o t e r b u t t o n -->
|
||||
|
||||
<div align="right" style="padding:1% 0%;">
|
||||
|
||||
|
||||
<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" />
|
||||
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
|
||||
<input type="hidden" name="Budget" id="Budget" />
|
||||
<!--<input type="hidden" name="CapitalToatlOrder" id="CapitalToatlOrder" /> -->
|
||||
|
||||
|
||||
<!-- <a class="btn btn-secondary Save" ID="Cancel" onclick="Reset();"> <span class="bold">Cancel</span></a> -->
|
||||
<a class="btn btn-secondary Save" ID="Cancel" href="<?php echo base_url() . 'purchaseorderListing'; ?>"> <span class="bold">Cancel</span></a>
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(0)"> <span class="bold">Save as Draft</span></a>
|
||||
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)"> <span class="bold">Submit</span></a>
|
||||
|
||||
</div><!-- hiden and button -->
|
||||
<br />
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
@ -4504,6 +4513,7 @@ if (!empty($INRSYMBOL)) {
|
||||
var formData = new FormData($('.CapitalPO')[0]);
|
||||
formData.append('ExchangeRateOn', ExchangeRateOn);
|
||||
formData.append('PaymentMethod', PaymentMethod);
|
||||
// console.log("Data before AJAX call:", Object.fromEntries(formData));
|
||||
$('#loader').show();
|
||||
// disableButtons();
|
||||
$.ajax({
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
$CapitalRange
|
||||
.edit-input-field {
|
||||
padding: 2px;
|
||||
font-size: 14px;
|
||||
@ -1663,96 +1662,86 @@ if (!empty($POItem) && $CapitalRange == '1') {
|
||||
</div>
|
||||
</div><!-- /.Special Instructions section -->
|
||||
|
||||
<!-- Start po file changes as per edit page -->
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12">
|
||||
<label>Select Purchase Order File</label><br>
|
||||
<input type="file" name="POFile" id="POFile">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($PrePOFile)) {
|
||||
$PrePOFilePath = FCPATH . 'public/uploads/POfiles/' . $PrePOFile;
|
||||
if (file_exists($PrePOFilePath)) { ?>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12" id="deletePreviousPurchaseOrderFileDiv" align="left">
|
||||
<br />
|
||||
|
||||
<label><a title="Previous Upload PO File"
|
||||
<!-- f i l e c h o o s e n -->
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<label>Select Purchase Order File</label><br>
|
||||
<input type="file" name="POFile" id="POFile">
|
||||
</div>
|
||||
<?php if ($PrePOFile) {
|
||||
$PrePOFilePath = FCPATH . 'public/uploads/POfiles/' . $PrePOFile;
|
||||
if (file_exists($PrePOFilePath)) {
|
||||
?>
|
||||
<div class="col-md-12" id="deletePreviousPurchaseOrderFileDiv">
|
||||
<label><a title="Previous Upload PO File"
|
||||
href="<?php echo base_url() . 'public/uploads/POfiles/' . $PrePOFile ?>">
|
||||
<span>Previous Upload - </span>
|
||||
<small><?= $PrePOFile; ?></small></a></label>
|
||||
|
||||
<button class="btn btn-danger btn-sm " id="deletePreviousPurchaseOrderFile">Delete</button>
|
||||
|
||||
<input type="hidden" id="PrePOFile" name="PrePOFile"
|
||||
value="<?php echo $PrePOFile; ?>" /><br>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-danger btn-sm " id="deletePreviousPurchaseOrderFile"><i class="mdi mdi-close"></i></button>
|
||||
|
||||
</div>
|
||||
<?php }} ?>
|
||||
<input type="hidden" id="PrePOFile" name="PrePOFile" value="<?php echo $PrePOFile; ?>" /><br>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
<!-- /.file section -->
|
||||
|
||||
<!-- for button -->
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12" align="right"><br>
|
||||
<div class="btn-container" style="text-align: right;">
|
||||
<div class="px-6"> </div>
|
||||
<!-- /. f i l e c h o o s e n -->
|
||||
|
||||
<br/>
|
||||
<!-- h i d d e n f i e l d s -->
|
||||
<div class= "col-md-12">
|
||||
<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="txtDeletedRow" id="txtDeletedRow" />
|
||||
</div>
|
||||
<!--/.h i d d e n f i e l d s -->
|
||||
<!-- f o o t e r b u t t o n -->
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-5 text-left">
|
||||
<?php $UpdatedOn = new DateTime($UpdatedOn, new DateTimeZone('Asia/Kolkata'));
|
||||
$UpdatedOn = $UpdatedOn->format('d-m-Y'); ?>
|
||||
<label>Request On :</label><?php echo $UpdatedOn; ?><br />
|
||||
<?php if ($RequesterName != '' || $RequesterName != null) { ?>
|
||||
<label>Request By : </label><?php echo $RequesterName; ?><br />
|
||||
<?php } ?>
|
||||
<!-- <label>Status :</label><?php echo $PoStatusName; ?> -->
|
||||
<label>Status : </label><?php
|
||||
$statusMappings = [
|
||||
'PO APPROVED' => 'AWAITING APPROVE',
|
||||
'AWAITING RELEASE' => 'AWAITING APPROVE',
|
||||
'RELEASER ONHOLD' => 'APPROVER ONHOLD',
|
||||
'PO RELEASED' => 'PO APPROVED',
|
||||
];
|
||||
|
||||
if (isset($PoStatusName) && !empty($PoStatusName)) {
|
||||
if (isset($statusMappings[$PoStatusName])) {
|
||||
echo $statusMappings[$PoStatusName];
|
||||
} else {
|
||||
echo $PoStatusName;
|
||||
}
|
||||
} else {
|
||||
echo "Status not provided";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<input type="button" class="btn btn-secondary" value="Cancel"
|
||||
onClick="window.location ='amendmentpurchaseorder';">
|
||||
<a class="btn btn-success Save" onclick="Save(0)"> <span
|
||||
class="bold">Save as Draft</span></a>
|
||||
<a class="btn btn-success Save" ID="Submit" onclick="Save(1)"> <span
|
||||
class="bold">Approve</span></a>
|
||||
<div class="col-md-7 text-right">
|
||||
<input type="button" class="btn btn-secondary" value="Cancel"
|
||||
onClick="window.location ='amendmentpurchaseorder';">
|
||||
<a class="btn btn-success Save" onclick="Save(0)"> <span
|
||||
class="bold">Save as Draft</span></a>
|
||||
<a class="btn btn-success Save" ID="Submit" onclick="Save(1)"> <span
|
||||
class="bold">Approve</span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.button section -->
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12">
|
||||
<?php $UpdatedOn = new DateTime($UpdatedOn, new DateTimeZone('Asia/Kolkata'));
|
||||
$UpdatedOn = $UpdatedOn->format('d-m-Y'); ?>
|
||||
<label>Request On :</label><?php echo $UpdatedOn; ?><br />
|
||||
<?php if ($RequesterName != '' || $RequesterName != null) { ?>
|
||||
<label>Request By : </label><?php echo $RequesterName; ?><br />
|
||||
<?php } ?>
|
||||
<!-- <label>Status :</label><?php echo $PoStatusName; ?> -->
|
||||
<label>Status : </label><?php
|
||||
$statusMappings = [
|
||||
'PO APPROVED' => 'AWAITING APPROVE',
|
||||
'AWAITING RELEASE' => 'AWAITING APPROVE',
|
||||
'RELEASER ONHOLD' => 'APPROVER ONHOLD',
|
||||
'PO RELEASED' => 'PO APPROVED',
|
||||
];
|
||||
|
||||
if (isset($PoStatusName) && !empty($PoStatusName)) {
|
||||
if (isset($statusMappings[$PoStatusName])) {
|
||||
echo $statusMappings[$PoStatusName];
|
||||
} else {
|
||||
echo $PoStatusName;
|
||||
}
|
||||
} else {
|
||||
echo "Status not provided";
|
||||
}
|
||||
?>
|
||||
<br />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.Status details section -->
|
||||
</div>
|
||||
<!--/. f o o t e r b u t t o n -->
|
||||
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1657,11 +1657,37 @@ if (!empty($INRSYMBOL)) {
|
||||
<?php } ?>
|
||||
<!-- ends here -->
|
||||
|
||||
<!-- for Button -->
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12" align="right"><br />
|
||||
<div class="btn-container" style="text-align: right;">
|
||||
<!-- f i l e c h o o s e n -->
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<label>Select Purchase Order File</label><br>
|
||||
<input type="file" name="POFile" id="POFile">
|
||||
</div>
|
||||
<?php if ($PrePOFile) {
|
||||
$PrePOFilePath = FCPATH . 'public/uploads/POfiles/' . $PrePOFile;
|
||||
if (file_exists($PrePOFilePath)) {
|
||||
?>
|
||||
<div class="col-md-12">
|
||||
<label><a title="Previous Upload PO File"
|
||||
href="<?php echo base_url() . 'public/uploads/POfiles/' . $PrePOFile ?>">
|
||||
<span>Previous Upload - </span>
|
||||
<small><?= $PrePOFile; ?></small></a></label>
|
||||
|
||||
<button class="btn btn-danger btn-sm " id="deletePreviousPurchaseOrderFile"><i class="mdi mdi-close"></i></button>
|
||||
|
||||
<input type="hidden" id="PrePOFile" name="PrePOFile" value="<?php echo $PrePOFile; ?>" /><br>
|
||||
|
||||
</div>
|
||||
<?php }} ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="px-6"> </div>
|
||||
<!-- /. f i l e c h o o s e n -->
|
||||
|
||||
<br/>
|
||||
<!-- h i d d e n f i e l d s -->
|
||||
<div class= "col-md-12">
|
||||
<input type="hidden" name="txtPoRange" id="txtPoRange" />
|
||||
<input type="hidden" name="isEdit" id="isEdit" value="0" />
|
||||
<input type="hidden" name="txtStatus" id="txtStatus" />
|
||||
@ -1670,51 +1696,50 @@ if (!empty($INRSYMBOL)) {
|
||||
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
|
||||
<input type="hidden" name="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>" />
|
||||
<input type="hidden" name="Budget" id="Budget" value="<?php echo $BudgetType; ?>" />
|
||||
|
||||
<input type="button" class="btn btn-secondary" value="Cancel"
|
||||
onClick="window.location ='amendmentpurchaseorder';">
|
||||
<a class="btn btn-success Save" onclick="Save(0)"> <span
|
||||
class="bold">Save as 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>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ends button -->
|
||||
<!--/.h i d d e n f i e l d s -->
|
||||
<!-- f o o t e r b u t t o n -->
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-5 text-left">
|
||||
<?php $Reqon = new DateTime($Reqon, new DateTimeZone('Asia/Kolkata'));
|
||||
$Reqon = $Reqon->format('d-m-Y'); ?>
|
||||
<label>Request On :</label><?php echo $Reqon; ?><br>
|
||||
<?php if ($RequesterName != '' || $RequesterName != null) { ?>
|
||||
<label>Request By : </label><?php echo $RequesterName; ?><br />
|
||||
<?php } ?>
|
||||
<label>Status : </label><?php
|
||||
$statusMappings = [
|
||||
'PO APPROVED' => 'AWAITING APPROVE',
|
||||
'AWAITING RELEASE' => 'AWAITING APPROVE',
|
||||
'RELEASER ONHOLD' => 'APPROVER ONHOLD',
|
||||
'PO RELEASED' => 'PO APPROVED',
|
||||
];
|
||||
|
||||
<!-- for Status details -->
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12">
|
||||
<?php $Reqon = new DateTime($Reqon, new DateTimeZone('Asia/Kolkata'));
|
||||
$Reqon = $Reqon->format('d-m-Y'); ?>
|
||||
<label>Request On :</label><?php echo $Reqon; ?><br>
|
||||
<?php if ($RequesterName != '' || $RequesterName != null) { ?>
|
||||
<label>Request By : </label><?php echo $RequesterName; ?><br />
|
||||
<?php } ?>
|
||||
<label>Status : </label><?php
|
||||
$statusMappings = [
|
||||
'PO APPROVED' => 'AWAITING APPROVE',
|
||||
'AWAITING RELEASE' => 'AWAITING APPROVE',
|
||||
'RELEASER ONHOLD' => 'APPROVER ONHOLD',
|
||||
'PO RELEASED' => 'PO APPROVED',
|
||||
];
|
||||
if (isset($POStatus) && !empty($POStatus)) {
|
||||
if (isset($statusMappings[$POStatus])) {
|
||||
echo $statusMappings[$POStatus];
|
||||
} else {
|
||||
echo $POStatus;
|
||||
}
|
||||
} else {
|
||||
echo "Status not provided";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
if (isset($POStatus) && !empty($POStatus)) {
|
||||
if (isset($statusMappings[$POStatus])) {
|
||||
echo $statusMappings[$POStatus];
|
||||
} else {
|
||||
echo $POStatus;
|
||||
}
|
||||
} else {
|
||||
echo "Status not provided";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ends Status -->
|
||||
<div class="col-md-7 text-right">
|
||||
<input type="button" class="btn btn-secondary" value="Cancel"
|
||||
onClick="window.location ='amendmentpurchaseorder';">
|
||||
<a class="btn btn-success Save" onclick="Save(0)"> <span
|
||||
class="bold">Save as Draft</span></a>
|
||||
<a class="btn btn-success Save" ID="Submit" onclick="Save(1)"> <span
|
||||
class="bold">Approve</span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--/. f o o t e r b u t t o n -->
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
|
||||
@ -2898,21 +2898,17 @@ if (!empty($getlogpodtl)) {
|
||||
<?php } else {
|
||||
} ?>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12">
|
||||
<label>Select Purchase Order File</label><br>
|
||||
<input type="file" name="POFile" id="POFile">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($PrePOFile)) {
|
||||
$PrePOFilePath = FCPATH . 'public/uploads/POfiles/' . $PrePOFile;
|
||||
if (file_exists($PrePOFilePath)) { ?>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12" id="deletePreviousPurchaseOrderFileDiv" align="left">
|
||||
<br />
|
||||
|
||||
<!-- f i l e c h o o s e n -->
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<label>Select Purchase Order File</label><br>
|
||||
<input type="file" name="POFile" id="POFile">
|
||||
</div>
|
||||
<?php if ($PrePOFile) { ?>
|
||||
<div class="col-md-12" id="deletePreviousPurchaseOrderFileDiv">
|
||||
<label><a title="Previous Upload PO File"
|
||||
href="<?php echo base_url() . 'public/uploads/POfiles/' . $PrePOFile ?>">
|
||||
<span>Previous Upload - </span>
|
||||
@ -2920,93 +2916,83 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
<button class="btn btn-danger btn-sm " id="deletePreviousPurchaseOrderFile">Delete</button>
|
||||
|
||||
<input type="hidden" id="PrePOFile" name="PrePOFile"
|
||||
value="<?php echo $PrePOFile; ?>" /><br>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<input type="hidden" id="PrePOFile" name="PrePOFile" value="<?php echo $PrePOFile; ?>" /><br>
|
||||
</div>
|
||||
</div>
|
||||
<div class="px-6"> </div>
|
||||
<!-- /. f i l e c h o o s e n -->
|
||||
|
||||
<br/>
|
||||
<!-- h i d d e n f i e l d s -->
|
||||
<div class= "col-md-12">
|
||||
<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 if (isset($index)) {
|
||||
echo $index;
|
||||
} ?>">
|
||||
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
|
||||
<input type="hidden" name="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>" />
|
||||
<input type="hidden" name="txttaxcheck" id="txttaxcheck" value="" />
|
||||
<input type="hidden" name="Budget" id="Budget" value="<?php echo $BudgetType; ?>" />
|
||||
</div>
|
||||
<!--/.h i d d e n f i e l d s -->
|
||||
<!-- f o o t e r b u t t o n -->
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-5 text-left">
|
||||
<label>Request On : </label><?php echo $Reqon; ?><br />
|
||||
<?php if ($RequesterName != '' || $RequesterName != null) { ?>
|
||||
<label>Request By : </label><?php echo $RequesterName; ?><br />
|
||||
<?php } ?>
|
||||
<label>Status : </label><?php
|
||||
$statusMappings = [
|
||||
'PO APPROVED' => 'AWAITING APPROVE',
|
||||
'AWAITING RELEASE' => 'AWAITING APPROVE',
|
||||
'RELEASER ONHOLD' => 'APPROVER ONHOLD',
|
||||
'PO RELEASED' => 'PO APPROVED',
|
||||
];
|
||||
|
||||
if (isset($StatusName) && !empty($StatusName)) {
|
||||
if (isset($statusMappings[$StatusName])) {
|
||||
echo $statusMappings[$StatusName];
|
||||
} else {
|
||||
echo $StatusName;
|
||||
}
|
||||
} else {
|
||||
echo "Status not provided";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="col-md-7 text-right">
|
||||
<?php if ($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED || $PONOStatus == REQITEM_Emergency_PO_CREATED) { ?>
|
||||
<a class="btn btn-secondary Save" ID="Cancel"
|
||||
href="<?php echo base_url() . 'purchaseorderListing'; ?>"> <span
|
||||
class="bold">Cancel</span></a>
|
||||
<?php if ($PONOStatus == PO_DRAFT) { ?>
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(0)"> <span
|
||||
class="bold">Save as Draft</span></a>
|
||||
<?php } ?>
|
||||
<a class="btn btn-success Save" ID="Submit" onclick="Save(1)"> <span
|
||||
class="bold">Submit</span></a>
|
||||
<a class="btn btn-success Save" ID="Submit"
|
||||
onclick="Save(4)"> <span class="bold">Approve</span></a>
|
||||
<?php } else if ($PONOStatus == SPECIAL_PO) { ?>
|
||||
<a class="btn btn-success" ID="Viewsave" onclick="Save(2)"> <span
|
||||
class="bold">Submit</span></a>
|
||||
<?php } else { ?>
|
||||
<a class="btn btn-success" ID="OK"
|
||||
href="<?php echo base_url() . 'purchaseorderListing'; ?>"> <span
|
||||
class="bold">OK</span></a>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12" align="left"><br />
|
||||
<div>
|
||||
|
||||
|
||||
</div>
|
||||
<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 if (isset($index)) {
|
||||
echo $index;
|
||||
} ?>">
|
||||
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
|
||||
<input type="hidden" name="txtPONO" id="txtPONO" value="<?php echo $PONO; ?>" />
|
||||
<input type="hidden" name="txttaxcheck" id="txttaxcheck" value="" />
|
||||
<input type="hidden" name="Budget" id="Budget" value="<?php echo $BudgetType; ?>" />
|
||||
<div class="btn-container" style="text-align: right;">
|
||||
<?php if ($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED || $PONOStatus == REQITEM_Emergency_PO_CREATED) { ?>
|
||||
<a class="btn btn-secondary Save" ID="Cancel"
|
||||
href="<?php echo base_url() . 'purchaseorderListing'; ?>"> <span
|
||||
class="bold">Cancel</span></a>
|
||||
<?php if ($PONOStatus == PO_DRAFT) { ?>
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(0)"> <span
|
||||
class="bold">Save as Draft</span></a>
|
||||
<?php } ?>
|
||||
<a class="btn btn-success Save" ID="Submit" onclick="Save(1)"> <span
|
||||
class="bold">Submit</span></a>
|
||||
<a class="btn btn-success Save" ID="Submit"
|
||||
onclick="Save(4)"> <span class="bold">Approve</span></a>
|
||||
<?php } else if ($PONOStatus == SPECIAL_PO) { ?>
|
||||
<a class="btn btn-success" ID="Viewsave" onclick="Save(2)"> <span
|
||||
class="bold">Submit</span></a>
|
||||
<?php } else { ?>
|
||||
<a class="btn btn-success" ID="OK"
|
||||
href="<?php echo base_url() . 'purchaseorderListing'; ?>"> <span
|
||||
class="bold">OK</span></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div><br />
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12">
|
||||
|
||||
<label>Request On : </label><?php echo $Reqon; ?><br />
|
||||
<?php if ($RequesterName != '' || $RequesterName != null) { ?>
|
||||
<label>Request By : </label><?php echo $RequesterName; ?><br />
|
||||
<?php } ?>
|
||||
<label>Status : </label><?php
|
||||
$statusMappings = [
|
||||
'PO APPROVED' => 'AWAITING APPROVE',
|
||||
'AWAITING RELEASE' => 'AWAITING APPROVE',
|
||||
'RELEASER ONHOLD' => 'APPROVER ONHOLD',
|
||||
'PO RELEASED' => 'PO APPROVED',
|
||||
];
|
||||
|
||||
if (isset($StatusName) && !empty($StatusName)) {
|
||||
if (isset($statusMappings[$StatusName])) {
|
||||
echo $statusMappings[$StatusName];
|
||||
} else {
|
||||
echo $StatusName;
|
||||
}
|
||||
} else {
|
||||
echo "Status not provided";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<!--/. f o o t e r b u t t o n -->
|
||||
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
|
||||
@ -1355,7 +1355,7 @@ foreach ($PaymentTerms as $TER) {
|
||||
|
||||
<!-- ends here -->
|
||||
<!-- f i l e c h o o s e n -->
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<label>Select Purchase Order File</label><br>
|
||||
@ -1372,13 +1372,12 @@ foreach ($PaymentTerms as $TER) {
|
||||
<small><?= $PrePOFile; ?></small></a></label>
|
||||
|
||||
<button class="btn btn-danger btn-sm " id="deletePreviousPurchaseOrderFile"><i class="mdi mdi-close"></i></button>
|
||||
|
||||
<input type="hidden" id="PrePOFile" name="PrePOFile" value="<?php echo $PrePOFile; ?>" /><br>
|
||||
|
||||
</div>
|
||||
<?php }} ?>
|
||||
<input type="hidden" id="PrePOFile" name="PrePOFile" value="<?php echo $PrePOFile; ?>" /><br>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="px-6"> </div>
|
||||
<!-- /. f i l e c h o o s e n -->
|
||||
|
||||
@ -1422,12 +1421,9 @@ foreach ($PaymentTerms as $TER) {
|
||||
<input class="btn btn-secondary" type="button" class="btn btn-success mr-2 " value="Cancel" onClick="window.location ='amendmentpurchaseorder';">
|
||||
<a class="btn btn-success Save" onclick="Save(0)" > <span class="bold">Save as Draft</span></a>
|
||||
<a class="btn btn-success Save " ID="Submit" onclick="Save(1)"> <span class="bold">Approve</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!--/. f o o t e r b u t t o n -->
|
||||
</div>
|
||||
|
||||
@ -2291,35 +2291,38 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
|
||||
|
||||
<label>Select Purchase Order File</label>
|
||||
<div class="form-row">
|
||||
|
||||
<div class="form-group col-md-12">
|
||||
|
||||
<input type="file" name="POFile" id="POFile"><br>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12">
|
||||
<div align="right" style="padding-right:10px">
|
||||
|
||||
<!-- f i l e c h o o s e n -->
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<label>Select Purchase Order File</label><br>
|
||||
<input type="file" name="POFile" id="POFile"><br>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /. f i l e c h o o s e n -->
|
||||
<!-- h i d d e n f i e l d s -->
|
||||
<div class= "col-md-12">
|
||||
<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" />
|
||||
<input type="hidden" name="txtDeletedRow" id="txtDeletedRow" />
|
||||
<input type="hidden" name="Budget" id="Budget" />
|
||||
<div class="btn-container" style="text-align: right;">
|
||||
<a class="btn btn-secondary Save" ID="Cancel" onclick="Reset();"> <span class="bold">Cancel</span></a>
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(0)"> <span class="bold">Save as Draft</span></a>
|
||||
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)"> <span class="bold">Submit</span></a>
|
||||
</div>
|
||||
<!--/.h i d d e n f i e l d s -->
|
||||
<!-- f o o t e r b u t t o n -->
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
<a class="btn btn-secondary Save" ID="Cancel" onclick="Reset();"> <span class="bold">Cancel</span></a>
|
||||
<a class="btn btn-success Save" ID="Save" onclick="Save(0)"> <span class="bold">Save as Draft</span></a>
|
||||
<a class="btn btn-success Submit" ID="Submit" onclick="Save(1)"> <span class="bold">Submit</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><br />
|
||||
</div>
|
||||
<!--/. f o o t e r b u t t o n -->
|
||||
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user