CHANGE_BDS
This commit is contained in:
parent
42773b2700
commit
f46ee62e77
@ -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);
|
||||
|
||||
@ -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');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user