update xpo

This commit is contained in:
Omair Saleh
2023-02-23 15:59:28 +08:00
parent 1d8c4c3fff
commit 70cc33c776
@@ -65,7 +65,7 @@ class AutoPurchaseOrderFillLogic extends AbstractControllerLogic
public function logic(Request $request) : JsonResponse
{
$bookings = Booking::where('service_id', '!=', 4)->where(function($query){
return $query->whereMonth('created_at', 07)->whereYear('created_at', 2022);
return $query->whereMonth('created_at', '>', 07)->whereYear('created_at', 2022);
})->whereDoesntHave('transactions', function($q){
$q->where('type', TransactionType::PURCHASE_ORDER);
$q->whereIn('status', [ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::APPROVED]);