From 2bb4afe4263d5d71ae7abc548f93ceedda26565f Mon Sep 17 00:00:00 2001 From: edmondlang Date: Wed, 12 Apr 2023 11:58:10 +0800 Subject: [PATCH] update show duplicated invoice logic --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 1fa8f7b9..813eebba 100644 --- a/routes/web.php +++ b/routes/web.php @@ -870,7 +870,7 @@ Route::get('/invoices/approve', function(Request $request){ Route::get('/invoices/show-duplicated', function(Request $request){ $transactionWithMultipleInvoice = DB::table('transactions') ->where('type', TransactionType::SHIPPING_INVOICE) - ->where('status', '!=' , ApprovalStatus::EXPIRED) + ->whereNotIn('status', [ApprovalStatus::EXPIRED, ApprovalStatus::SUSPENDED]) ->where('deleted_at', null) ->select('owner_id', DB::raw('count(*) as count')) ->groupBy('owner_id')