From 5736a346e71dc2abdfcdef65614d3cae35653d27 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Tue, 22 Apr 2025 15:24:11 -0400 Subject: [PATCH] =?UTF-8?q?Valor=20debiese=20ser=20el=20=C3=BAltimo=20prec?= =?UTF-8?q?io.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/Service/Venta/PropiedadUnidad.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/Service/Venta/PropiedadUnidad.php b/app/src/Service/Venta/PropiedadUnidad.php index 9cb4f7e..59aa9ae 100644 --- a/app/src/Service/Venta/PropiedadUnidad.php +++ b/app/src/Service/Venta/PropiedadUnidad.php @@ -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; }