update xpo

This commit is contained in:
omair saleh
2022-06-28 13:57:27 +08:00
parent 788a063d81
commit 86707b3e91
@@ -65,7 +65,7 @@ class AutoPurchaseOrderFillLogic extends AbstractControllerLogic
public function logic(Request $request) : JsonResponse
{
$bookings = Booking::where(function($query){
return $query->whereMonth('created_at', 01)->orWhereMonth('created_at', 02);
return $query->whereMonth('created_at', 03)->orWhereMonth('created_at', 04);
})->whereDoesntHave('transactions', function($q){
$q->where('type', TransactionType::PURCHASE_ORDER);
$q->whereIn('status', [ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::APPROVED]);