FIX EV3-444 Hibás számítás Hooreyca adatok pager totalcount number

This commit is contained in:
E98Developer 2026-06-29 08:33:33 +02:00
parent f5d04f29b9
commit 940c8ce31a

View File

@ -153,14 +153,12 @@ public function unProcessed(Request $request,Responder $responder)
//->whereNulll('APIConfirmed') //->whereNulll('APIConfirmed')
->whereNotNull('confirmed') ->whereNotNull('confirmed')
->whereNull('APIConfirmed') ->whereNull('APIConfirmed')
->whereHas('profitCenter', function ($query) {
$query->where('hooreycaDataActive', 1);
})
->orderBy('id','desc')->paginate(3) ->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 /* where condition not working on paginated eloquent collection
dd($OrderCollection->toArray()); dd($OrderCollection->toArray());
$OrderCollection=$OrderCollection->whereNotNull('profit_center'); $OrderCollection=$OrderCollection->whereNotNull('profit_center');