CHANGE_OPPORTUNITIES_NONEB_ROLL_OVER_TO_FRESH_HANDLE
This commit is contained in:
parent
88b60780b8
commit
ca7dca8575
@ -613,7 +613,7 @@ var pageBackButton = '<a href="<?= base_url('leads/list') ?>" class="topbar-icon
|
|||||||
console.log(response.message, 'WARNING');
|
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 html = `<hr><div class="form-row"> <div class="form-group col-md-3"><h4> Claim Details </h4></div></div>`
|
||||||
let referenceDiv = document.getElementById('appendAreaForClaim');
|
let referenceDiv = document.getElementById('appendAreaForClaim');
|
||||||
@ -767,7 +767,7 @@ var pageBackButton = '<a href="<?= base_url('leads/list') ?>" class="topbar-icon
|
|||||||
$('#lead_type').change(function() {
|
$('#lead_type').change(function() {
|
||||||
let value = $(this).val()
|
let value = $(this).val()
|
||||||
// alert(value);
|
// alert(value);
|
||||||
if (value == 3) {
|
if (value == 1 || value == 3) {
|
||||||
// alert("Function Called");
|
// alert("Function Called");
|
||||||
|
|
||||||
if ($('#client_id option[value="add_client"]').length === 0) {
|
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();
|
$('#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);
|
||||||
$("#source_policy_id").prop("required", true);
|
$("#source_policy_id").prop("required", true);
|
||||||
if(value == 2){
|
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();
|
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();
|
$('.btnDiv').show();
|
||||||
$('.claim-row').hide();
|
$('.claim-row').hide();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user