FIX_ must refer Venkatesh R for clarification

This commit is contained in:
venba-Inspriron-3558 2025-10-17 12:42:59 +05:30
parent 8b9f6ae414
commit 40bf1c50b8

View File

@ -1505,7 +1505,7 @@
$('#client_row_div').empty(); $('#client_row_div').empty();
$('#actcual_clients').show(); $('#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); console.log(client_id);
@ -1555,9 +1555,9 @@
}else{ }else{
$('#pre_sales_row').show(); $('#pre_sales_row').show();
$('#submitButton').show(); $('#submitButton').show();
if(status == "completed"){ // if(status == "completed"){
$('#sales_row').show(); $('#sales_row').show(); // REF : Venkatesh R - Status html Remove. so i removed the 'if'.
} // }
} }
}) })
@ -1660,9 +1660,9 @@
let status = $('#policy_status').val(); let status = $('#policy_status').val();
$('#pre_sales_row').show(); $('#pre_sales_row').show();
$('#submitButton').show(); $('#submitButton').show();
if(status == "completed"){ // if(status == "completed"){
$('#sales_row').show(); $('#sales_row').show(); // REF : Venkatesh R - Status html Remove. so i removed the 'if'.
} // }
var client_type = $('#client_type').val(); var client_type = $('#client_type').val();
var value = $(this).val(); var value = $(this).val();
@ -3558,7 +3558,7 @@
if (!isValid) { if (!isValid) {
$('#inception_form_id').find('input, select, textarea').each(function() { $('#inception_form_id').find('input, select, textarea').each(function() {
if ($(this).parsley().isValid() === false && !$(this).val()) { 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'); console.log('Form is Empty', 'Warning');
@ -5408,9 +5408,9 @@
let status = $('#policy_status').val(); let status = $('#policy_status').val();
$('#pre_sales_row').show(); $('#pre_sales_row').show();
$('#submitButton').show(); $('#submitButton').show();
if(status == "completed"){ // if(status == "completed"){
$('#sales_row').show(); $('#sales_row').show();// REF : Venkatesh R - Status html Remove. so i removed the 'if'.
} // }
} }
function removeClientForm(){ function removeClientForm(){
@ -5418,9 +5418,9 @@
let status = $('#policy_status').val(); let status = $('#policy_status').val();
$('#pre_sales_row').show(); $('#pre_sales_row').show();
$('#submitButton').show(); $('#submitButton').show();
if(status == "completed"){ // if(status == "completed"){
$('#sales_row').show(); $('#sales_row').show();// REF : Venkatesh R - Status html Remove. so i removed the 'if'.
} // }
} }
function getVehicleFormData() { function getVehicleFormData() {
@ -5517,9 +5517,9 @@
let status = $('#policy_status').val(); let status = $('#policy_status').val();
$('#pre_sales_row').show(); $('#pre_sales_row').show();
$('#submitButton').show(); $('#submitButton').show();
if(status == "completed"){ // if(status == "completed"){
$('#sales_row').show(); $('#sales_row').show(); // REF : Venkatesh R - Status html Remove. so i removed the 'if'.
} // }
}, function(xhr, status, error) { }, function(xhr, status, error) {
console.error('Error fetching data:', error); console.error('Error fetching data:', error);
@ -5583,9 +5583,9 @@
let status = $('#policy_status').val(); let status = $('#policy_status').val();
$('#pre_sales_row').show(); $('#pre_sales_row').show();
$('#submitButton').show(); $('#submitButton').show();
if(status == "completed"){ // if(status == "completed"){
$('#sales_row').show(); $('#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) { }, function(xhr, status, error) {
console.error('Error fetching data:', error); console.error('Error fetching data:', error);