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)) { if (!empty($endDate)) {
$queryAll->where('tarikh', '=', $endDate); $queryAll->where('tarikh', '=', $endDate);
} }
$record = $queryAll->first();
return array_merge(
$queryAll->first()->toArray() return $record
); ? $record->toArray()
: ['bakieod' => 0];
}, $active_cawangan_db_connection); }, $active_cawangan_db_connection);
// Combine data with branch info // Combine data with branch info