pending customer po grouped by customer

This commit is contained in:
omair saleh
2020-12-07 12:18:30 +08:00
parent 7fc29728b2
commit bd270bf356
+1 -1
View File
@@ -75,7 +75,7 @@ Route::group(['middleware' => ['role:admin']], function() {
$bookings = Booking::where('admin_status', 6)->where(function($q){
$q->WhereDoesntHave('invoice')->WhereDoesntHave('purchaseOrder');
})->whereDate('created_at', '>=', Carbon::parse('01/04/2020')->format('Y-m-d'))->get();
})->whereYear('created_at', 2020)->whereMonth('created_at', '>=', 4)->get();
$months = $bookings->groupBy(function($item) {
return $item->created_at->format('Y-m');
});