From 016b150cdf23929daa940f056ffce93de6a257b0 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Thu, 3 Dec 2020 17:22:02 +0800 Subject: [PATCH] include approved po's in the system --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 7bfb2637..a4b5692d 100644 --- a/routes/web.php +++ b/routes/web.php @@ -31,7 +31,7 @@ Route::get('/po-approval', function(){ } $bookings = Booking::where('admin_status', 6)->whereDoesntHave('purchaseOrder')->orWhereDoesntHave('invoice', function($q){ $q->where('invoice_path', '=', '')->orWhereNull('invoice_path'); - }); + })->get(); echo "

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

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