update june xpo

This commit is contained in:
omair saleh
2022-09-01 17:50:22 +08:00
parent 11188ffe48
commit fff77aee7f
@@ -65,7 +65,7 @@ class AutoPurchaseOrderFillLogic extends AbstractControllerLogic
public function logic(Request $request) : JsonResponse
{
$bookings = Booking::where(function($query){
return $query->whereMonth('created_at', 05)->whereYear('created_at', 2022);
return $query->whereMonth('created_at', 06)->whereYear('created_at', 2022);
})->whereDoesntHave('transactions', function($q){
$q->where('type', TransactionType::PURCHASE_ORDER);
$q->whereIn('status', [ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::APPROVED]);