CHANGE_PURCHASE_ORDER_SERVICE_REVENUE__CAPITAL_IMPORT_ADD_EDIT_CHECK_MODEL_2

This commit is contained in:
aadhavan valli 2024-09-21 16:13:50 +05:30
parent 419726d72f
commit 4977151329
2 changed files with 33 additions and 4 deletions

View File

@ -7057,7 +7057,7 @@ if (!empty($INRSYMBOL)) {
success: function (data) {
// Handle the server response
// $('#content').loader('hide');
// alert(data);
alert(data);
console.log(data);
$('#txtRowCount').val('');
$('#txtDeletedRow').val('');

View File

@ -7565,7 +7565,7 @@
}
var edit = '';
$('#drpFreightloc').change(function() {
var FreightType = $("#drpFreightloc").val();
@ -7598,6 +7598,8 @@
if (selValue == '<?php echo PERCENTAGE; ?>') {
var PackagingCalculation = '';
$('#CAPITAL').modal('hide');
edit = 'FreightCalculationOn';
$('#packagingcalmodel').modal('show');
//PackagingCalculation = $("input:radio[name='optPackaging']:checked").val();
@ -7617,7 +7619,20 @@
});
$('#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 ");
$('#CAPITAL').modal('show');
});
function calculateFreightlocaddper() {
@ -7625,7 +7640,7 @@
var Calculation = document.querySelector('input[name = "optPackaging"]:checked').value;
var FreightType = $("#drpFreightloc").val();
$('#packagingcalmodel').modal('hide');
$('#CAPITAL').modal('show');
if (FreightType == '<?php echo PERCENTAGE; ?>') {
@ -7734,6 +7749,7 @@
if (selValue == '<?php echo PERCENTAGE; ?>') {
var PackagingCalculation = '';
$('#EDITCAPITAL').modal('hide');
$('#editpackagingcalmodel').modal('show');
//PackagingCalculation = $("input:radio[name='optPackaging']:checked").val();
@ -7760,7 +7776,20 @@
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; ?>') {