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