From 2600bd409e821e0f4e86778e26b10e010df671fc Mon Sep 17 00:00:00 2001 From: Aldarien Date: Wed, 29 Nov 2023 21:17:06 -0300 Subject: [PATCH] FIX: fecha estado venta --- 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 2762943..5aebaa1 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 > 0) ? $unidad->valor : $unidad->precio($venta->currentEstado())->valor; + $precio = ($unidad->valor > 0) ? $unidad->valor : $unidad->precio($venta->currentEstado()->fecha)->valor; return [ 'pu_id' => $unidad->pu_id, 'descripcion' => ucwords($unidad->proyectoTipoUnidad->tipoUnidad->descripcion) . ' ' . $unidad->descripcion,