Perbaikan Menu Laporan per pintu pos

This commit is contained in:
pand03
2026-04-17 22:57:13 +07:00
parent 47e4b6e178
commit 286dfc3dde

View File

@@ -85,8 +85,8 @@ public function gateData(Request $request)
->when(isset($request->status_transaksi), function ($q) use ($request) {
return match ($request->status_transaksi) {
'0' => $q->whereNotIn('tp.status_transaksi', ['3','-1'])->whereNotNull('alasan'),
// '0' => $q->whereNotIn('tp.status_transaksi', '5')->whereNotNull('alasan'),
// '0' => $q->whereNotIn('tp.status_transaksi', ['3','-1'])->whereNotNull('alasan'),
'0' => $q->where('tp.status_transaksi', '0')->whereNull('alasan'),
'3' => $q->where('tp.status_transaksi', '3')->whereNull('alasan'),
'-1' => $q->where('tp.status_transaksi', '-1')->whereNotNull('alasan'),
'null' => $q->whereNull('alasan')