FIX_FILTER_IN_CLIENT_POLICY : RV

This commit is contained in:
VENKATESHWARAN 2024-04-27 15:24:35 +05:30
parent beb0ad107a
commit 8e3a62e540

View File

@ -434,11 +434,19 @@
}
} else if ($policy_type_value == 2) {
if (item.policy_type_id == 4) {
OptionsHTML += '<option data-id="' + item.policy_type_id + '" value="' +
item.id +
'">' + item.name + '</option>';
}
} else if ($policy_type_value == 1) {
if (item.policy_type_id == 1 || item.policy_type_id == 2) {
OptionsHTML += '<option data-id="' + item.policy_type_id + '" value="' +
item.id +
'">' + item.name + '</option>';
}
} else {
OptionsHTML += '<option data-id="' + item.policy_type_id + '" value="' +
item.id +
'">' + item.name + '</option>';
@ -572,7 +580,7 @@
setTimeout(function() {
$('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning');
console.log('Something Wrong!', 'warning');
}, 1000);
}
});
@ -1025,10 +1033,20 @@
$('#tpa').val('').change();
$('#start_date').val('');
$('#end_date').val('');
$('#base_policy').val('0');
$('#base_policy').val('').change();
if ($(this).val() == 2 || $(this).val() == 3) {
$('#insurer').prop('disabled', true);
$('#tpa').prop('disabled', true);
} else {
$('#insurer').prop('disabled', false);
$('#tpa').prop('disabled', false);
}
if ($(this).val() == 3) {
toastr.warning('Please Change the Policy Terms after Submit the Policy!', 'warning');
toastr.warning('Please Change the Policy Terms after Submit the Policy!', 'INFO');
}
if ($(this).val() != '1' && $(this).val() != '0') {
@ -1091,7 +1109,7 @@
setTimeout(function() {
$('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning');
console.log('Something Wrong!', 'warning');
}, 1000);
}
});
@ -1166,7 +1184,7 @@
setTimeout(function() {
$('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning');
console.log('Something Wrong!', 'warning');
}, 500);
}
});