FIX: Precio Unidad no existe

This commit is contained in:
2023-12-13 12:44:32 -03:00
parent 8f2f90aca2
commit 8b9b02825a
2 changed files with 5 additions and 1 deletions

View File

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