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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user