include approved po's in the system

This commit is contained in:
omair saleh
2020-12-03 17:22:02 +08:00
parent 2c62a5b139
commit 016b150cdf
+1 -1
View File
@@ -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 "<h1>Total Po Pending Customer Update: <b>".count($bookings)."</b></h1>";
foreach ($bookings as $booking){
echo "<a target='_blank' href='https://exchange.cief-malaysia.com/booking/".$booking->id."/upload-invoice'>".$booking->id."</a><br>";