From 0761be6613272f5be176ba58a61ecac79891ad62 Mon Sep 17 00:00:00 2001 From: Aldarien Date: Wed, 29 Nov 2023 21:14:55 -0300 Subject: [PATCH] Precio = valor propiedad o precio --- app/resources/views/ventas/facturacion/show.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/resources/views/ventas/facturacion/show.blade.php b/app/resources/views/ventas/facturacion/show.blade.php index 171bbfa..2762943 100644 --- a/app/resources/views/ventas/facturacion/show.blade.php +++ b/app/resources/views/ventas/facturacion/show.blade.php @@ -151,7 +151,7 @@ terreno: {{$IPC->readjust($venta->proyecto()->terreno->valor, $venta->proyecto()->terreno->date, $venta->currentEstado()->fecha)}}, uf: {{$UF->get($venta->currentEstado()->fecha)}}, unidades: JSON.parse('{!! json_encode(array_map(function(Incoviba\Model\Venta\PropiedadUnidad $unidad) use ($venta, $UF, $format) { - $precio = $unidad->valor; + $precio = ($unidad->valor > 0) ? $unidad->valor : $unidad->precio($venta->currentEstado())->valor; return [ 'pu_id' => $unidad->pu_id, 'descripcion' => ucwords($unidad->proyectoTipoUnidad->tipoUnidad->descripcion) . ' ' . $unidad->descripcion,