Gas stock details changes-7 vadivel J 28-11-2024

This commit is contained in:
vadivelJ96 2024-11-29 16:56:25 +05:30
parent 369446b2c6
commit c858617245
6 changed files with 7027 additions and 6739 deletions

View File

@ -337,13 +337,10 @@ class Amendmentpurchaseorder extends BaseController
// die;
$LastPO = $this->purchaseorder_model->addAmendPOMaster($POMaster, $updatedBy, $PONO);
if(!empty($LastPO)){
if (count($LastPO) > 0) {
$NewPO = $LastPO[0]['PONO'];
}
}else{
$NewPO = "";
}
if( $changeStatus == "ST026" || $changeStatus == "ST014"){
@ -1026,6 +1023,7 @@ class Amendmentpurchaseorder extends BaseController
$LastPO = $this->purchaseorder_model->addAmendPOMaster($POMaster, $CreateBy, $PONO);
$NewPO ='';
if (count($LastPO) > 0) {
$NewPO = $LastPO[0]['PONO'];
}
@ -1418,8 +1416,8 @@ class Amendmentpurchaseorder extends BaseController
$POMaster['POFile'] = $PrePOFile ? $PrePOFile : null;
}
$LastPO = $this->purchaseorder_model->addAmendPOMaster($POMaster, $CreateBy, $PONO);
$NewPO = '';
$NewPO = '';
if (count($LastPO) > 0) {
$NewPO = $LastPO[0]['PONO'];
}

View File

@ -36,14 +36,12 @@ if (!empty($INRSYMBOL)) {
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/3.3.4/jquery.inputmask.bundle.min.js"></script>
<style>
/* Custom width for the modal */
.modal-dialog {
width: 100%; /* You can adjust this percentage to your needs */
max-width: 1200px; /* Optional: This ensures the modal doesn't grow too large on large screens */
width: 100%;
/* You can adjust this percentage to your needs */
max-width: 1200px;
/* Optional: This ensures the modal doesn't grow too large on large screens */
}
/* Ensure content inside the modal scales properly */
@ -51,7 +49,9 @@ if (!empty($INRSYMBOL)) {
width: 100%;
}
.modal { overflow: auto !important; }
.modal {
overflow: auto !important;
}
.txtSpcialInstruction {
@ -2653,10 +2653,16 @@ if (!empty($INRSYMBOL)) {
$poDt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
$formattedDate = $poDt->format('Y-m-d');
$data = array('type' => 'date', 'name' => 'PODate',
'value' => set_value('PODate',$formattedDate), 'min' => $formattedDate,
'id' => 'PODate', 'class' => 'form-control', 'required' => 'true',
'onkeypress' => 'return false;');
$data = array(
'type' => 'date',
'name' => 'PODate',
'value' => set_value('PODate', $formattedDate),
'min' => $formattedDate,
'id' => 'PODate',
'class' => 'form-control',
'required' => 'true',
'onkeypress' => 'return false;'
);
echo form_input($data);
?>
</div>
@ -2818,7 +2824,8 @@ if (!empty($INRSYMBOL)) {
<table class="table table-bordered ">
<div class="box-body">
<table id="serviceTax" class="table table-bordered table-hover" style="background-color:#fff;">
<table id="serviceTax" class="table table-bordered table-hover"
style="background-color:#fff;">
<thead>
<tr>
<th>SNo</th>
@ -3114,8 +3121,8 @@ if (!empty($INRSYMBOL)) {
<!-- Model for revenue PO -->
<div align="center">
<div id="REVENUE" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div id="REVENUE" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<!-- Modal content-->
<form>
@ -3124,7 +3131,8 @@ if (!empty($INRSYMBOL)) {
<center>
<h4>Select Revenue Purchase Order Line Item </h4>
</center>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<button type="button" class="close" data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
@ -3133,7 +3141,8 @@ if (!empty($INRSYMBOL)) {
<div class="row">
<div class="col-md-3">
<label>Item Code<span class="badge mandatory">*</span></label>
<label>Item Code<span
class="badge mandatory">*</span></label>
<div>
<?php
$options = array("0" => 'Item Code');
@ -3161,7 +3170,8 @@ if (!empty($INRSYMBOL)) {
</div>
</div>
<div class="col-md-3">
<label>Quantity<span class="badge mandatory">*</span></label>
<label>Quantity<span
class="badge mandatory">*</span></label>
<div class="form-group">
<?php
$data = array('name' => 'Quantity', 'value' => set_value('Quantity'), 'id' => 'Quantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'change()');
@ -3193,9 +3203,13 @@ if (!empty($INRSYMBOL)) {
<label><?php echo "Basic Amt ($INRSYM)"; ?></label>
<div class="form-group">
<?php
$data = array('name' => 'txtBasicValue',
'value' => set_value('txtBasicValue'), 'id' => 'txtBasicValue',
'class' => 'form-control num', 'readonly' => 'true');
$data = array(
'name' => 'txtBasicValue',
'value' => set_value('txtBasicValue'),
'id' => 'txtBasicValue',
'class' => 'form-control num',
'readonly' => 'true'
);
echo form_input($data);
?>
</div>
@ -3227,7 +3241,8 @@ if (!empty($INRSYMBOL)) {
</div>
</div>
<div class="col-md-3">
<label>Discount Rate<span class="badge mandatory"></span>
<label>Discount Rate<span
class="badge mandatory"></span>
</label>
<div class="form-group">
<?php
@ -3297,7 +3312,8 @@ if (!empty($INRSYMBOL)) {
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-3">
<label>Freight Type <span class="badge mandatory"></label>
<label>Freight Type <span
class="badge mandatory"></label>
<div>
<?php
$options = array("0" => 'Select Freight Type');
@ -3318,7 +3334,8 @@ if (!empty($INRSYMBOL)) {
</div>
</div>
<div class="col-md-3">
<label>Freight Rate <span class="badge mandatory"></label>
<label>Freight Rate <span
class="badge mandatory"></label>
<div class="form-group">
<?php
$data = array('name' => 'txtFreight', 'value' => set_value('txtFreight'), 'id' => 'txtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(0);change();');
@ -3422,7 +3439,8 @@ if (!empty($INRSYMBOL)) {
<div class="col-md-9">
</div>
<div class="col-md-3">
<label> Insurance <?php echo "($INRSYM)" ?> (if Any)</label>
<label> Insurance <?php echo "($INRSYM)" ?> (if
Any)</label>
<div class="form-group">
<?php
$data = array('name' => 'txtInsurance', 'value' => set_value('txtInsurance'), 'id' => 'txtInsurance', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateTotalValue(0);');
@ -3462,8 +3480,9 @@ if (!empty($INRSYMBOL)) {
<br>
<div class="col-12 text-right">
<a class="btn btn-secondary waves-effect" data-dismiss="modal"
value="Cancel">Cancel</a> &nbsp;&nbsp;
<a class="btn btn-secondary waves-effect"
data-dismiss="modal" value="Cancel">Cancel</a>
&nbsp;&nbsp;
<a class="btn btn-success font AddRevenue" ID="AddRevenue">
&nbsp;&nbsp;<span class="bold">Add Revenue</span></a>
@ -3497,7 +3516,8 @@ if (!empty($INRSYMBOL)) {
<center>
<h4>Add Service Purchase Order Item </h4>
</center>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<button type="button" class="close" data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
@ -3506,7 +3526,8 @@ if (!empty($INRSYMBOL)) {
<div class="row">
<div class="col-md-3">
<label>Item Code<span class="badge mandatory">*</span></label>
<label>Item Code<span
class="badge mandatory">*</span></label>
<div>
<?php
$options = array("0" => 'Item Code');
@ -3560,7 +3581,8 @@ if (!empty($INRSYMBOL)) {
<div class="row">
<div class="col-md-3">
<label>Quantity<span class="badge mandatory">*</span></label>
<label>Quantity<span
class="badge mandatory">*</span></label>
<div class="form-group">
<?php
$data = array('name' => 'ServiceQuantity', 'value' => set_value('ServiceQuantity'), 'id' => 'ServiceQuantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'Ratechange()');
@ -4203,7 +4225,8 @@ if (!empty($INRSYMBOL)) {
</div>
<div class="col-md-12">
<center> <label>Cost of the product Per KG</label></center>
<center> <label>Cost of the product Per KG</label>
</center>
<hr />
</div>
<div class="col-md-12">
@ -4268,8 +4291,8 @@ if (!empty($INRSYMBOL)) {
</div>
<div class="modal-footer">
<a class="btn btn-cancel" data-dismiss="modal" value="Cancel">Cancel</a>
<a class="btn btn-success font AddImport" ID="AddImport"> &nbsp;&nbsp;<span
class="bold">Add Import</span></a>
<a class="btn btn-success font AddImport" ID="AddImport">
&nbsp;&nbsp;<span class="bold">Add Import</span></a>
</div>
</div>
</form>
@ -4663,7 +4686,8 @@ if (!empty($INRSYMBOL)) {
</div>
<div class="col-md-12">
<center> <label>Cost of the product Per KG</label></center>
<center> <label>Cost of the product Per KG</label>
</center>
<hr />
</div>
<div class="col-md-12">
@ -4728,8 +4752,8 @@ if (!empty($INRSYMBOL)) {
</div>
<div class="modal-footer">
<a class="btn btn-cancel" data-dismiss="modal" value="Cancel">Cancel</a>
<a class="btn btn-success font AddImport" ID="AddImport"> &nbsp;&nbsp;<span
class="bold">Add Capital</span></a>
<a class="btn btn-success font AddImport" ID="AddImport">
&nbsp;&nbsp;<span class="bold">Add Capital</span></a>
</div>
</div>
</form>
@ -4757,12 +4781,10 @@ if (!empty($INRSYMBOL)) {
<div class="card">
<div id="packagingcalmodel" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true" data-bs-backdrop="static" data-bs-keyboard="false"
style="display: none;">
<div class="modal-dialog modal-sm" style="width: 1060px;">
<div class="modal-content"
>
<div id="packagingcalmodel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true" data-bs-backdrop="static" data-bs-keyboard="false" style="display: none;">
<div class="modal-dialog " style="width: 720px;" >
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Packing Calculation On <span id="WeightTitle"></span></h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
@ -4779,13 +4801,9 @@ if (!empty($INRSYMBOL)) {
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary waves-effect"
onclick="
$('#packagingcalmodel').modal('hide');"
value="Cancel">Cancel</button>
<button type="button" class="btn btn-secondary waves-effect" onclick="
$('#packagingcalmodel').modal('hide');" value="Cancel">Cancel</button>
<button type="button" class="btn btn-info waves-effect waves-light"
onclick="SetPackagingOption()">Save</button>
</div>
</div>
@ -4794,8 +4812,7 @@ if (!empty($INRSYMBOL)) {
<!-- Modal for Packing Calculation -->
<div id="submitmodel" class="modal fade" role="dialog"
aria-labelledby="myModalLabel">
<div id="submitmodel" class="modal fade" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" style="width:1060px;">
<!-- Modal content-->
@ -4817,11 +4834,10 @@ if (!empty($INRSYMBOL)) {
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary waves-effect"
data-dismiss="modal" value="Cancel">Cancel</button>
<button type="button" class="btn btn-secondary waves-effect" data-dismiss="modal"
value="Cancel">Cancel</button>
<button type="button" class="btn btn-info waves-effect waves-light"
ID="PackagingOption"
onclick="submitoption();dropdownselect();">Save</button>
ID="PackagingOption" onclick="submitoption();dropdownselect();">Save</button>
</div>
</form>
</div>
@ -4833,7 +4849,8 @@ if (!empty($INRSYMBOL)) {
<div id="filemodel" class="modal fade " tabindex="-1" data-backdrop="true" role="dialog" aria-labelledby="myModalLabel">
<div id="filemodel" class="modal fade " tabindex="-1" data-backdrop="true" role="dialog"
aria-labelledby="myModalLabel">
<div class="modal-dialog modal-dialog-scrollable " style="width: 1060px;" role="document">
<!-- Modal content-->
<div class="modal-content">
@ -4844,7 +4861,9 @@ if (!empty($INRSYMBOL)) {
<form action="">
<div class="row">
<div class="col-md-4 "><strong>Delivery Challan /Inv No</strong>
<input type="text" name="ChallanInvNo" id="ChallanInvNo" maxlength="12" class="form-control" value="" required onkeypress="return isNumberKey(event)">
<input type="text" name="ChallanInvNo" id="ChallanInvNo" maxlength="12"
class="form-control" value="" required
onkeypress="return isNumberKey(event)">
</div>
<div class="col-md-4 "><strong>Delivery Challan /Inv Date</strong>
<?php
@ -4860,16 +4879,19 @@ if (!empty($INRSYMBOL)) {
<div class="row">
<div class="col-md-4 mt-2 "><strong>Vehicle No</strong>
<input type="text" name="VehicleNo" id="VehicleNo" maxlength="13" class="form-control" value="" required>
<input type="text" name="VehicleNo" id="VehicleNo" maxlength="13"
class="form-control" value="" required>
</div>
<div class="col-md-4 mt-2 "><strong>Courier No</strong>
<input type="text" name="CourierNo" id="CourierNo" maxlength="12" class="form-control" value="" required>
<input type="text" name="CourierNo" id="CourierNo" maxlength="12"
class="form-control" value="" required>
</div>
<div class="col-md-4 mt-2" id="QualityChecked"><strong>Is Quality Check Required</strong>
<div class="col-md-4 mt-2" id="QualityChecked"><strong>Is Quality Check
Required</strong>
<div class="radio m-2">
<input type="radio" name="Quality" checked="checked" value='0' id="QualityChecktrue"
style="cursor: default;">
<input type="radio" name="Quality" checked="checked" value='0'
id="QualityChecktrue" style="cursor: default;">
<label for="QualityChecktrue">Yes</label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="Quality" id="QualityCheckFalse" value='1'
@ -4882,7 +4904,8 @@ if (!empty($INRSYMBOL)) {
<div class="row">
<div class="col-md-12">
<input type="button" class="btn btn-success" id="addmorebutton" value=" + ADD FILES..">
<input type="button" class="btn btn-success" id="addmorebutton"
value=" + ADD FILES..">
<div id="newdiv"></div><!-- this div for add more section-->
</div>
@ -4892,8 +4915,10 @@ if (!empty($INRSYMBOL)) {
</div>
<div class="col-md-12 " align="right">
<a class="btn btn-secondary" data-dismiss="modal" onclick="SetExciseCalculationCancel();" value="Cancel">Cancel</a>
<a class="btn btn-info ok" ID="ExciseOption12" onclick="rfilealert();">&nbsp;&nbsp;<span class="bold">Submit</span></a>
<a class="btn btn-secondary" data-dismiss="modal"
onclick="SetExciseCalculationCancel();" value="Cancel">Cancel</a>
<a class="btn btn-info ok" ID="ExciseOption12"
onclick="rfilealert();">&nbsp;&nbsp;<span class="bold">Submit</span></a>
</div>
</div>
</form>
@ -4951,8 +4976,8 @@ if (!empty($INRSYMBOL)) {
<div class="col-md-12 text-right">
<a class="btn btn-secondary waves-effect" data-dismiss="modal"
onclick="SetExciseCalculationCancel();" value="Cancel">Cancel</a>
<a class="btn btn-info ok" ID="ExciseOption12"
onclick="sfilealert();">&nbsp;&nbsp;<span class="bold">Submit</span></a>
<a class="btn btn-info ok" ID="ExciseOption12" onclick="sfilealert();">&nbsp;&nbsp;<span
class="bold">Submit</span></a>
</div>
</div>
</div>
@ -4970,7 +4995,7 @@ if (!empty($INRSYMBOL)) {
<div id="freightmodel" class="modal fade" data-backdrop-limit="1" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog modal-sm" style="width: 1060px;">
<div class="modal-dialog " style="width: 720px;">
<!-- Modal content-->
<div class="modal-content">
@ -4993,12 +5018,9 @@ if (!empty($INRSYMBOL)) {
</div>
<div class="modal-footer">
<a class="btn btn-secondary" data-dismiss="modal"
value="Cancel">Cancel</a>
<a class="btn btn-info" ID="freightOption"
data-bs-target="#REVENUE" data-bs-toggle="modal" data-bs-dismiss="modal"
onclick="setfreightOption();"
><span class="bold">Ok</span></a>
<a class="btn btn-secondary" data-dismiss="modal" value="Cancel">Cancel</a>
<a class="btn btn-info" ID="freightOption" data-bs-target="#REVENUE" data-bs-toggle="modal"
data-bs-dismiss="modal" onclick="setfreightOption();"><span class="bold">Ok</span></a>
</div>
</div>
@ -5062,8 +5084,8 @@ if (!empty($INRSYMBOL)) {
<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
@ -5095,8 +5117,8 @@ if (!empty($INRSYMBOL)) {
<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
@ -5161,8 +5183,8 @@ if (!empty($INRSYMBOL)) {
</div>
<div class="col-md-3" style="display:none;">
<label>Available Budget Amount</label><img id="AlertImg"
src="<?php echo base_url(); ?>public/assets/dist/img/red.png"
alt="your image" width="25px" style="display:none;" />
src="<?php echo base_url(); ?>public/assets/dist/img/red.png" alt="your image"
width="25px" style="display:none;" />
<div class="form-group">
<?php
$data = array('name' => 'EditAvlBudAmt', 'value' => set_value('EditAvlBudAmt'), 'id' => 'EditAvlBudAmt', 'class' => 'form-control num', 'readonly' => 'true');
@ -5857,8 +5879,7 @@ if (!empty($INRSYMBOL)) {
<!-- footer for revenue po -->
<div class="modal-footer">
<div class="col-md-12 text-right">
<a class="btn btn-secondary waves-effect" data-dismiss="modal"
value="Cancel">Cancel</a>
<a class="btn btn-secondary waves-effect" data-dismiss="modal" value="Cancel">Cancel</a>
<a class="btn btn-success EditRevenue" ID="EditRevenue"> &nbsp;&nbsp;<span
class="bold">Edit Revenue</span></a>
</div>

View File

@ -2050,13 +2050,15 @@ if (!empty($POItem) && $CapitalRange == '1') {
?>
</div>
</div>
<div class="form-row" style="padding:1%;"></div>
<div class="form-row" style="padding:0px;" id="EditModalImportTaxHide" style="display:none;">
<div class="form-row" style="border:solid black 1px; padding:1%;">
<div class="form-row" style="padding:1%;" id="EditModalImportTaxHide" style="display:none;">
<br/>
<div class="form-group col-md-6" style="padding:0px;">
<div class="form-group col-md-6" style="padding:15px;">
<div class="form-row">
<div class="form-group col-md-4">
Basic Price In<?php echo "($INR)" ?>
<label for="EditBasicPriceTax">Basic Price In<?php echo "($INR)" ?></label>
</div>
<!--<div class="form-group col-md-4">
<div >
@ -2075,7 +2077,8 @@ if (!empty($POItem) && $CapitalRange == '1') {
</div>
<div class="form-row">
<div class="form-group col-md-4">
Landing charge<?php echo "$INR" ?>
<label for="EditLandingCharge">Landing charge<?php echo "$INR" ?></label>
</div>
<div class="form-group col-md-4">
<?php
@ -2092,7 +2095,7 @@ if (!empty($POItem) && $CapitalRange == '1') {
</div>
<div class="form-row">
<div class="form-group col-md-4">
Assessable Value (A)<?php echo "$INR" ?>
<label for="EditHighseas">Assessable Value (A)<?php echo "$INR" ?></label>
</div>
<div class="form-group col-md-4">
<div style="display: none;">
@ -2111,7 +2114,8 @@ if (!empty($POItem) && $CapitalRange == '1') {
</div>
<div class="form-row">
<div class="form-group col-md-4">
Custom duty (B) :<?php echo "$INR" ?>
<label for="EditCustomduty"> Custom duty (B) :<?php echo "$INR" ?></label>
</div>
<div class="form-group col-md-4">
<?php
@ -2131,7 +2135,8 @@ if (!empty($POItem) && $CapitalRange == '1') {
<div class="form-row">
<div class="form-group col-md-4">
Custom ED_cess : (C)<?php echo "($INR)" ?>
<label for="EditCustomEDcess"> Custom ED_cess : (C)<?php echo "($INR)" ?></label>
</div>
<div class="form-group col-md-4">
<?php
@ -2148,7 +2153,8 @@ if (!empty($POItem) && $CapitalRange == '1') {
</div>
<div class="form-row">
<div class="form-group col-md-4">
Custom S & H cess : (D)<?php echo "($INR)" ?>
<label for="EditCustomSHcess"> Custom S & H cess : (D)<?php echo "($INR)" ?></label>
</div>
<div class="form-group col-md-4">
<?php
@ -2164,10 +2170,13 @@ if (!empty($POItem) && $CapitalRange == '1') {
</div>
</div>
</div>
<div class="form-group col-md-6" style="padding:0px;">
<div class="form-group col-md-6" style="padding:15px;">
<div class="form-row">
<div class="form-group col-md-4">
Subtotal: (E)<?php echo "($INR)" ?>
<label for="EditAdditionalExciseduty"> Subtotal: (E)<?php echo "($INR)" ?></label>
</div>
<div class="form-group col-md-4">
<div style="display: none">
@ -2185,16 +2194,14 @@ if (!empty($POItem) && $CapitalRange == '1') {
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<!-- Additional Excise duty : (g) -->
<label for="EditIgstInt">
IGST on (E): (F)
<?php echo " ($INR)"; ?>
</label>
</div>
<div class="form-group col-md-4">
<?php
@ -2210,16 +2217,11 @@ if (!empty($POItem) && $CapitalRange == '1') {
</div>
</div>
<div class="form-row">
<div class="form-group col-md-8">
<label for="EditGrossdutypayable">
Total Duty <?php echo "($INR)" ?>
</label>
</div>
<div class="form-group col-md-4">
<?php
@ -2232,7 +2234,7 @@ if (!empty($POItem) && $CapitalRange == '1') {
<!--Start of Adding of Frieght model-->
<div class="form-row" style="padding:0px;">
<div class="form-group col-md-3">
<span>Freight Type </span>
<label for="drpamendFreight">Freight Type</label>
<?php
$options = array("0" => 'Select Freight Type');
if (!empty($FreightType)) {
@ -2244,14 +2246,14 @@ if (!empty($POItem) && $CapitalRange == '1') {
?>
</div>
<div class="form-group col-md-3" id="AmendTripsValue" style="display:none;">
<span>NO Of Trips</span>
<label for="AmendNOOfTrips">NO Of Trips</label>
<?php
$data = array('name' => 'AmendNOOfTrips', 'value' => set_value('AmendNOOfTrips'), 'id' => 'AmendNOOfTrips', 'class' => 'form-control num', 'onchange' => 'calculateFreight(0);');
echo form_input($data);
?>
</div>
<div class="form-group col-md-3">
<span>Freight Rate </span>
<label for="AmendtxtFreight">Freight Rate</label>
<?php
$data = array('name' => 'AmendtxtFreight', 'value' => set_value('AmendtxtFreight'), 'id' => 'AmendtxtFreight', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'calculateFreight(3);');
echo form_input($data);
@ -2259,7 +2261,7 @@ if (!empty($POItem) && $CapitalRange == '1') {
</div>
<div class="form-group col-md-3" style="padding-left: 0px;">
<span>Freight Amt <?php echo "($INR)" ?></span>
<label for="AmendtxtAfterFreight"> Freight Amt </label>
<?php
$data = array('name' => 'AmendtxtAfterFreight', 'value' => set_value('AmendtxtAfterFreight'), 'id' => 'AmendtxtAfterFreight', 'class' => 'form-control num', 'readonly' => 'true');
echo form_input($data);
@ -2269,13 +2271,16 @@ if (!empty($POItem) && $CapitalRange == '1') {
</div>
<!--End of Adding of freight in edit model -->
<div class="form-row">
<br>
<center> <label>Cost of the product Per UOM</label></center>
<hr />
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditDutyImpact">
Duty Impact
</label>
</div>
<div class="form-group col-md-4">
<?php
@ -2284,7 +2289,7 @@ if (!empty($POItem) && $CapitalRange == '1') {
?>
</div>
<div class="form-group col-md-4" style="margin-top: -4.8%">
<span>Quantity</span>
<label for="EditPurQuantity">Quantity</label>
<?php
$data = array('name' => 'EditPurQuantity', 'value' => set_value('EditPurQuantity'), 'id' => 'EditPurQuantity', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'onchange' => 'EditRatechange();');
echo form_input($data);
@ -2296,7 +2301,10 @@ if (!empty($POItem) && $CapitalRange == '1') {
<div class="form-row">
<div class="form-group col-md-4">
<label for="EditCustomDutyExpenses">
Custom Duty<?php echo "($INR)/UOM" ?>
</label>
</div>
<div class="form-group col-md-4">
<?php
@ -2309,7 +2317,8 @@ if (!empty($POItem) && $CapitalRange == '1') {
<div class="form-row">
<div class="form-group col-md-4">
Clearing Charges <?php echo "($INR)" ?>
<label for="EditClearingCharges"> Clearing Charges <?php echo "($INR)" ?></label>
</div>
<div class="form-group col-md-4">
<?php
@ -2317,11 +2326,9 @@ if (!empty($POItem) && $CapitalRange == '1') {
echo form_input($data);
?>
</div>
<div class="form-group col-md-4">
<!-- RMC Including Customers -->
Nett per UOM<?php echo "($INR)"; ?>
</div>
<div class="form-group col-md-4">
<div class="form-group col-md-4 " style="margin-top: -4.8%">
<label for="EditNett">Nett per UOM<?php echo "($INR)"; ?></label>
<?php
$data = array('name' => 'EditNett', 'value' => set_value('EditNett'), 'id' => 'EditNett', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);', 'readonly' => 'true');
echo form_input($data);
@ -2340,7 +2347,8 @@ if (!empty($POItem) && $CapitalRange == '1') {
</div>
</div>
</div>
<br>
<div class="form-row" style="text-align: left;">
<div class="form-group col-md-12">
<label>Capital Description </label>
@ -2350,6 +2358,8 @@ if (!empty($POItem) && $CapitalRange == '1') {
</div>
</div>
</div>
<div class="modal-footer">
<a class="btn btn-success" data-dismiss="modal" value="Cancel" style="margin-right:10px">Cancel</a>

View File

@ -1,50 +1,3 @@
<script>
$(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() {
$('.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').css('z-index', ''); // Reset to default
});
$('#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() {
$('.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').css('z-index', ''); // Reset to default
});
$('#viewpackagingcalmodel').on('show.bs.modal', function() {
// Set a higher z-index for the second modal to appear on top
$('#viewpackagingcalmodel').css('z-index', 1060); // Set the z-index for the second modal
// Ensure the second modal backdrop appears above the first one
setTimeout(function() {
$('.modal-backdrop').last().css('z-index', 1055);
}, 0);
});
// Reset z-index when the second modal is hidden (optional)
$('#viewpackagingcalmodel').on('hidden.bs.modal', function() {
$('#viewpackagingcalmodel').css('z-index', ''); // Reset to default
});
});
</script>
<?php $parentPO = '';
$AvlCapitalBudAmt = isset($AvlCapitalBudAmt) ? (int) $AvlCapitalBudAmt : 0;
$insuranceStatus = array(
@ -264,23 +217,6 @@ if (!empty($getlogpodtl)) {
.centered input {
margin: 0 5px;
}
#packagingcalmodel {
margin-top: 200px;
z-index: 1080 !important;
}
#editpackagingcalmodel {
margin-top: 200px;
z-index: 1080 !important;
}
#viewpackagingcalmodel {
margin-top: 200px;
z-index: 1080 !important;
}
</style>
<script src="<?php echo base_url() ?>public/assets/tinymce/js/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
@ -358,9 +294,7 @@ if (!empty($getlogpodtl)) {
var update = '<?php echo json_encode($update) ?>';
if (update != 'null')
{
if (update != 'null') {
$('#editpodiv').show();
} else {
$('#editpodiv').hide();
@ -489,7 +423,8 @@ if (!empty($getlogpodtl)) {
<?php } else { ?>
<h4><?= "Amended Capital Purchase Order - $PONO "; ?></h4>
<?php } ?>
<a href="<?php echo base_url() ?>purchaseorderListing" class="btn btn-secondary" id="back" value="Back">Back</a>
<a href="<?php echo base_url() ?>purchaseorderListing" class="btn btn-secondary" id="back"
value="Back">Back</a>
</div>
</div>
</div>
@ -584,7 +519,8 @@ if (!empty($getlogpodtl)) {
<?php echo form_label('Dispatch instruction', 'Dispatch instruction') . "&nbsp;&nbsp;" . form_radio(array("name" => "DateRange", "id" => "Date", "value" => "2", 'checked' => ('2' == $DeliverOption) ? TRUE : FALSE)); ?>&nbsp;&nbsp;&nbsp;&nbsp;
</div>
<div id="datedomestic" style="display:none;">
<?php echo form_label('Deilvery Date', 'Deilvery Date') . "&nbsp;&nbsp;" . form_radio(array("name" => "DateRange", "id" => "DeliverycheckDate", "value" => "0", 'checked' => ('0' == $DeliverOption) ? TRUE : FALSE)); ?>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<?php echo form_label('Deilvery Date', 'Deilvery Date') . "&nbsp;&nbsp;" . form_radio(array("name" => "DateRange", "id" => "DeliverycheckDate", "value" => "0", 'checked' => ('0' == $DeliverOption) ? TRUE : FALSE)); ?>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</div>
<div>
<?php echo form_label('Schedule', 'Schedule') . "&nbsp;&nbsp;" . form_radio(array('name' => 'DateRange', 'value' => '1', 'checked' => ('1' == $DeliverOption) ? TRUE : FALSE, 'id' => 'Schedule')); ?>
@ -635,7 +571,8 @@ if (!empty($getlogpodtl)) {
<div class="form-row">
<div class="form-group col-md-3" id="FromOnline" style="display:none;">
Check Today's Foreign Exchange value <a href="http://www.xe.com/" target="_blank"><u>(Click here)</u></a>
Check Today's Foreign Exchange value <a href="http://www.xe.com/" target="_blank"><u>(Click
here)</u></a>
</div>
<div class="form-group col-md-3" id="ExchangeRateOnDiv" style="display:none;">
<label>Exchange Rate On</label>
@ -836,108 +773,22 @@ if (!empty($getlogpodtl)) {
</div>
</div>
<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">Freight Calculation On</h4>
<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="optPackaging" checked="checked" value='0' id="optPackaging"> Basic Amount</label>
</div>
<div>
<label><input type="radio" name="optPackaging" id="optPackaging" value='1'> After Discount Amount</label>
</div>
</form>
</div>
<div class="modal-footer" style="border:none;">
<a class="btn btn-success" data-dismiss="modal" style="margin: 10px;" value="Cancel">Cancel</a>
<a class="btn btn-success" ID="PackagingOption" onclick="calculateFreightlocaddper();">&nbsp;&nbsp;<span class="bold">Ok</span></a>
</div>
</div>
</div>
</div><!-- /.modal -->
<!-- Modal for Packing Calculation -->
<div id="editpackagingcalmodel" 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">Freight Calculation On
<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="editoptPackaging" checked="checked" value='0' id="editoptPackaging"> Basic Amount</label>
</div>
<div>
<label><input type="radio" name="editoptPackaging" id="editoptPackaging" value='1'> After Discount Amount</label>
</div>
</form>
</div>
<div class="modal-footer" style="border:none;">
<a class="btn btn-success" data-dismiss="modal" style="margin: 10px;" value="Cancel">Cancel</a>
<a class="btn btn-success" ID="editPackagingOption" onclick="calculateFreightloceditper();">&nbsp;&nbsp;<span class="bold">Ok</span></a>
</div>
</div>
</div>
</div><!-- /.modal -->
<div id="viewpackagingcalmodel" 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">Freight Calculation On</h4>
<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="viewoptPackaging" checked="checked" value='0' id="editoptPackaging"> Basic Amount</label>
</div>
<div>
<label><input type="radio" name="viewoptPackaging" id="editoptPackaging" value='1'> After Discount Amount</label>
</div>
</form>
</div>
<div class="modal-footer" style="border:none;">
<a class="btn btn-success" data-dismiss="modal" style="margin: 10px;" value="Cancel">Cancel</a>
<a class="btn btn-success" ID="viewPackagingOption" onclick="calculateFreightlocviewper();">&nbsp;&nbsp;<span class="bold">Ok</span></a>
</div>
</div>
</div>
</div><!-- /.modal -->
<div class="form-row">
<!-- <div class="col-md-9" align="right" style="padding:10px"> -->
<!-- <input type="checkbox" id="IsOpenOrder" name="IsOpenOrder" value="1"> IS THIS OPEN ORDER FORMAT -->
<!-- </div> -->
<div class="form-group col-md-12" align=" right">
<?php if ($POStatus == PO_DRAFT || $POStatus == PO_CREATED) { ?>
<a data-toggle="modal"><button type="submit" onclick="myFunction();" class="btn btn-success" id="abcd">Select Line Item</button> </a>
<a data-toggle="modal"><button type="submit" onclick="myFunction();" class="btn btn-success"
id="abcd">Select Line Item</button> </a>
<?php } ?>
</div>
<br>
</div>
<div class="box-body">
<table id="serviceTax" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<table id="serviceTax" class="table table-bordered table-hover"
style="background-color:#fff;font-size:12px;">
<thead>
<tr>
<th>SNo</th>
@ -981,7 +832,9 @@ if (!empty($getlogpodtl)) {
<td align="right"><?php echo number_format($record->Rate * $record->Quantity, 2, '.', '') ?></td>
<?php if ($CapitalRange == '1') { ?>
<td align="right"><?php echo $record->ServiceTaxamount; ?></td>
<td align="right"><?php echo number_format($record->Rate * $record->Quantity + $record->ServiceTaxamount + $record->otherallowance + $record->Afvalue - $record->Afterdiscountval, 2, '.', '') ?></td>
<td align="right">
<?php echo number_format($record->Rate * $record->Quantity + $record->ServiceTaxamount + $record->otherallowance + $record->Afvalue - $record->Afterdiscountval, 2, '.', '') ?>
</td>
<?php } ?>
<?php if ($CapitalRange == '0') { ?>
@ -1000,51 +853,85 @@ if (!empty($getlogpodtl)) {
array_push($res_arr_values, $row);
?>
<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 '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 'AvilBudget' . $index ?>" id="<?php echo 'AvilBudget' . $index ?>" value="<?php echo "$AvlAmount"; ?>" />
<input type="hidden" name="<?php echo 'AvilBudget' . $index ?>"
id="<?php echo 'AvilBudget' . $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 'CPCostCode' . $index ?>" id="<?php echo 'CPCostCode' . $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 'per' . $index ?>" id="<?php echo 'per' . $index ?>" value="<?php echo $record->Per; ?>" />
<input type="hidden" name="<?php echo 'CapitalItemDescrition' . $index ?>" id="<?php echo 'CapitalItemDescrition' . $index ?>" value="<?php echo $record->ServiceMaterialDescription; ?>" />
<input type="hidden" name="<?php echo 'quantity' . $index ?>" id="<?php echo 'quantity' . $index ?>" value="<?php echo $record->Quantity; ?>" />
<input type="hidden" name="<?php echo 'LineItemNo' . $index ?>"
id="<?php echo 'LineItemNo' . $index ?>" value="<?php echo $record->LineItemNo; ?>" />
<input type="hidden" name="<?php echo 'CPCostCode' . $index ?>"
id="<?php echo 'CPCostCode' . $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 'per' . $index ?>" id="<?php echo 'per' . $index ?>"
value="<?php echo $record->Per; ?>" />
<input type="hidden" name="<?php echo 'CapitalItemDescrition' . $index ?>"
id="<?php echo 'CapitalItemDescrition' . $index ?>"
value="<?php echo $record->ServiceMaterialDescription; ?>" />
<input type="hidden" name="<?php echo 'quantity' . $index ?>"
id="<?php echo 'quantity' . $index ?>" value="<?php echo $record->Quantity; ?>" />
<input align="right" type="hidden" name="<?php echo 'b4qty' . $index ?>" id="<?php echo 'b4qty' . $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 align="right" type="hidden" name="<?php echo 'b4rate' . $index ?>" id="<?php echo 'b4rate' . $index ?>" value="<?php echo $record->Rate; ?>" />
<input align="right" type="hidden" name="<?php echo 'b4qty' . $index ?>"
id="<?php echo 'b4qty' . $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 align="right" type="hidden" name="<?php echo 'b4rate' . $index ?>"
id="<?php echo 'b4rate' . $index ?>" value="<?php echo $record->Rate; ?>" />
<?php if ($CapitalRange == '1') { ?>
<input type="hidden" name="<?php echo 'rateInUs' . $index ?>" id="<?php echo 'rateInUs' . $index ?>" value="<?php echo $record->Rate; ?>" />
<input type="hidden" name="<?php echo 'rateInUs' . $index ?>"
id="<?php echo 'rateInUs' . $index ?>" value="<?php echo $record->Rate; ?>" />
<input type="hidden" name="<?php echo 'Cgst' . $index ?>" id="<?php echo 'Cgst' . $index ?>" value="<?php echo $record->CGST; ?>" />
<input type="hidden" name="<?php echo 'Cgst' . $index ?>" id="<?php echo 'Cgst' . $index ?>"
value="<?php echo $record->CGST; ?>" />
<input type="hidden" name="<?php echo 'AfterCgst' . $index ?>" id="<?php echo 'AfterCgst' . $index ?>" value="<?php echo $record->After_CGST; ?>" />
<input type="hidden" name="<?php echo 'Sgst' . $index ?>" id="<?php echo 'Sgst' . $index ?>" value="<?php echo $record->SGST; ?>" />
<input type="hidden" name="<?php echo 'AfterSgst' . $index ?>" id="<?php echo 'AfterSgst' . $index ?>" value="<?php echo $record->After_SGST; ?>" />
<input type="hidden" name="<?php echo 'Igst' . $index ?>" id="<?php echo 'Igst' . $index ?>" value="<?php echo $record->IGST; ?>" />
<input type="hidden" name="<?php echo 'AfterIgst' . $index ?>" id="<?php echo 'AfterIgst' . $index ?>" value="<?php echo $record->After_IGST; ?>" />
<input type="hidden" name="<?php echo 'OtherAmt' . $index ?>" id="<?php echo 'OtherAmt' . $index ?>" value="<?php echo $record->otherallowance; ?>" />
<input type="hidden" name="<?php echo 'ServiceTotalOrderValue' . $index ?>" id="<?php echo 'ServiceTotalOrderValue' . $index ?>" value="<?php echo $record->ServiceTaxamount; ?>" />
<input align="right" type="hidden" name="<?php echo 'DisType' . $index ?>" id="<?php echo 'DisType' . $index ?>" value="<?php echo $record->discount; ?>" />
<input align="right" type="hidden" name="<?php echo 'DisVal' . $index ?>" id="<?php echo 'DisVal' . $index ?>" value="<?php echo $record->discountval; ?>" />
<input align="right" type="hidden" name="<?php echo 'AfterDisVal' . $index ?>" id="<?php echo 'AfterDisVal' . $index ?>" value="<?php echo $record->Afterdiscountval; ?>" />
<input type="hidden" name="<?php echo 'basicvalInINR' . $index ?>" id="<?php echo 'basicvalInINR' . $index ?>" value="<?php echo $record->Rate * $record->Quantity + $record->After_CGST + $record->After_SGST + $record->After_IGST + $record->otherallowance - $record->Afterdiscountval; ?>" />
<input type="hidden" name="<?php echo 'AfterCgst' . $index ?>"
id="<?php echo 'AfterCgst' . $index ?>" value="<?php echo $record->After_CGST; ?>" />
<input type="hidden" name="<?php echo 'Sgst' . $index ?>" id="<?php echo 'Sgst' . $index ?>"
value="<?php echo $record->SGST; ?>" />
<input type="hidden" name="<?php echo 'AfterSgst' . $index ?>"
id="<?php echo 'AfterSgst' . $index ?>" value="<?php echo $record->After_SGST; ?>" />
<input type="hidden" name="<?php echo 'Igst' . $index ?>" id="<?php echo 'Igst' . $index ?>"
value="<?php echo $record->IGST; ?>" />
<input type="hidden" name="<?php echo 'AfterIgst' . $index ?>"
id="<?php echo 'AfterIgst' . $index ?>" value="<?php echo $record->After_IGST; ?>" />
<input type="hidden" name="<?php echo 'OtherAmt' . $index ?>"
id="<?php echo 'OtherAmt' . $index ?>" value="<?php echo $record->otherallowance; ?>" />
<input type="hidden" name="<?php echo 'ServiceTotalOrderValue' . $index ?>"
id="<?php echo 'ServiceTotalOrderValue' . $index ?>"
value="<?php echo $record->ServiceTaxamount; ?>" />
<input align="right" type="hidden" name="<?php echo 'DisType' . $index ?>"
id="<?php echo 'DisType' . $index ?>" value="<?php echo $record->discount; ?>" />
<input align="right" type="hidden" name="<?php echo 'DisVal' . $index ?>"
id="<?php echo 'DisVal' . $index ?>" value="<?php echo $record->discountval; ?>" />
<input align="right" type="hidden" name="<?php echo 'AfterDisVal' . $index ?>"
id="<?php echo 'AfterDisVal' . $index ?>" value="<?php echo $record->Afterdiscountval; ?>" />
<input type="hidden" name="<?php echo 'basicvalInINR' . $index ?>"
id="<?php echo 'basicvalInINR' . $index ?>"
value="<?php echo $record->Rate * $record->Quantity + $record->After_CGST + $record->After_SGST + $record->After_IGST + $record->otherallowance - $record->Afterdiscountval; ?>" />
<input type="hidden" name="<?php echo 'Ftype' . $index ?>" id="<?php echo 'Ftype' . $index ?>" value="<?php echo $record->Ftype; ?>" />
<input type="hidden" name="<?php echo 'Ftype' . $index ?>" id="<?php echo 'Ftype' . $index ?>"
value="<?php echo $record->Ftype; ?>" />
<input type="hidden" name="<?php echo 'NoTrip' . $index ?>" id="<?php echo 'NoTrip' . $index ?>" value="<?php echo $record->NoTrip; ?>" />
<input type="hidden" name="<?php echo 'NoTrip' . $index ?>" id="<?php echo 'NoTrip' . $index ?>"
value="<?php echo $record->NoTrip; ?>" />
<input type="hidden" name="<?php echo 'Fvalue' . $index ?>" id="<?php echo 'Fvalue' . $index ?>" value="<?php echo $record->Fvalue; ?>" />
<input type="hidden" name="<?php echo 'Fvalue' . $index ?>" id="<?php echo 'Fvalue' . $index ?>"
value="<?php echo $record->Fvalue; ?>" />
<input type="hidden" name="<?php echo 'Afvalue' . $index ?>" id="<?php echo 'Afvalue' . $index ?>" value="<?php echo $record->Afvalue; ?>" />
<input type="hidden" name="<?php echo 'Afvalue' . $index ?>" id="<?php echo 'Afvalue' . $index ?>"
value="<?php echo $record->Afvalue; ?>" />
@ -1052,112 +939,155 @@ if (!empty($getlogpodtl)) {
<?php } ?>
<?php if ($CapitalRange == '0') { ?>
<input align="right" type="hidden" name="<?php echo 'FreightType' . $index ?>" id="<?php echo 'FreightType' . $index ?>" value="<?php echo $record->FreightType; ?>" />
<input align="right" type="hidden" name="<?php echo 'FreightType' . $index ?>"
id="<?php echo 'FreightType' . $index ?>" value="<?php echo $record->FreightType; ?>" />
<input align="right" type="hidden" name="<?php echo 'NoOfTrip' . $index ?>" id="<?php echo 'NoOfTrip' . $index ?>" value="<?php echo $record->NoOfTrip; ?>" />
<input align="right" type="hidden" name="<?php echo 'NoOfTrip' . $index ?>"
id="<?php echo 'NoOfTrip' . $index ?>" value="<?php echo $record->NoOfTrip; ?>" />
<input align="right" type="hidden" name="<?php echo 'FreightVal' . $index ?>" id="<?php echo 'FreightVal' . $index ?>" value="<?php echo $record->FreightValue; ?>" />
<input align="right" type="hidden" name="<?php echo 'FreightVal' . $index ?>"
id="<?php echo 'FreightVal' . $index ?>" value="<?php echo $record->FreightValue; ?>" />
<input align="right" type="hidden" name="<?php echo 'AfterFreightVal' . $index ?>" id="<?php echo 'AfterFreightVal' . $index ?>" value="<?php echo $record->AfterFreightValue; ?>" />
<input align="right" type="hidden" name="<?php echo 'AfterFreightVal' . $index ?>"
id="<?php echo 'AfterFreightVal' . $index ?>"
value="<?php echo $record->AfterFreightValue; ?>" />
<input type="hidden" name="<?php echo 'rateInUs' . $index ?>" id="<?php echo 'rateInUs' . $index ?>" value="<?php echo $record->BasicPriceInMTon; ?>" />
<input type="hidden" name="<?php echo 'rateInUs' . $index ?>"
id="<?php echo 'rateInUs' . $index ?>" value="<?php echo $record->BasicPriceInMTon; ?>" />
<input type="hidden" name="<?php echo 'basicvalInINR' . $index ?>" id="<?php echo 'basicvalInINR' . $index ?>" value="<?php echo $record->ProductPrice; ?>" />
<input type="hidden" name="<?php echo 'basicvalInINR' . $index ?>"
id="<?php echo 'basicvalInINR' . $index ?>" value="<?php echo $record->ProductPrice; ?>" />
<input type="hidden" name="<?php echo 'beforeLanding' . $index ?>" id="<?php echo 'beforeLanding' . $index ?>" value="<?php echo $record->LandingCharge; ?>" />
<input type="hidden" name="<?php echo 'beforeLanding' . $index ?>"
id="<?php echo 'beforeLanding' . $index ?>" value="<?php echo $record->LandingCharge; ?>" />
<input type="hidden" name="<?php echo 'landingCharge' . $index ?>" id="<?php echo 'landingCharge' . $index ?>" value="<?php echo $record->AfterLandingCharge; ?>" />
<input type="hidden" name="<?php echo 'landingCharge' . $index ?>"
id="<?php echo 'landingCharge' . $index ?>"
value="<?php echo $record->AfterLandingCharge; ?>" />
<input type="hidden" name="<?php echo 'beforeCustomDuty' . $index ?>" id="<?php echo 'beforeCustomDuty' . $index ?>" value="<?php echo $record->CustomDuty; ?>" />
<input type="hidden" name="<?php echo 'beforeCustomDuty' . $index ?>"
id="<?php echo 'beforeCustomDuty' . $index ?>" value="<?php echo $record->CustomDuty; ?>" />
<input type="hidden" name="<?php echo 'CustomDuty' . $index ?>" id="<?php echo 'CustomDuty' . $index ?>" value="<?php echo $record->AfterCustomDuty; ?>" />
<input type="hidden" name="<?php echo 'CustomDuty' . $index ?>"
id="<?php echo 'CustomDuty' . $index ?>" value="<?php echo $record->AfterCustomDuty; ?>" />
<input type="hidden" name="<?php echo 'beforeCustomEDCess' . $index ?>" id="<?php echo 'beforeCustomEDCess' . $index ?>" value="<?php echo $record->CustomEdCess; ?>" />
<input type="hidden" name="<?php echo 'beforeCustomEDCess' . $index ?>"
id="<?php echo 'beforeCustomEDCess' . $index ?>" value="<?php echo $record->CustomEdCess; ?>" />
<input type="hidden" name="<?php echo 'CustomEDCess' . $index ?>" id="<?php echo 'CustomEDCess' . $index ?>" value="<?php echo $record->AfterCustomEdCess; ?>" />
<input type="hidden" name="<?php echo 'CustomEDCess' . $index ?>"
id="<?php echo 'CustomEDCess' . $index ?>" value="<?php echo $record->AfterCustomEdCess; ?>" />
<input type="hidden" name="<?php echo 'beforeCustomSHCess' . $index ?>" id="<?php echo 'beforeCustomSHCess' . $index ?>" value="<?php echo $record->CustomSHCess; ?>" />
<input type="hidden" name="<?php echo 'beforeCustomSHCess' . $index ?>"
id="<?php echo 'beforeCustomSHCess' . $index ?>" value="<?php echo $record->CustomSHCess; ?>" />
<input type="hidden" name="<?php echo 'CustomSHCess' . $index ?>" id="<?php echo 'CustomSHCess' . $index ?>" value="<?php echo $record->AfterCustomSHCess; ?>" />
<input type="hidden" name="<?php echo 'CustomSHCess' . $index ?>"
id="<?php echo 'CustomSHCess' . $index ?>" value="<?php echo $record->AfterCustomSHCess; ?>" />
<input type="hidden" name="<?php echo 'echangeRate' . $index ?>" id="<?php echo 'echangeRate' . $index ?>" value="<?php echo $record->ExchangeRate; ?>" />
<input type="hidden" name="<?php echo 'echangeRate' . $index ?>"
id="<?php echo 'echangeRate' . $index ?>" value="<?php echo $record->ExchangeRate; ?>" />
<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 'CustomDutyExpenses' . $index ?>" id="<?php echo 'CustomDutyExpenses' . $index ?>" value="<?php echo $record->CustomDutyExpensesPerKG; ?>" />
<input type="hidden" name="<?php echo 'CustomDutyExpenses' . $index ?>"
id="<?php echo 'CustomDutyExpenses' . $index ?>"
value="<?php echo $record->CustomDutyExpensesPerKG; ?>" />
<input type="hidden" name="<?php echo 'PurQuantity' . $index ?>" id="<?php echo 'PurQuantity' . $index ?>" value="<?php echo $record->QuantityKG; ?>" />
<input type="hidden" name="<?php echo 'PurQuantity' . $index ?>"
id="<?php echo 'PurQuantity' . $index ?>" value="<?php echo $record->QuantityKG; ?>" />
<input type="hidden" name="<?php echo 'PerKgExpense' . $index ?>" id="<?php echo 'PerKgExpense' . $index ?>" value="<?php echo $record->ImportTotalValue; ?>" />
<input type="hidden" name="<?php echo 'PerKgExpense' . $index ?>"
id="<?php echo 'PerKgExpense' . $index ?>" value="<?php echo $record->ImportTotalValue; ?>" />
<input type="hidden" name="<?php echo 'Cgst' . $index ?>" id="<?php echo 'Cgst' . $index ?>" value="0" />
<input type="hidden" name="<?php echo 'Cgst' . $index ?>" id="<?php echo 'Cgst' . $index ?>"
value="0" />
<input type="hidden" name="<?php echo 'AfterCgst' . $index ?>" id="<?php echo 'AfterCgst' . $index ?>" value="0" />
<input type="hidden" name="<?php echo 'AfterCgst' . $index ?>"
id="<?php echo 'AfterCgst' . $index ?>" value="0" />
<input type="hidden" name="<?php echo 'Sgst' . $index ?>" id="<?php echo 'Sgst' . $index ?>" value="0" />
<input type="hidden" name="<?php echo 'Sgst' . $index ?>" id="<?php echo 'Sgst' . $index ?>"
value="0" />
<input type="hidden" name="<?php echo 'AfterSgst' . $index ?>" id="<?php echo 'AfterSgst' . $index ?>" value="0" />
<input type="hidden" name="<?php echo 'AfterSgst' . $index ?>"
id="<?php echo 'AfterSgst' . $index ?>" value="0" />
<input type="hidden" name="<?php echo 'Igst' . $index ?>" id="<?php echo 'Igst' . $index ?>" value="0" />
<input type="hidden" name="<?php echo 'Igst' . $index ?>" id="<?php echo 'Igst' . $index ?>"
value="0" />
<input type="hidden" name="<?php echo 'AfterIgst' . $index ?>" id="<?php echo 'AfterIgst' . $index ?>" value="0" />
<input type="hidden" name="<?php echo 'AfterIgst' . $index ?>"
id="<?php echo 'AfterIgst' . $index ?>" value="0" />
<input type="hidden" name="<?php echo 'OtherAmt' . $index ?>" id="<?php echo 'OtherAmt' . $index ?>" value="0" />
<input type="hidden" name="<?php echo 'OtherAmt' . $index ?>"
id="<?php echo 'OtherAmt' . $index ?>" value="0" />
<input type="hidden" name="<?php echo 'ServiceTotalOrderValue' . $index ?>" id="<?php echo 'ServiceTotalOrderValue' . $index ?>" value="0" />
<input type="hidden" name="<?php echo 'ServiceTotalOrderValue' . $index ?>"
id="<?php echo 'ServiceTotalOrderValue' . $index ?>" value="0" />
<input align="right" type="hidden" name="<?php echo 'DisType' . $index ?>" id="<?php echo 'DisType' . $index ?>" value="0" />
<input align="right" type="hidden" name="<?php echo 'DisType' . $index ?>"
id="<?php echo 'DisType' . $index ?>" value="0" />
<input align="right" type="hidden" name="<?php echo 'DisVal' . $index ?>" id="<?php echo 'DisVal' . $index ?>" value="0" />
<input align="right" type="hidden" name="<?php echo 'DisVal' . $index ?>"
id="<?php echo 'DisVal' . $index ?>" value="0" />
<input align="right" type="hidden" name="<?php echo 'AfterDisVal' . $index ?>" id="<?php echo 'AfterDisVal' . $index ?>" value="0" />
<input align="right" type="hidden" name="<?php echo 'AfterDisVal' . $index ?>"
id="<?php echo 'AfterDisVal' . $index ?>" value="0" />
<input type="hidden" name="<?php echo 'AssessableValue' . $index ?>" id="<?php echo 'AssessableValue' . $index ?>" value="<?php echo $record->AssessableValue; ?>" />
<input type="hidden" name="<?php echo 'AssessableValue' . $index ?>"
id="<?php echo 'AssessableValue' . $index ?>" value="<?php echo $record->AssessableValue; ?>" />
<input type="hidden" name="<?php echo 'SubTotal' . $index ?>" id="<?php echo 'SubTotal' . $index ?>" value="<?php echo $record->SubTotal; ?>" />
<input type="hidden" name="<?php echo 'SubTotal' . $index ?>"
id="<?php echo 'SubTotal' . $index ?>" value="<?php echo $record->SubTotal; ?>" />
<input type="hidden" name="<?php echo 'IGSTInt' . $index ?>" id="<?php echo 'IGSTInt' . $index ?>" value="<?php echo $record->IGST; ?>" />
<input type="hidden" name="<?php echo 'IGSTInt' . $index ?>" id="<?php echo 'IGSTInt' . $index ?>"
value="<?php echo $record->IGST; ?>" />
<input type="hidden" name="<?php echo 'AfterIGSTInt' . $index ?>" id="<?php echo 'AfterIGSTInt' . $index ?>" value="<?php echo $record->AfterIGST; ?>" />
<input type="hidden" name="<?php echo 'AfterIGSTInt' . $index ?>"
id="<?php echo 'AfterIGSTInt' . $index ?>" value="<?php echo $record->AfterIGST; ?>" />
<input type="hidden" name="<?php echo 'DutyImpact' . $index ?>" id="<?php echo 'DutyImpact' . $index ?>" value="<?php echo $record->DutyImpact; ?>" />
<input type="hidden" name="<?php echo 'DutyImpact' . $index ?>"
id="<?php echo 'DutyImpact' . $index ?>" value="<?php echo $record->DutyImpact; ?>" />
<input type="hidden" name="<?php echo 'ClearingCharge' . $index ?>" id="<?php echo 'ClearingCharge' . $index ?>" value="<?php echo $record->ClearingCharge; ?>" />
<input type="hidden" name="<?php echo 'ClearingCharge' . $index ?>"
id="<?php echo 'ClearingCharge' . $index ?>" value="<?php echo $record->ClearingCharge; ?>" />
<input type="hidden" name="<?php echo 'NetValue' . $index ?>" id="<?php echo 'NetValue' . $index ?>" value="<?php echo $record->NetValue; ?>" />
<input type="hidden" name="<?php echo 'NetValue' . $index ?>"
id="<?php echo 'NetValue' . $index ?>" value="<?php echo $record->NetValue; ?>" />
<?php } ?>
<input type="hidden" name="<?php echo 'basicval' . $index ?>" id="<?php echo 'basicval' . $index ?>" value="<?php echo $record->Rate * $record->Quantity; ?>" />
<input type="hidden" name="<?php echo 'basicval' . $index ?>"
id="<?php echo 'basicval' . $index ?>"
value="<?php echo $record->Rate * $record->Quantity; ?>" />
@ -1168,10 +1098,16 @@ if (!empty($getlogpodtl)) {
<?php
if ($POStatus == PO_DRAFT || $POStatus == PO_CREATED) { ?>
<td> <a data-target='#EDITCAPITAL' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#EDITCAPITAL"><i class="ri-pencil-fill" data-toggle="tooltip"></i>&nbsp;&nbsp;&nbsp;</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='#EDITCAPITAL' data-id="<?php echo $index; ?>"
data-userid="<?php echo $index; ?>" data-toggle="modal" href="#EDITCAPITAL"><i
class="ri-pencil-fill" data-toggle="tooltip"></i>&nbsp;&nbsp;&nbsp;</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>
<?php
} else { ?>
<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>&nbsp;&nbsp;&nbsp;</a> </td>
<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>&nbsp;&nbsp;&nbsp;</a> </td>
<?php
} ?>
</tr> <?php
@ -1409,7 +1345,8 @@ if (!empty($getlogpodtl)) {
<?php if (!empty($update)) { ?>
<div id="editpodiv">
<div class="form-row"><label>Editable POScreen</label>
<table id="edittable" class="table table-hover table-bordered" style="background-color:#fff;font-size:12px;">
<table id="edittable" class="table table-hover table-bordered"
style="background-color:#fff;font-size:12px;">
<thead>
<tr>
<th>Sno</th>
@ -1506,7 +1443,9 @@ if (!empty($getlogpodtl)) {
<div class="form-row" id="deletePreviousPurchaseOrderFileDiv" align="left">
<div class="form-group col-md-12">
<?php if ($PrePOFile) { ?>
<label for="deletePreviousPurchaseOrderFile"><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 for="deletePreviousPurchaseOrderFile"><a title="previously uploaded PO File"
href="<?php echo base_url() . 'public/uploads/POfiles/' . $PrePOFile ?>"><span>previously uploaded
- </span><small><?= $PrePOFile; ?></small></a></label>
&nbsp;&nbsp;&nbsp;&nbsp;
<button class="btn btn-danger btn-sm " id="deletePreviousPurchaseOrderFile">Delete </button>
<?php } ?>
@ -1528,22 +1467,31 @@ if (!empty($getlogpodtl)) {
<?php if ($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED) { ?>
<a class="btn btn-success Save" ID="Cancel" href="<?php echo base_url() . 'purchaseorderListing'; ?>">&nbsp;&nbsp;<span class="bold">Cancel</span></a>
<a class="btn btn-success Save" ID="Cancel"
href="<?php echo base_url() . 'purchaseorderListing'; ?>">&nbsp;&nbsp;<span
class="bold">Cancel</span></a>
<?php if ($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED) { ?>
<a class="btn btn-success Save" ID="Save" onclick="Save(0)">&nbsp;&nbsp;<span class="bold">Save as Draft</span></a>
<a class="btn btn-success Save" ID="Save" onclick="Save(0)">&nbsp;&nbsp;<span class="bold">Save as
Draft</span></a>
<?php } ?>
<a class="btn btn-success Save" ID="Submit" onclick="Save(1)">&nbsp;&nbsp;<span class="bold">Submit</span></a>
<a class="btn btn btn-soft-primary waves-effect waves-light Save" ID="Submit" onclick="Save(4)">&nbsp;&nbsp;<span class="bold">Approve</span></a>
<a class="btn btn-success Save" ID="Submit" onclick="Save(1)">&nbsp;&nbsp;<span
class="bold">Submit</span></a>
<a class="btn btn btn-soft-primary waves-effect waves-light Save" ID="Submit"
onclick="Save(4)">&nbsp;&nbsp;<span class="bold">Approve</span></a>
<?php } else {
if ($DEPCode == FINANCE) { ?>
<a class="btn btn-success" ID="OK" onclick="PageRedirect()">OK</a>
<?php } else if ($DEPCode != FINANCE) {
if (($CapitalRange != 1)) { ?>
<a class="btn btn-success Save" ID="Save" onclick="Save(2)">&nbsp;&nbsp;<span class="bold">Submit</span></a>
<a class="btn btn-success" ID="OK" href="<?php echo base_url() . 'purchaseorderListing'; ?>">&nbsp;&nbsp;<span class="bold">OK</span></a>
<a class="btn btn-success Save" ID="Save" onclick="Save(2)">&nbsp;&nbsp;<span
class="bold">Submit</span></a>
<a class="btn btn-success" ID="OK"
href="<?php echo base_url() . 'purchaseorderListing'; ?>">&nbsp;&nbsp;<span class="bold">OK</span></a>
<?php } else { ?>
<a class="btn btn-success Submit" ID="Submit" onclick="Save(2)">&nbsp;&nbsp;<span class="bold">Submit</span></a>
<a class="btn btn-success" ID="OK" href="<?php echo base_url() . 'purchaseorderListing'; ?>">&nbsp;&nbsp;<span class="bold">OK</span></a>
<a class="btn btn-success Submit" ID="Submit" onclick="Save(2)">&nbsp;&nbsp;<span
class="bold">Submit</span></a>
<a class="btn btn-success" ID="OK"
href="<?php echo base_url() . 'purchaseorderListing'; ?>">&nbsp;&nbsp;<span class="bold">OK</span></a>
<?php }
} ?>
<!-- <a class="btn btn-success" ID="OK" href="<?php echo base_url() . 'purchaseorderListing'; ?>">&nbsp;&nbsp;<span class="bold">OK</span></a> -->
@ -1584,14 +1532,110 @@ if (!empty($getlogpodtl)) {
</div> <!-- container -->
</div> <!-- content -->
</div>
<div id="CAPITAL" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
<div id="packagingcalmodel" class="modal fade" data-backdrop-limit="1" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog modal-sm" style="width: 1060px;">
<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>
</div>
<div class="modal-body p-4">
<form>
<div>
<label><input type="radio" name="optPackaging" checked="checked" value='0' id="optPackaging">
Basic Amount</label>
</div>
<div>
<label><input type="radio" name="optPackaging" id="optPackaging" value='1'> After Discount
Amount</label>
</div>
</form>
</div>
<div class="modal-footer" style="border:none;">
<a class="btn btn-success" data-dismiss="modal" style="margin: 10px;" value="Cancel">Cancel</a>
<a class="btn btn-success" ID="PackagingOption" onclick="calculateFreightlocaddper();">&nbsp;&nbsp;<span
class="bold">Ok</span></a>
</div>
</div>
</div>
</div><!-- /.modal -->
<!-- Modal for Packing Calculation -->
<div id="editpackagingcalmodel" data-backdrop-limit="1" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<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"> x </button>
</div>
<div class="modal-body p-4">
<form>
<div>
<label><input type="radio" name="editoptPackaging" checked="checked" value='0' id="editoptPackaging"> Basic
Amount</label>
</div>
<div>
<label><input type="radio" name="editoptPackaging" id="editoptPackaging" value='1'> After
Discount Amount</label>
</div>
</form>
</div>
<div class="modal-footer" style="border:none;">
<a class="btn btn-success" data-dismiss="modal" style="margin: 10px;" value="Cancel">Cancel</a>
<a class="btn btn-success" ID="editPackagingOption" onclick="calculateFreightloceditper();">&nbsp;&nbsp;<span
class="bold">Ok</span></a>
</div>
</div>
</div>
</div><!-- /.modal -->
<div id="viewpackagingcalmodel" 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">Freight Calculation On</h4>
<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="viewoptPackaging" checked="checked" value='0' id="editoptPackaging"> Basic
Amount</label>
</div>
<div>
<label><input type="radio" name="viewoptPackaging" id="editoptPackaging" value='1'> After
Discount Amount</label>
</div>
</form>
</div>
<div class="modal-footer" style="border:none;">
<a class="btn btn-success" data-dismiss="modal" style="margin: 10px;" value="Cancel">Cancel</a>
<a class="btn btn-success" ID="viewPackagingOption" onclick="calculateFreightlocviewper();">&nbsp;&nbsp;<span
class="bold">Ok</span></a>
</div>
</div>
</div>
</div><!-- /.modal -->
<div id="CAPITAL" 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">Add Capital Purchase Order 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">
@ -1909,7 +1953,8 @@ if (!empty($getlogpodtl)) {
</div>
<div class="form-row" style="padding:1%;"></div>
<div class="form-row" style="border:1px solid #000;padding:0px;" id="ModalImportTaxHide" style="display:none;">
<div class="form-row" style="border:1px solid #000;padding:0px;" id="ModalImportTaxHide"
style="display:none;">
<br />
<div class="form-group col-md-6" style="padding:10px;">
<div class="form-row">
@ -2046,7 +2091,8 @@ if (!empty($getlogpodtl)) {
<div class="form-row">
<div class="form-group col-md-4">
<!-- Subtotal (E)<?php echo "($INR)" ?> -->
Subtotal (E) <?php echo "($INR) (A+B+C+D)" ?>
Subtotal (E)
<?php echo "($INR) (A+B+C+D)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group" style="display: none">
@ -2106,7 +2152,8 @@ if (!empty($getlogpodtl)) {
<div class="form-row">
<div class="form-group col-md-8">
<!-- Total Duty (G)<?php echo "($INR)" ?> -->
Total Duty (G) <?php echo "($INR) (B+C+D+F)" ?>
Total Duty (G)
<?php echo "($INR) (B+C+D+F)" ?>
</div>
<div class="form-group col-md-4">
<div class="form-group">
@ -2251,20 +2298,24 @@ if (!empty($getlogpodtl)) {
</div>
<div class="modal-footer">
<a class="btn btn-success" data-dismiss="modal" value="Cancel" style="margin-right:20px;">Cancel</a>
<a class="btn btn-success font AddCapital" ID="AddCapital"> &nbsp;&nbsp;<span class="bold">Add Capital</span></a>
<a class="btn btn-success font AddCapital" ID="AddCapital"> &nbsp;&nbsp;<span class="bold">Add
Capital</span></a>
</div>
</form>
</div>
</div>
</div><!-- /.modal -->
<div id="EDITCAPITAL" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
<div id="EDITCAPITAL" 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 Capital Purchase Order 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">
@ -2583,7 +2634,8 @@ if (!empty($getlogpodtl)) {
</div>
</div>
<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="border:1px solid #000;padding:0px;" id="EditModalImportTaxHide"
style="display:none;">
<br />
<div class="form-group col-md-6" style="padding:10px;">
<div class="form-row">
@ -2799,7 +2851,7 @@ if (!empty($getlogpodtl)) {
$options[$SID->ConfigValue] = $SID->ConfigValue;
endforeach;
}
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight"', 'class="form-control "');
echo form_dropdown('drpEditFreight', $options, set_value('drpEditFreight'), 'id="drpEditFreight" class="form-control "');
?>
</div>
<div class="form-group col-md-3" id="EditTripsValue" style="display:none;">
@ -2917,20 +2969,23 @@ if (!empty($getlogpodtl)) {
</div>
<div class="modal-footer">
<a class="btn btn-success" data-dismiss="modal" value="Cancel" style="margin-right: 10px;">Cancel</a>
<a class="btn btn-success font EditCapital" ID="UpdateCapital">&nbsp;&nbsp;<span class="bold">Update Capital</span></a>
<a class="btn btn-success font EditCapital" ID="UpdateCapital">&nbsp;&nbsp;<span class="bold">Update
Capital</span></a>
</div>
</form>
</div>
</div>
</div><!-- /.modal -->
<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">
<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>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<form>
<div class="modal-body p-4">
@ -3184,7 +3239,8 @@ if (!empty($getlogpodtl)) {
</div>
</div>
<div class="form-row" style="padding:1%;"></div>
<div class="form-row" style="border:1px solid #000;padding:0px;" id="ViewModalImportTaxHide" style="display:none;">
<div class="form-row" style="border:1px solid #000;padding:0px;" id="ViewModalImportTaxHide"
style="display:none;">
<br />
<div class="form-group col-md-6" style="padding:0px;">
<div class="form-row">
@ -3474,7 +3530,8 @@ if (!empty($getlogpodtl)) {
<div class="form-group col-md-4">
</div>
</div>
<div class="form-group col-md-6" align="right" style="display:none;"> <label>Total Order Amount :</label></div>
<div class="form-group col-md-6" align="right" style="display:none;"> <label>Total Order Amount
:</label></div>
<div class="form-group col-md-6" style="display:none;">
<div class="form-group">
<?php
@ -3505,6 +3562,9 @@ if (!empty($getlogpodtl)) {
</div>
</div>
</div><!-- /.modal -->
<script src="<?php echo base_url(); ?>public/assets/js/CreatePOValidation.js" type="text/javascript"></script>
<!-- <script type="text/html" id="CapitalList">
<tr id="<%=index%>">
@ -7538,15 +7598,7 @@ if (!empty($getlogpodtl)) {
});
$('#editpackagingcalmodel').on('hidden.bs.modal', function() {
$('#EDITCAPITAL').modal('show');
$('.modal-backdrop').remove();
// console.log($('#edit'+tempUserId));
// $('#edit'+tempUserId).click();
});
$('#packagingcalmodel').on('hidden.bs.modal', function () {
console.log("add form ");
@ -7699,21 +7751,6 @@ if (!empty($getlogpodtl)) {
var Calculation = document.querySelector('input[name = "editoptPackaging"]:checked').value;
var FreightType = $("#drpFreighteditloc").val();
$('#editpackagingcalmodel').modal('hide');
$('.modal-backdrop').remove();
$('#EDITCAPITAL').modal('show');
if (!document.getElementById('modalScrollCSS')) {
var style = document.createElement('style');
style.id = 'modalScrollCSS'; // Assign an ID to the style tag to avoid duplicates
style.innerHTML = `
/* Force scroll by setting a max height */
.modal-body {
max-height: 540px;
overflow-y: auto;
}
`;
document.head.appendChild(style); // Append the CSS to the head
}
if (FreightType == '<?php echo PERCENTAGE; ?>') {
@ -8515,3 +8552,42 @@ if (!empty($getlogpodtl)) {
}
</script>
<script>
$(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 () {
$('.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').css('z-index', ''); // Reset to default
});
});
</script>
<script>
$(document).ready(function () {
// When the second modal is about to be shown
$('#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 () {
$('.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').css('z-index', ''); // Reset to default
});
});
</script>

View File

@ -123,7 +123,7 @@ if (!empty($POMaster)) {
$PONOStatus = $Req->StatusCode;
$PONO = $Req->PONO;
$ServiceDescription = $Req->ServiceDescription;
$ExchangeRate = number_format(($Req->ExchangeRate), 2);
$ExchangeRate = number_format((float)($Req->ExchangeRate), 2);
$EDt = new DateTime($Req->ExchangeRateCalculatedon);
$ExchangeRateCalculatedon = $EDt->format('d-m-Y');

File diff suppressed because it is too large Load Diff