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')
|
||||
->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');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user