Merged in izzati-addfeat-laporan-outstanding-v2 (pull request #400)

update laporan peti besi
This commit is contained in:
izzati zulkifli
2026-02-22 07:32:01 +00:00
@@ -127,10 +127,12 @@ class OutstandingController extends Controller
if (!empty($endDate)) {
$queryAll->where('tarikh', '=', $endDate);
}
return array_merge(
$queryAll->first()->toArray()
);
$record = $queryAll->first();
return $record
? $record->toArray()
: ['bakieod' => 0];
}, $active_cawangan_db_connection);
// Combine data with branch info