update laporan peti besi

This commit is contained in:
Nur Izzati
2026-02-22 15:31:11 +08:00
parent b70bd7ce51
commit df734c2482
@@ -127,10 +127,12 @@ class OutstandingController extends Controller
if (!empty($endDate)) {
$queryAll->where('tarikh', '=', $endDate);
}
$record = $queryAll->first();
return $record
? $record->toArray()
: ['bakieod' => 0];
return array_merge(
$queryAll->first()->toArray()
);
}, $active_cawangan_db_connection);
// Combine data with branch info