Mostrar porcentajes en venta

This commit is contained in:
Juan Pablo Vial
2025-04-03 13:56:11 -03:00
parent 8a1e6a7761
commit b5d6d0acb9
6 changed files with 8 additions and 6 deletions

View File

@ -58,6 +58,7 @@
if (!this.venta.current_estado.tipo_estado_venta.activa) {
unidad.html(unidad.html() + ' (I)')
}
unidad.html(unidad.html() + ' <i class="angle right icon"></i>')
propietario = $('<a></a>')
.attr('href','{{$urls->base}}/search/"' + encodeURIComponent(this.venta.propietario.nombre_completo) + '"/propietario')
.html(this.venta.propietario.nombre_completo)

View File

@ -167,7 +167,8 @@
}, 0.0))}}
</th>
<th class="right aligned">
{{$format->number(($total > 0) ? $pagado / $total * 100 : 0, 2)}}%
{{ $format->percent(($total > 0) ? $pagado / $total : 0, 2, true) }} Pie<br />
{{ $format->percent($pagado / $venta->valor, 2, true) }} Promesa
</th>
<th colspan="3"></th>
</tr>

View File

@ -1,6 +1,6 @@
<tr>
<td><strong>Anticipo</strong></td>
<td></td>
<td>{{ $format->percent($anticipo['uf'] / $venta->valor, 2, true) }}</td>
<td class="right aligned"><strong>{{$format->ufs($anticipo['uf'])}}</strong></td>
<td class="right aligned"><strong>{{$format->pesos($anticipo['pesos'])}}</strong></td>
<td colspan="2"></td>

View File

@ -14,7 +14,7 @@
@endif
</td>
@if ($bonoPie !== null)
<td></td>
<td>{{ $format->percent($bonoPie->pago->valor() / $venta->valor, 2, true) }}</td>
<td class="right aligned">{{$format->ufs($bonoPie->pago->valor())}}</td>
<td class="right aligned">{{$format->pesos($bonoPie->pago->valor)}}</td>
<td colspan="2"></td>

View File

@ -14,7 +14,7 @@
@endif
</td>
@if ($credito !== null)
<td></td>
<td>{{ $format->percent($credito->pago->valor() / $venta->valor, 2, true) }}</td>
<td class="right aligned">
{{$format->ufs($credito->pago->valor())}}
</td>

View File

@ -13,8 +13,8 @@
</a>
@endif
</td>
<td></td>
@if ($pie !== null)
<td>{{ $format->percent($pie->valor / $venta->valor, 2, true) }}</td>
<td class="right aligned">{{$format->ufs($pie->valor)}}</td>
<td class="right aligned">{{$format->pesos($pie->valor * $pie->uf)}}</td>
<td class="right aligned">Cuotas</td>
@ -35,7 +35,7 @@
@if ($pie !== null)
<tr>
<td>Pagado</td>
<td></td>
<td>{{$format->percent($pie->pagado() / $venta->valor, 2, true)}}</td>
<td class="right aligned">{{$format->ufs($pie->pagado())}}</td>
<td class="right aligned">{{$format->pesos($pie->pagado('pesos'))}}</td>
<td colspan="2"></td>