diff --git a/routes/web.php b/routes/web.php index bcc18e2d..835380b1 100644 --- a/routes/web.php +++ b/routes/web.php @@ -766,7 +766,7 @@ Route::get('/generate/invoices', function(){ Route::get('/invoices/approve', function(Request $request){ // whereDoesntHave - $invoices = Transaction::where('type', TransactionType::SHIPPING_INVOICE)->get(); + $invoices = Transaction::where('type', TransactionType::SHIPPING_INVOICE)->where('status', ApprovalStatus::PENDING_SUBMISSION)->get(); dd($invoices); foreach ($invoices as $invoice) { $order = $invoice->owner->owner;