diff --git a/app/Views/client_policy.php b/app/Views/client_policy.php
index 353f30c6..0dce634e 100644
--- a/app/Views/client_policy.php
+++ b/app/Views/client_policy.php
@@ -434,11 +434,19 @@
}
} else if ($policy_type_value == 2) {
if (item.policy_type_id == 4) {
+ OptionsHTML += '';
+ }
+ } else if ($policy_type_value == 1) {
+ if (item.policy_type_id == 1 || item.policy_type_id == 2) {
+
OptionsHTML += '';
}
} else {
+
OptionsHTML += '';
@@ -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);
}
});