Ventas->Listado->Ventas

This commit is contained in:
Juan Pablo Vial
2023-07-28 16:22:20 -04:00
parent 38383f5295
commit ef30ae67d2
52 changed files with 1496 additions and 17 deletions

View File

@ -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;
}
}