feature/cierres #25

Open
aldarien wants to merge 446 commits from feature/cierres into develop
323 changed files with 967 additions and 12847 deletions
Showing only changes of commit 5736a346e7 - Show all commits

View File

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