Ventas->Listado->Ventas
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
namespace Incoviba\Service\Ventas;
|
||||
|
||||
use Incoviba\Repository;
|
||||
use Incoviba\Model;
|
||||
|
||||
class Precio
|
||||
{
|
||||
@ -16,4 +17,11 @@ class Precio
|
||||
}
|
||||
return $precios;
|
||||
}
|
||||
public function getByUnidad(int $unidad_id): Model\Venta\Precio
|
||||
{
|
||||
$precio = $this->precioRepository->fetchByUnidad($unidad_id);
|
||||
$precio->estados = $this->estadoPrecioRepository->fetchByPrecio($precio->id);
|
||||
$precio->current = $this->estadoPrecioRepository->fetchCurrentByPrecio($precio->id);
|
||||
return $precio;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user