From 513c57f6224a6893631ab20435f8aeeb02433708 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Thu, 3 Dec 2020 17:29:27 +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 c93542fd..37bbc3f2 100644 --- a/routes/web.php +++ b/routes/web.php @@ -29,7 +29,7 @@ Route::get('/po-approval', function(){ foreach ($invoices as $invoice){ echo "".$invoice->invoice->booking->id."
"; } - $bookings = Booking::where('admin_status', 6)->whereDoesntHave('purchaseOrder')->WhereDoesntHave('invoice')->get(); + $bookings = Booking::where('admin_status', 6)->whereDoesntHave('purchaseOrder')->orWhereDoesntHave('invoice')->get(); echo "

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

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