xpo jan & feb

This commit is contained in:
Omair Saleh
2023-05-15 10:44:04 +08:00
parent bc7c0026bd
commit e84f288d39
@@ -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', '<', 03)->whereYear('created_at', 2023);
})->whereDoesntHave('transactions', function($q){
$q->where('type', TransactionType::PURCHASE_ORDER);
$q->whereIn('status', [ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::APPROVED]);