FIX: UF/m2 con valor venta

This commit is contained in:
2023-12-04 19:08:26 -03:00
parent 377cf51b44
commit 9aa4e0ae1d

View File

@ -47,7 +47,7 @@
</td>
<td class="right aligned">
@if ($unidad->proyectoTipoUnidad->tipoUnidad->descripcion === 'departamento')
{{$format->number($unidad->precio($venta->fecha)->valor / $unidad->proyectoTipoUnidad->vendible(), 2)}} UF/
{{$format->number(($unidad->valor ?? $unidad->precio($venta->fecha)->valor) / $unidad->proyectoTipoUnidad->vendible(), 2)}} UF/
@endif
</td>
<td class="center aligned">