From 42cf3972ce435e5977f3ff27e8cf40f9e37523c6 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Thu, 3 Dec 2020 17:23:36 +0800 Subject: [PATCH] include approved po's in the system --- routes/web.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/routes/web.php b/routes/web.php index a4b5692d..94bfd44d 100644 --- a/routes/web.php +++ b/routes/web.php @@ -29,9 +29,7 @@ Route::get('/po-approval', function(){ foreach ($invoices as $invoice){ echo "".$invoice->invoice->booking->id."
"; } - $bookings = Booking::where('admin_status', 6)->whereDoesntHave('purchaseOrder')->orWhereDoesntHave('invoice', function($q){ - $q->where('invoice_path', '=', '')->orWhereNull('invoice_path'); - })->get(); + $bookings = Booking::where('admin_status', 6)->whereDoesntHave('purchaseOrder')->get(); echo "

Total Po Pending Customer Update: ".count($bookings)."

"; foreach ($bookings as $booking){ echo "".$booking->id."
";