Valor debiese ser el último precio.
This commit is contained in:
@ -96,9 +96,7 @@ class PropiedadUnidad
|
||||
try {
|
||||
$unidad->precios = $this->precioService->getByUnidad($unidad->id);
|
||||
$unidad->currentPrecio = $this->precioService->getVigenteByUnidad($unidad->id);
|
||||
if ($unidad->valor === null or $unidad->valor === 0) {
|
||||
$unidad->valor = $unidad->currentPrecio->valor;
|
||||
}
|
||||
$unidad->valor = $unidad->currentPrecio->valor;
|
||||
} catch (Read) {}
|
||||
return $unidad;
|
||||
}
|
||||
|
Reference in New Issue
Block a user