Merged in afiqhamzah/fix/change_implementation_get_ujrah_detail (pull request #167)

Fix undefined array_utg erros when getting customer info data
This commit is contained in:
Afiq Hamzah
2024-06-10 03:47:59 +00:00
@@ -584,6 +584,17 @@ class TransactionOnlineController extends Controller
if (sizeof($akanlelong) != 0) {
foreach ($akanlelong as $lelong) {
if ($lelong['tagbaru'] == 1) {
$jenis = 'onepercent';
} else {
$jenis = 'asal';
}
$array_utg = new \Illuminate\Http\Request([
'jeniskeuntungan' => $jenis
]);
$result = (new TebusController)->kiraupahTawarruq($lelong['kodcaw'], $lelong['norujukan'], $array_utg);
$lelong['keuntungan'] = $result;
array_push($akanlelongarray, $lelong);