mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-19 04:24:16 +00:00
update xpo for nov to feb
This commit is contained in:
@@ -65,12 +65,8 @@ class AutoPurchaseOrderFillLogic extends AbstractControllerLogic
|
||||
public function logic(Request $request) : JsonResponse
|
||||
{
|
||||
$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){
|
||||
return $query->whereMonth('created_at', 11)->orWhereMonth('created_at', 12)->orWhereMonth('created_at', 1)->orWhereMonth('created_at', 2);
|
||||
})->whereDoesntHave('transactions', function($q){
|
||||
$q->where('type', TransactionType::PURCHASE_ORDER);
|
||||
$q->whereIn('status', [ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::APPROVED]);
|
||||
})->get();
|
||||
|
||||
Reference in New Issue
Block a user