diff --git a/app/Controllers/MasterController.php b/app/Controllers/MasterController.php index 52d42fa9..c26d6fb8 100755 --- a/app/Controllers/MasterController.php +++ b/app/Controllers/MasterController.php @@ -1590,11 +1590,12 @@ class MasterController extends AdminController 'status' => true, 'cd_ac_pk' => $insert, 'data' => $cd_data, + 'received_data' => $data, 'cd_ac_no'=>$data['cd_ac_no'], 'message' => 'CD Account number created successfully', "FOR BDS PURPOSE" ], 200); - + }else{ return $this->respond(['status' => false, 'message' => 'Failed to created CD Account number'], 200); } diff --git a/app/Controllers/PolicyTransactionController.php b/app/Controllers/PolicyTransactionController.php index ef3cc812..cf22b8cc 100644 --- a/app/Controllers/PolicyTransactionController.php +++ b/app/Controllers/PolicyTransactionController.php @@ -339,7 +339,7 @@ class PolicyTransactionController extends BaseController $data['policy_with_corr'] = 1; } - $data['is_cd_reduce_from_bds'] = ($data['policy_type_id'] > 7 && $data['client_type'] === 1) ? 1 : 0; + $data['is_cd_reduce_from_bds'] = ($data['policy_type_id'] > 7 && $data['client_type'] == 1) ? 1 : 0; if ($data['ct_type'] == "") { @@ -1189,7 +1189,7 @@ class PolicyTransactionController extends BaseController // $data['is_cd_reduce_from_bds'] = 1; // } - $data['is_cd_reduce_from_bds'] = ($data['policy_type_id'] > 7 && $data['client_type'] === 1) ? 1 : 0; + $data['is_cd_reduce_from_bds'] = ($data['policy_type_id'] > 7 && $data['client_type'] == 1) ? 1 : 0; if (empty($data['data_received_date'])) { diff --git a/app/Views/policy_transaction_inception_form.php b/app/Views/policy_transaction_inception_form.php index dbac54e4..9e488811 100644 --- a/app/Views/policy_transaction_inception_form.php +++ b/app/Views/policy_transaction_inception_form.php @@ -390,6 +390,24 @@ +
+ + +
+ -
+
-
+ - -
-
- Submit -
-
-
-
- `; - - $('#vehicle_row_div').append(html); - appendOwner(client_list); - $('#owner').select2(); - $('#owner_branch').select2(); - - // $("#vehicle_form_row_div").on("input change", "input, select, textarea", function () { - // if ($("#client_type").val() === "") { - // alert("Please select the client type first"); - // if ($(this).is(":checkbox")) { - // // uncheck checkbox - // $(this).prop("checked", false); - // } else { - // // clear text/select/textarea - // $(this).val(""); - // } - // $("#client_type").focus(); // focus back to client_type - // } - // }); - - $('#owner').change(function(){ - - let owner_id = $(this).val(); - console.log('owner_id', owner_id); - if(branch_list != '') { - // console.log(branch_list[client_id]); - let data = branch_list[owner_id]; - appendOwnerBranch(data); - } - - }) - - $('#owner_client_type').on('change', function() { - - let btn = $("#vehicle_client_btn"); - let client_type = $(this).val(); - - if(client_type == 1){ - - if(btn.is(':checked')){ - $('.v_group_client').show(); - $('.v_individual_client').hide(); - $(".v_group_client").find("select, input, textarea").val("").prop("required", true); - $(".v_individual_client").find("select, input, textarea").val("").prop("required", false); - }else{ - $('.v_group_client').hide(); - $('.v_individual_client').hide(); - $(".v_group_client").find("select, input, textarea").val("").prop("required", false); - $(".v_individual_client").find("select, input, textarea").val("").prop("required", false); - - $('.old_group_client').show(); - $(".old_group_client").find("select, input, textarea").val("").prop("required", true); - $(".v_common").find("select, input, textarea").val("").prop("required", false); - } - - }else{ - - if(btn.is(':checked')){ - $('.v_group_client').hide(); - $('.v_individual_client').show(); - $(".v_group_client").find("select, input, textarea").val("").prop("required", false); - $(".v_individual_client").find("select, input, textarea").val("").prop("required", true); - }else{ - $('.v_group_client').hide(); - $('.v_individual_client').hide(); - $(".v_group_client").find("select, input, textarea").val("").prop("required", false); - $(".v_individual_client").find("select, input, textarea").val("").prop("required", false); - - $('.old_group_client').hide(); - $(".old_group_client").find("select, input, textarea").val("").prop("required", false); - $(".v_common").find("select, input, textarea").val("").prop("required", false); - - } - } - - $.each(client_list, function(index, item) { - if (item.client_type == client_type) { - - let client_show_name = item.client_name; - if (item.client_type == 2) { - // client_show_name = item.client_name + ' - ' + (item.dob ?? '') + (item.pan ?? ''); - client_show_name = item.client_name + (item.dob ? ('- (' + item.dob + ' )' ) : '') + (item.pan ? ('- ' + item.pan ) : ''); + function getColumnIndexes(count = 0) { + $('#insurerTable thead th').each(function(index) { + if (index === 0) { + console.log("Premium Table columnIndexes is", index); + } else { + amountCalculation(index); + if(count == 1){ + amountCalculation(index); } - var option = $('