CHANGE_BDS

This commit is contained in:
VENKATESHWARAN 2025-09-20 11:22:14 +05:30
parent 42773b2700
commit f46ee62e77
2 changed files with 12 additions and 4 deletions

View File

@ -5139,6 +5139,7 @@
$('.loader-mask').delay(350).fadeOut('slow');
if (response.status == true) {
getClientAndBranchAndPolicy(false);
toastr.success(response.message, 'SUCCESS');
appendClients(response.clients, response.client_id);
appendVehicles(response.vehicles, response.vehicle_id);
@ -5215,6 +5216,7 @@
$('.loader-mask').delay(350).fadeOut('slow');
if (response.status == true) {
getClientAndBranchAndPolicy(false);
toastr.success(response.message, 'SUCCESS');
appendClients(response.clients, response.client_id);
appendBranch(response.branches, response.branch_id);

View File

@ -701,7 +701,7 @@ function show_list_hide_add()
count = 0
}
function getClientAndBranchAndPolicy()
function getClientAndBranchAndPolicy(appendStatus = true)
{
$.ajax({
url: '<?= base_url("/util/getClientAndBranchAndPolicy") ?>',
@ -710,15 +710,21 @@ function getClientAndBranchAndPolicy()
success: function(res) {
console.log('getClientAndBranchAndPolicy', res);
if(res.status == true){
client_list = res.client_data;
branch_list = res.branch_data;
policy_list = res.policy_data;
vehicle_list = res.vehicle_data;
unit_list = res.unit_data;
appendClients(res.client_data);
appendVehicles(res.vehicle_data);
// appendOwner(client_list)
if(appendStatus == true){
appendClients(res.client_data);
appendVehicles(res.vehicle_data);
// appendOwner(client_list)
}
}else{
console.log('No data found');
}