From 940c8ce31afae1c4b0adbe02365f21807f60f9fb Mon Sep 17 00:00:00 2001 From: E98Developer Date: Mon, 29 Jun 2026 08:33:33 +0200 Subject: [PATCH] =?UTF-8?q?FIX=20EV3-444=20Hib=C3=A1s=20sz=C3=A1m=C3=ADt?= =?UTF-8?q?=C3=A1s=20Hooreyca=20adatok=20pager=20totalcount=20number?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/api/v1/OrderController.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/api/v1/OrderController.php b/app/Http/Controllers/api/v1/OrderController.php index 9a9a6ac..0ff69cf 100644 --- a/app/Http/Controllers/api/v1/OrderController.php +++ b/app/Http/Controllers/api/v1/OrderController.php @@ -153,14 +153,12 @@ public function unProcessed(Request $request,Responder $responder) //->whereNulll('APIConfirmed') ->whereNotNull('confirmed') ->whereNull('APIConfirmed') + ->whereHas('profitCenter', function ($query) { + $query->where('hooreycaDataActive', 1); + }) ->orderBy('id','desc')->paginate(3) ; - $filteredProfitCentersOrder=$OrderCollection->filter(function ($v) { - return $v->profitCenter!=null; - }); - $OrderCollection->setCollection($filteredProfitCentersOrder); - /* where condition not working on paginated eloquent collection dd($OrderCollection->toArray()); $OrderCollection=$OrderCollection->whereNotNull('profit_center');