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,10 +49,12 @@ if (!empty($INRSYMBOL)) {
width: 100%;
}
.modal { overflow: auto !important; }
.modal {
overflow: auto !important;
}
.txtSpcialInstruction{
.txtSpcialInstruction {
background-color: #f4f9fb;
}
@ -1593,9 +1593,9 @@ if (!empty($INRSYMBOL)) {
$('#cgstContainerView').attr("style", "");
$('#sgstContainerView').attr("style", "");
$('#igstContainerView').attr("style", "display:none");
$('#CGSTAddModel').attr("style","");
$('#SGSTAddModel').attr("style","");
$('#IGSTAddModel').attr("style","display:none");
$('#CGSTAddModel').attr("style", "");
$('#SGSTAddModel').attr("style", "");
$('#IGSTAddModel').attr("style", "display:none");
$('#CST').attr("style", "display:none;");
$('#TotCST').attr("style", "display:none;");
@ -1608,11 +1608,11 @@ if (!empty($INRSYMBOL)) {
$('#SGSTEditModel').attr("style", "display:none");
$('#IGSTEditModel').attr("style", "");
$('#cgstContainerView').attr("style", "display:none");
$('#sgstContainerView').attr("style","display:none");
$('#igstContainerView').attr("style","");
$('#CGSTAddModel').attr("style","display:none");
$('#SGSTAddModel').attr("style","display:none");
$('#IGSTAddModel').attr("style","");
$('#sgstContainerView').attr("style", "display:none");
$('#igstContainerView').attr("style", "");
$('#CGSTAddModel').attr("style", "display:none");
$('#SGSTAddModel').attr("style", "display:none");
$('#IGSTAddModel').attr("style", "");
$('#Vat').attr("style", "display:none;");
$('#TotVat').attr("style", "display:none;");
@ -1620,7 +1620,7 @@ if (!empty($INRSYMBOL)) {
}
}
$(document).ready(function(){
$(document).ready(function () {
SetVatorCST()
})
@ -1896,13 +1896,13 @@ if (!empty($INRSYMBOL)) {
return false;
} else if ($('#PoTypeOptions').val() == "0") {
if($('#purpose').val()=="REVENUE"){
if ($('#purpose').val() == "REVENUE") {
alert('Please Select Revenue Type Options');
$('#PoTypeOptions').focus();
return false;
}else{
} else {
alert('Please Select Service Type Options');
$('#PoTypeOptions').focus();
@ -1911,11 +1911,11 @@ if (!empty($INRSYMBOL)) {
}
} else if ($('#DepartmentName').val()=="0"){
} else if ($('#DepartmentName').val() == "0") {
alert('Please Select Department Name ')
return false;
}
else if ($('#CostCenterName').val()=="0"){
else if ($('#CostCenterName').val() == "0") {
alert('Please Select Cost Center Name ')
}
@ -1936,7 +1936,7 @@ if (!empty($INRSYMBOL)) {
return false;
}
else if( $('#Otherpayment').length > 0 && $('#Otherpayment').is(':visible') && $('#Otherpayment').val() == ''){
else if ($('#Otherpayment').length > 0 && $('#Otherpayment').is(':visible') && $('#Otherpayment').val() == '') {
alert('Please Enter the Description of payable terms');
$('#Otherpayment').focus();
@ -2466,7 +2466,7 @@ if (!empty($INRSYMBOL)) {
<b><u>Select Tax Range<span class="badge mandatory">*</span></u></b><br />
<div class="centered">
<?php echo form_label('Local', 'Local') . "&nbsp;&nbsp;" . form_radio(array("name" => "Range", 'onchange' => 'SetVatorCST();', "id" => "Local", "value" => "0", 'checked' => set_radio('Range', '0', ))); ?>
<?php echo form_label('Inter state', 'Inter state') . "&nbsp;&nbsp;" . form_radio(array("name" => "Range", 'onchange' => 'SetVatorCST();' , "id" => "Inter_state", "value" => "1")); ?>
<?php echo form_label('Inter state', 'Inter state') . "&nbsp;&nbsp;" . form_radio(array("name" => "Range", 'onchange' => 'SetVatorCST();', "id" => "Inter_state", "value" => "1")); ?>
</div>
</div>
<div class="col-md-3" style='display:none;' id='workstatus'>
@ -2651,12 +2651,18 @@ if (!empty($INRSYMBOL)) {
<div class="form-group">
<?php
$poDt=new DateTime('now', new DateTimeZone('Asia/Kolkata'));
$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>
@ -2841,7 +2848,7 @@ if (!empty($INRSYMBOL)) {
</table>
<div class="row px-3" id="potaxes" style="display:none;" >
<div class="row px-3" id="potaxes" style="display:none;">
<div class="col-md-12 p-4">
<div class="row">
@ -2884,7 +2891,7 @@ if (!empty($INRSYMBOL)) {
?>
</div>
<div class="col-md-3" id="igstContainerView" >
<div class="col-md-3" id="igstContainerView">
<label> IGST <?php echo "($INRSYM)" ?> </label>
<?php
$data = array('name' => 'txtTotalIGST', 'value' => set_value('txtTotalIGST'), 'id' => 'txtTotalIGST', 'class' => 'form-control num', 'readonly' => 'true');
@ -2893,7 +2900,7 @@ if (!empty($INRSYMBOL)) {
</div>
</div>
<br/>
<br />
<div class="row">
<div class="col-md-3">
@ -2926,7 +2933,7 @@ if (!empty($INRSYMBOL)) {
</div>
</div>
<br/>
<br />
<div class="row">
<div class="col-md-12">
@ -2938,7 +2945,7 @@ if (!empty($INRSYMBOL)) {
</div>
</div>
<br/>
<br />
<div class="row">
<div class="col-md-12">
@ -2974,7 +2981,7 @@ if (!empty($INRSYMBOL)) {
</div>
</div>
<br/>
<br />
<div class="row" style="padding:0px;"><br />
</div>
@ -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();');
@ -3394,7 +3411,7 @@ if (!empty($INRSYMBOL)) {
</div>
</div>
<div class="row" id="IGSTAddModel" >
<div class="row" id="IGSTAddModel">
<div class="col-md-6"></div>
<div class="col-md-3">
@ -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()');
@ -3593,7 +3615,7 @@ if (!empty($INRSYMBOL)) {
</div>
</div>
</div>
<div class="row" >
<div class="row">
<div class="col-md-3">
</div>
@ -3744,7 +3766,7 @@ if (!empty($INRSYMBOL)) {
</div> -->
<div class="row">
<div class="col-md-12" >
<div class="col-md-12">
<label>Service Description<span
class="badge mandatory">*</span></label>
<?php
@ -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,10 +4849,11 @@ 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" >
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Add Bill Details</h4>
</div>
@ -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'
@ -4880,9 +4902,10 @@ if (!empty($INRSYMBOL)) {
</div>
<div class="row" >
<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');
@ -5305,7 +5327,7 @@ if (!empty($INRSYMBOL)) {
</div>
</div>
</div>
<div class="row" >
<div class="row">
<div class="col-md-6" align="right">
CGST In %
@ -5741,7 +5763,7 @@ if (!empty($INRSYMBOL)) {
<div class="row" id="CGSTEditModel">
<div class="col-md-6">
</div>
<div class="col-md-3" >
<div class="col-md-3">
<label>CGST in %</label>
<div class="form-group">
<?php
@ -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>
@ -5868,35 +5889,35 @@ if (!empty($INRSYMBOL)) {
</div>
</div>
</div>
</div>
</form>
</div>
</form>
</div>
</form>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- </section> -->
<!-- <script type="text/html" id="RevenueList">
<!-- </section> -->
<!-- <script type="text/html" id="RevenueList">
<tr id="<%=index%>">
<td align="left"><%=index%></td>
<td align="left"><%=ReqNo%></td>
@ -5916,7 +5937,7 @@ if (!empty($INRSYMBOL)) {
</td>
</tr>
</script> -->
<script>
<script>
var index = '1';
var userid = '';
@ -6182,8 +6203,8 @@ if (!empty($INRSYMBOL)) {
}
</script>
<script>
</script>
<script>
var SelectedMaterialCode = [];
var CollIndex = 0;
@ -7221,7 +7242,7 @@ if (!empty($INRSYMBOL)) {
success: function (data) {
// Handle the server response
$('#loader').hide();
if(data){
if (data) {
alert(data);
}
@ -8056,8 +8077,8 @@ if (!empty($INRSYMBOL)) {
} else { }
}
</script>
<script type="text/html" id="addList">
</script>
<script type="text/html" id="addList">
<tr id="<%=index%>">
<td style="width: 15%;" align="left"><%=MaterialCode1%></td>
<td style="width: 15%;" align="left"><%=DeliveryChallanDate%></td>
@ -8069,8 +8090,8 @@ if (!empty($INRSYMBOL)) {
</tr>
</script>
</script>
<script type="text/html" id="addservice">
</script>
<script type="text/html" id="addservice">
<tr id="<%=index%>">
<td style="width: 15%;" align="left"><%=MaterialCode%></td>
<td style="width: 15%;" align="left"><%=Description%></td>
@ -8078,7 +8099,7 @@ if (!empty($INRSYMBOL)) {
</tr>
</script>
<script>
<script>
//table append for file uploading
var index = '1';
var specialrow = 0;
@ -8269,11 +8290,11 @@ if (!empty($INRSYMBOL)) {
}
</script>
</script>
<!-- Multiple file Upload Script -->
<script>
<!-- Multiple file Upload Script -->
<script>
var counter = 0;
var counterConstant = 0;
@ -8304,7 +8325,7 @@ if (!empty($INRSYMBOL)) {
'<div class="col-md-3" style="margin-top:1.0%; ">' +
'<button style="margin-right:2px;" class="btn btn-success" type="button" onclick="addRow(' + counter + ')"id="addbtn1" ><i class="fa fa-plus-square"></i></button> '+
'<button style="margin-right:2px;" class="btn btn-success" type="button" onclick="addRow(' + counter + ')"id="addbtn1" ><i class="fa fa-plus-square"></i></button> ' +
'<button class="btn btn-danger remove remove_this" id="removebtn' + counter + '" onclick="removeRow(this.id)"><i class="fa fa-minus-square"></i> </button>'
+
@ -8313,8 +8334,8 @@ if (!empty($INRSYMBOL)) {
'<div class="col-md-3" style="margin-top:1.8%; ">' +
'<div class="col-md-3" > '+
'</div> '+
'<div class="col-md-3" > ' +
'</div> ' +
'</div><br>';
$('#newdiv').append(div);
@ -8383,14 +8404,14 @@ if (!empty($INRSYMBOL)) {
div.innerHTML =
'<div class="col-md-3">' +
'<label><br></label>'+
'<label><br></label>' +
'<input type="file" name="browseFiles' + counterConstant + '" id="imag" onchange="Copyfilename(this.name); "><br>' +
'</div>' +
'<div class="col-md-3" style="margin-top:1.0%; ">' +
'<button style="margin-right:2px;" class="btn btn-success" type="button" onclick="addRow(' + counter + ')"id="addbtn1" ><i class="fa fa-plus-square"></i></button> '+
'<button style="margin-right:2px;" class="btn btn-success" type="button" onclick="addRow(' + counter + ')"id="addbtn1" ><i class="fa fa-plus-square"></i></button> ' +
'<button class="btn btn-danger remove remove_this" id="removebtn' + counter + '" onclick="removeRow(this.id)"><i class="fa fa-minus-square"></i> </button>'
+
@ -8399,8 +8420,8 @@ if (!empty($INRSYMBOL)) {
'<div class="col-md-3" style="margin-top:1.8%; ">' +
'<div class="col-md-3" > '+
'</div> '+
'<div class="col-md-3" > ' +
'</div> ' +
'</div>';
$('#newdiv').append(div);
@ -8586,7 +8607,7 @@ if (!empty($INRSYMBOL)) {
//alert("count"+counterConstants);
var div = document.createElement('div');
div.id = "divid" + counters;
div.className = "row p-2" ;
div.className = "row p-2";
div.innerHTML =
'<div class="col-md-4">' +
@ -8704,8 +8725,8 @@ if (!empty($INRSYMBOL)) {
$("#addemorebutton").show();
}
}
</script>
<script>
</script>
<script>
$('#IsOpenOrder').change(function () {
var input = document.getElementById('purpose').value;
// alert("IsOpenOrder");
@ -8749,18 +8770,18 @@ if (!empty($INRSYMBOL)) {
$this.addClass('select2');
}
});
</script>
</script>
<script>
$(document).ready(function() {
$(document).ready(function () {
// When the second modal is about to be shown
$('#packagingcalmodel').on('show.bs.modal', function () {
// Set a higher z-index for the second modal to appear on top
$('#packagingcalmodel').css('z-index', 1060); // Set the z-index for the second modal
// Ensure the second modal backdrop appears above the first one
setTimeout(function() {
setTimeout(function () {
$('.modal-backdrop').last().css('z-index', 1055);
}, 0);
});
@ -8774,13 +8795,13 @@ if (!empty($INRSYMBOL)) {
</script>
<script>
$(document).ready(function() {
$(document).ready(function () {
// When the second modal is about to be shown
$('#freightmodel').on('show.bs.modal', function () {
// Set a higher z-index for the second modal to appear on top
$('#freightmodel').css('z-index', 1060); // Set the z-index for the second modal
// Ensure the second modal backdrop appears above the first one
setTimeout(function() {
setTimeout(function () {
$('.modal-backdrop').last().css('z-index', 1055);
}, 0);
});

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;">
<br />
<div class="form-group col-md-6" style="padding:0px;">
<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: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>

File diff suppressed because it is too large Load Diff

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