update function notis jbg

This commit is contained in:
nishaMuhd
2024-01-15 13:31:11 +08:00
parent baa7e3189e
commit 2280d53f1f
@@ -1358,7 +1358,7 @@ class CallCenterController extends Controller
->where('nokp','=',$cal['nokp']) ->where('nokp','=',$cal['nokp'])
->get(); ->get();
foreach($listsag as $index1=>$sag){ foreach($listsag as $index2=>$sag){
if($sag['tagbaru'] == '0'){ if($sag['tagbaru'] == '0'){
$keuntungan = 'asal'; $keuntungan = 'asal';
$jeniskeuntungan = ($keuntungan == 'onepercent') ? 'onepercent' : 'asal'; $jeniskeuntungan = ($keuntungan == 'onepercent') ? 'onepercent' : 'asal';
@@ -1372,7 +1372,7 @@ class CallCenterController extends Controller
$response = $master->kiraupahUjrahOnePercent($kodcaw,$sag['norujukan']); $response = $master->kiraupahUjrahOnePercent($kodcaw,$sag['norujukan']);
} }
$listsag[$index1]['keuntungan'] = $response; $listsag[$index2]['keuntungan'] = $response;
} }
$notisnokp[$index1]['info'] = $customer; $notisnokp[$index1]['info'] = $customer;