From 286dfc3dde0c9ab2734247d5e81ae380f5d6e5d0 Mon Sep 17 00:00:00 2001 From: pand03 Date: Fri, 17 Apr 2026 22:57:13 +0700 Subject: [PATCH] Perbaikan Menu Laporan per pintu pos --- app/Http/Controllers/ReportTransaksiController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/ReportTransaksiController.php b/app/Http/Controllers/ReportTransaksiController.php index edde08e..d6986dc 100644 --- a/app/Http/Controllers/ReportTransaksiController.php +++ b/app/Http/Controllers/ReportTransaksiController.php @@ -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')