Fix undefined array_utg erros when getting customer info data

This commit is contained in:
Afiq Hamzah
2024-06-10 11:46:51 +08:00
parent 8a55ced7f6
commit 0a501a5456
@@ -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);