From 40bf1c50b8ea500460cd71920333c401b189df79 Mon Sep 17 00:00:00 2001 From: venba-Inspriron-3558 Date: Fri, 17 Oct 2025 12:42:59 +0530 Subject: [PATCH] FIX_ must refer Venkatesh R for clarification --- .../policy_transaction_inception_form.php | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/app/Views/policy_transaction_inception_form.php b/app/Views/policy_transaction_inception_form.php index 1f744d39..cc663ee9 100644 --- a/app/Views/policy_transaction_inception_form.php +++ b/app/Views/policy_transaction_inception_form.php @@ -1505,7 +1505,7 @@ $('#client_row_div').empty(); $('#actcual_clients').show(); - let status = $('#policy_status').val(); + let status = $('#policy_status').val(); // REF : Venkatesh R - Status html Remove. Doubt here ask him - Q: why we need this? remove pannava ?. console.log(client_id); @@ -1555,9 +1555,9 @@ }else{ $('#pre_sales_row').show(); $('#submitButton').show(); - if(status == "completed"){ - $('#sales_row').show(); - } + // if(status == "completed"){ + $('#sales_row').show(); // REF : Venkatesh R - Status html Remove. so i removed the 'if'. + // } } }) @@ -1660,9 +1660,9 @@ let status = $('#policy_status').val(); $('#pre_sales_row').show(); $('#submitButton').show(); - if(status == "completed"){ - $('#sales_row').show(); - } + // if(status == "completed"){ + $('#sales_row').show(); // REF : Venkatesh R - Status html Remove. so i removed the 'if'. + // } var client_type = $('#client_type').val(); var value = $(this).val(); @@ -3558,7 +3558,7 @@ if (!isValid) { $('#inception_form_id').find('input, select, textarea').each(function() { if ($(this).parsley().isValid() === false && !$(this).val()) { - console.log('Empty field ID:', this.id); + console.log(' :) Empty field ID:', this.id); } }); console.log('Form is Empty', 'Warning'); @@ -5408,9 +5408,9 @@ let status = $('#policy_status').val(); $('#pre_sales_row').show(); $('#submitButton').show(); - if(status == "completed"){ - $('#sales_row').show(); - } + // if(status == "completed"){ + $('#sales_row').show();// REF : Venkatesh R - Status html Remove. so i removed the 'if'. + // } } function removeClientForm(){ @@ -5418,9 +5418,9 @@ let status = $('#policy_status').val(); $('#pre_sales_row').show(); $('#submitButton').show(); - if(status == "completed"){ - $('#sales_row').show(); - } + // if(status == "completed"){ + $('#sales_row').show();// REF : Venkatesh R - Status html Remove. so i removed the 'if'. + // } } function getVehicleFormData() { @@ -5517,9 +5517,9 @@ let status = $('#policy_status').val(); $('#pre_sales_row').show(); $('#submitButton').show(); - if(status == "completed"){ - $('#sales_row').show(); - } + // if(status == "completed"){ + $('#sales_row').show(); // REF : Venkatesh R - Status html Remove. so i removed the 'if'. + // } }, function(xhr, status, error) { console.error('Error fetching data:', error); @@ -5583,9 +5583,9 @@ let status = $('#policy_status').val(); $('#pre_sales_row').show(); $('#submitButton').show(); - if(status == "completed"){ - $('#sales_row').show(); - } + // if(status == "completed"){ + $('#sales_row').show(); // REF : Venkatesh R - Status html Remove. so i removed the 'if' Submit la locked. "Empty field ID: Empty field ID: policy_issue_date" + // } }, function(xhr, status, error) { console.error('Error fetching data:', error);