update show duplicated invoice

This commit is contained in:
edmondlang
2023-03-09 12:34:37 +08:00
parent 3d15a8e312
commit 7e04580be0
+1 -1
View File
@@ -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')