Devolviendo solamente pedidos de hogares

This commit is contained in:
Alejandro Tasistro 2025-06-20 17:03:52 -03:00
parent 8fb810c73f
commit db87c38e3b

View file

@ -19,7 +19,7 @@ class GrupoDeCompraResource extends JsonResource
'id' => $this->id,
'nombre' => $this->nombre,
'devoluciones_habilitadas' => $this->devoluciones_habilitadas,
'pedidos' => SubpedidoResource::collection($this->subpedidos),
'pedidos' => SubpedidoResource::collection($this->pedidosHogares()),
'total_a_recaudar' => number_format($this->totalARecaudar(),2),
'saldo' => number_format($this->saldo, 2, ".", ""),
'total_sin_devoluciones' => number_format($this->totalSinDevoluciones(),2),