CHANGE_OPPORTUNITIES_NONEB_ROLL_OVER_TO_FRESH_HANDLE

This commit is contained in:
VENKATESHWARAN 2026-04-17 17:00:48 +05:30
parent 88b60780b8
commit ca7dca8575

View File

@ -613,7 +613,7 @@ var pageBackButton = '<a href="<?= base_url('leads/list') ?>" class="topbar-icon
console.log(response.message, 'WARNING');
}
if (lead_type != 1) {
if (lead_type != 1 && lead_type != 3) {
let html = `<hr><div class="form-row"> <div class="form-group col-md-3"><h4> Claim Details </h4></div></div>`
let referenceDiv = document.getElementById('appendAreaForClaim');
@ -767,7 +767,7 @@ var pageBackButton = '<a href="<?= base_url('leads/list') ?>" class="topbar-icon
$('#lead_type').change(function() {
let value = $(this).val()
// alert(value);
if (value == 3) {
if (value == 1 || value == 3) {
// alert("Function Called");
if ($('#client_id option[value="add_client"]').length === 0) {
@ -782,7 +782,7 @@ var pageBackButton = '<a href="<?= base_url('leads/list') ?>" class="topbar-icon
$('#source_policy_id').closest('.form-group').hide();
} else if (value != 3) {
} else if (value != 1 && value != 3) {
$("#source_policy_id").prop("required",true);
$("#source_policy_id").prop("required", true);
if(value == 2){
@ -872,7 +872,7 @@ var pageBackButton = '<a href="<?= base_url('leads/list') ?>" class="topbar-icon
var actual_lead_id = $('#actual_lead_id').val();
if (value == 1 || (actual_lead_id && actual_lead_id != 0 && value == 3)) {
if (value == 1 || value == 3) {
$('.btnDiv').show();
$('.claim-row').hide();