mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-19 04:24:16 +00:00
Merge branch 'master' of gitlab.com:CIEFWorldwideSdnBhd/exchange-2.0 into development
This commit is contained in:
@@ -64,7 +64,11 @@ class AutoPurchaseOrderFillLogic extends AbstractControllerLogic
|
||||
*/
|
||||
public function logic(Request $request) : JsonResponse
|
||||
{
|
||||
$bookings = Booking::whereMonth('created_at', 10)
|
||||
$bookings = Booking::where(function($query){
|
||||
return $query->whereMonth('created_at', 10)->orWhere(function ($query){
|
||||
return $query->whereMonth('created_at', 10);
|
||||
});
|
||||
})
|
||||
->whereYear('created_at', 2021)
|
||||
->whereDoesntHave('transactions', function($q){
|
||||
$q->where('type', TransactionType::PURCHASE_ORDER);
|
||||
|
||||
Reference in New Issue
Block a user