FIX_MISSING_ADD_CLIENT

This commit is contained in:
Srinivas-Saravanan 2025-05-29 09:40:49 +05:30
parent 68b6ad606b
commit 193591f482

View File

@ -150,8 +150,20 @@ if (isset($selected_lead_type)) {
}
function appendClients(data) {
// console.log("lead_type",lead_type.value);
$('#client_id').empty();
if (lead_type.value == 3) {
if ($('#client_id option[value="add_client"]').length === 0) {
$('#client_id').prepend($('<option>', {
value: 'add_client',
text: '+ Add Client'
}));
}
}
$('#client_id').append($('<option>', {
value: '',
text: 'Select Client'