Emergency PO changes-3 vadivel J 04-12--2024
This commit is contained in:
parent
8122ee86ef
commit
aff4f723e9
@ -642,7 +642,9 @@ if (!empty($getlogpodtl)) {
|
|||||||
|
|
||||||
});
|
});
|
||||||
var freight = '';
|
var freight = '';
|
||||||
|
|
||||||
$('#drpFreight').change(function () {
|
$('#drpFreight').change(function () {
|
||||||
|
alert("started");
|
||||||
var FreightType = $("#drpFreight").val();
|
var FreightType = $("#drpFreight").val();
|
||||||
|
|
||||||
if (FreightType == "PER TRIP") {
|
if (FreightType == "PER TRIP") {
|
||||||
@ -656,15 +658,17 @@ if (!empty($getlogpodtl)) {
|
|||||||
selValue = $("#drpFreight").val();
|
selValue = $("#drpFreight").val();
|
||||||
$('#txtFreight').val('');
|
$('#txtFreight').val('');
|
||||||
$('#txtAfterFreight').val('');
|
$('#txtAfterFreight').val('');
|
||||||
|
console.log("onchange initiated..!!");
|
||||||
|
|
||||||
if (selValue == PercentageType) {
|
if (selValue == PercentageType) {
|
||||||
// $('#REVENUE').modal('hide');
|
console.log("inside opening freight model ");
|
||||||
freight = 'FreightCalculationOn';
|
freight = 'FreightCalculationOn';
|
||||||
var FreightCalculation = '';
|
var FreightCalculation = '';
|
||||||
$('#freightcalmodel').modal('show');
|
$('#freightcalmodel').modal('show');
|
||||||
$('#txtFreight').removeAttr('readonly', 'true');
|
$('#txtFreight').removeAttr('readonly', 'true');
|
||||||
} else if (selValue == NilType) {
|
} else if (selValue == NilType) {
|
||||||
|
|
||||||
$('#txtFreight').attr('readonly', 'true');
|
$('#txtFreight').attr('readonly','true');
|
||||||
$('#txtFreight').val('0.00');
|
$('#txtFreight').val('0.00');
|
||||||
change();
|
change();
|
||||||
} else {
|
} else {
|
||||||
@ -696,7 +700,7 @@ if (!empty($getlogpodtl)) {
|
|||||||
$('#EDITREVENUE').modal('show');
|
$('#EDITREVENUE').modal('show');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
EditservicePurchaseorder
|
|
||||||
$('#drpEditFreight').change(function () {
|
$('#drpEditFreight').change(function () {
|
||||||
var FreightType = $("#drpEditFreight").val();
|
var FreightType = $("#drpEditFreight").val();
|
||||||
|
|
||||||
@ -716,6 +720,7 @@ if (!empty($getlogpodtl)) {
|
|||||||
var FreightCalculation = '';
|
var FreightCalculation = '';
|
||||||
$('#freightcalmodel').modal('show');
|
$('#freightcalmodel').modal('show');
|
||||||
$('#txtEditFreight').removeAttr('readonly', 'true');
|
$('#txtEditFreight').removeAttr('readonly', 'true');
|
||||||
|
|
||||||
} else if (selValue == NilType) {
|
} else if (selValue == NilType) {
|
||||||
|
|
||||||
$('#txtEditFreight').attr('readonly', 'true');
|
$('#txtEditFreight').attr('readonly', 'true');
|
||||||
@ -1485,7 +1490,10 @@ if (!empty($getlogpodtl)) {
|
|||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var AfterDiscount = parseFloat($('#txtEditAfterDiscount').val());
|
var AfterDiscount = parseFloat($('#txtEditAfterDiscount').val());
|
||||||
|
let freightCalculationOnValue = $(`input[type='radio'][name='optFreight']:checked`).val();
|
||||||
|
FreightCalculation=freightCalculationOnValue;
|
||||||
AfterFreight = FreightCalculation == 0 ? <?php echo FREIGHT_PERCENTAGE; ?> : <?php echo FREIGHT_PERCENTAGE_AFTER; ?>;
|
AfterFreight = FreightCalculation == 0 ? <?php echo FREIGHT_PERCENTAGE; ?> : <?php echo FREIGHT_PERCENTAGE_AFTER; ?>;
|
||||||
|
console.log(AfterDiscount);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (FreightType == NilType) {
|
} else if (FreightType == NilType) {
|
||||||
@ -4121,6 +4129,7 @@ if (!empty($getlogpodtl)) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /.modal -->
|
</div><!-- /.modal -->
|
||||||
|
|
||||||
<!-- Modal for freight Calculation-->
|
<!-- Modal for freight Calculation-->
|
||||||
<div id="freightcalmodel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
|
<div id="freightcalmodel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
|
||||||
aria-hidden="true" style="display: none;">
|
aria-hidden="true" style="display: none;">
|
||||||
@ -4128,7 +4137,7 @@ if (!empty($getlogpodtl)) {
|
|||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h4 class="modal-title">Freight Calculation On</h4>
|
<h4 class="modal-title">Freight Calculation On</h4>
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"> × </button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body p-4">
|
<div class="modal-body p-4">
|
||||||
<form>
|
<form>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user