diff --git a/routes/web.php b/routes/web.php index a448d558..4e5e1eb2 100644 --- a/routes/web.php +++ b/routes/web.php @@ -958,6 +958,7 @@ Route::get('/packing-lists/delete-duplicated', function(Request $request){ Route::get('/final-duplicated-invoice-debug', function(){ $duplicatedTransactions = Transaction::select(DB::raw('owner_type, owner_id, receiver, type, GROUP_CONCAT(id) as transaction_ids, COUNT(*) as count')) + ->whereNotIn('status', [ApprovalStatus::REJECTED,ApprovalStatus::SUSPENDED,ApprovalStatus::EXPIRED]) ->groupBy('owner_type', 'owner_id', 'receiver', 'type') ->having('count', '>', 1) ->get();