mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-29 01:04:21 +00:00
include approved po's in the system
This commit is contained in:
+9
-2
@@ -33,9 +33,16 @@ Route::get('/po-approval', function(){
|
||||
$bookings = Booking::where('admin_status', 6)->where(function($q){
|
||||
$q->WhereDoesntHave('invoice')->WhereDoesntHave('purchaseOrder');
|
||||
})->get();
|
||||
$months = $bookings->groupBy(function($item) {
|
||||
return $item->created_at->format('Y-m');
|
||||
});
|
||||
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>";
|
||||
foreach ($months as $month => $bookings) {
|
||||
echo "<h3>".$month."(".count($bookings).")</h3><br>";
|
||||
foreach ($bookings as $booking) {
|
||||
echo "<a target='_blank' href='https://exchange.cief-malaysia.com/booking/".$booking->id."/upload-invoice'>".$booking->id."</a> <small>date: ".$booking->created_at."</small><br>";
|
||||
}
|
||||
echo "<br><br><br>";
|
||||
}
|
||||
|
||||
})->name('po.approval');
|
||||
|
||||
Reference in New Issue
Block a user