FIX EV3-444 Hibás számítás Hooreyca adatok pager totalcount number
This commit is contained in:
parent
f5d04f29b9
commit
940c8ce31a
@ -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');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user