diff --git a/app/Controllers/PolicyTransactionController.php b/app/Controllers/PolicyTransactionController.php
index e85a8f56..ef3cc812 100644
--- a/app/Controllers/PolicyTransactionController.php
+++ b/app/Controllers/PolicyTransactionController.php
@@ -1183,11 +1183,14 @@ class PolicyTransactionController extends BaseController
$data['policy_with_corr'] = 1;
}
- if (!isset($data['is_cd_reduce_from_bds'])) {
- $data['is_cd_reduce_from_bds'] = 0;
- } elseif ($data['is_cd_reduce_from_bds']) {
- $data['is_cd_reduce_from_bds'] = 1;
- }
+ // if (!isset($data['is_cd_reduce_from_bds'])) {
+ // $data['is_cd_reduce_from_bds'] = 0;
+ // } elseif ($data['is_cd_reduce_from_bds']) {
+ // $data['is_cd_reduce_from_bds'] = 1;
+ // }
+
+ $data['is_cd_reduce_from_bds'] = ($data['policy_type_id'] > 7 && $data['client_type'] === 1) ? 1 : 0;
+
if (empty($data['data_received_date'])) {
$data['data_received_date'] = null;
diff --git a/app/Views/policy_transaction_endorsement_form.php b/app/Views/policy_transaction_endorsement_form.php
index b90bfe5e..bb1b877d 100644
--- a/app/Views/policy_transaction_endorsement_form.php
+++ b/app/Views/policy_transaction_endorsement_form.php
@@ -302,23 +302,23 @@
-
-
diff --git a/app/Views/policy_transaction_inception_form.php b/app/Views/policy_transaction_inception_form.php
index 84b46234..8699365c 100644
--- a/app/Views/policy_transaction_inception_form.php
+++ b/app/Views/policy_transaction_inception_form.php
@@ -5059,10 +5059,16 @@ function getVehicleFormData() {
let url = '= base_url("util/createVehicleWithMinimalDataForBDS"); ?>';
+ $('.loader').fadeIn();
+ $('.loader-mask').fadeIn();
+
// Send AJAX request
sendAjaxRequestForGlobal(url, 'POST', data, function(response) {
console.log('Data fetched successfully:', response);
+ $('.loader').fadeOut();
+ $('.loader-mask').delay(350).fadeOut('slow');
+
if (response.status == true) {
toastr.success(response.message, 'SUCCESS');
appendClients(response.clients, response.client_id);
@@ -5121,10 +5127,16 @@ function getClientFormData() {
let url = '= base_url("util/createClientWithMinimalData"); ?>';
+ $('.loader').fadeIn();
+ $('.loader-mask').fadeIn();
+
// Send AJAX request
sendAjaxRequestForGlobal(url, 'POST', data, function(response) {
console.log('Data fetched successfully:', response);
+ $('.loader').fadeOut();
+ $('.loader-mask').delay(350).fadeOut('slow');
+
if (response.status == true) {
toastr.success(response.message, 'SUCCESS');
appendClients(response.clients, response.client_id);