fix rebate in laporan and added imbang duga harian checkup
This commit is contained in:
@@ -224,13 +224,23 @@ class TebusController extends Controller
|
||||
"nama"=>$customer_info['nama'],
|
||||
"nokp"=>$tebusData['nokp'],
|
||||
"jbg"=>$tebusData['jbg'],
|
||||
"ujrah"=>$tebusData['ujrah'],
|
||||
"onepercent"=>$tebusData['onepercent']
|
||||
"ujrah"=>$trans['ujrah_rebet'],
|
||||
"onepercent"=>$trans['onepercent_rebet']
|
||||
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
usort($tebus, function ($a, $b) {
|
||||
$compare_teller = strcmp($a['teller'], $b['teller']);
|
||||
|
||||
if ($compare_teller === 0) {
|
||||
return strcmp($a['t_tebus'], $b['t_tebus']);
|
||||
}
|
||||
|
||||
return $compare_teller;
|
||||
});
|
||||
|
||||
return response()->json($tebus);
|
||||
}
|
||||
|
||||
@@ -272,13 +282,23 @@ class TebusController extends Controller
|
||||
"nama"=>$customer_info['nama'],
|
||||
"nokp"=>$tebusData['nokp'],
|
||||
"jbg"=>$tebusData['jbg'],
|
||||
"ujrah"=>$tebusData['ujrah'],
|
||||
"onepercent"=>$tebusData['onepercent']
|
||||
"ujrah"=>$trans['ujrah_rebet'],
|
||||
"onepercent"=>$trans['onepercent_rebet']
|
||||
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
usort($tebus, function ($a, $b) {
|
||||
$compare_teller = strcmp($a['teller'], $b['teller']);
|
||||
|
||||
if ($compare_teller === 0) {
|
||||
return strcmp($a['t_tebus'], $b['t_tebus']);
|
||||
}
|
||||
|
||||
return $compare_teller;
|
||||
});
|
||||
|
||||
return response()->json($tebus);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user