From 7e04580be0fda200dd561e112e0454395cfcd9a3 Mon Sep 17 00:00:00 2001 From: edmondlang Date: Thu, 9 Mar 2023 12:34:37 +0800 Subject: [PATCH] update show duplicated invoice --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 3f5c86df..3b2bf285 100644 --- a/routes/web.php +++ b/routes/web.php @@ -802,7 +802,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::COMPLETED) + ->where('status', '!=' , ApprovalStatus::EXPIRED) ->where('deleted_at', null) ->select('owner_id', DB::raw('count(*) as count')) ->groupBy('owner_id')