update xpo for nov to feb

This commit is contained in:
omair saleh
2022-04-05 16:15:59 +08:00
parent 800c723416
commit be7d5bb95f
@@ -65,7 +65,7 @@ class AutoPurchaseOrderFillLogic extends AbstractControllerLogic
public function logic(Request $request) : JsonResponse
{
$bookings = Booking::where(function($query){
return $query->whereMonth('created_at', 11)->orWhereMonth('created_at', 12)->orWhereMonth('created_at', 1)->orWhereMonth('created_at', 2);
return $query->whereMonth('created_at', 11)->orWhereMonth('created_at', 12);
})->whereDoesntHave('transactions', function($q){
$q->where('type', TransactionType::PURCHASE_ORDER);
$q->whereIn('status', [ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::APPROVED]);