FIX: Division por 0

This commit is contained in:
Juan Pablo Vial
2024-07-03 12:19:44 -04:00
parent d0d99eaa81
commit d5b9be0196

View File

@ -26,7 +26,7 @@
<tr>
<td>{{$format->ufs($venta->valor)}}</td>
<td>{{$format->ufs($venta->util())}}</td>
<td>{{$format->number($venta->util() / $venta->propiedad()->vendible(), 2)}} UF/</td>
<td>{{($venta->propiedad()->vendible() > 0) ? $format->number($venta->util() / $venta->propiedad()->vendible(), 2) : 0}} UF/</td>
<td>0,00 UF (0,00%)</td>
<td>
{{$venta->fecha->format('d-m-Y')}}<br/>