Mostrar porcentajes en venta
This commit is contained in:
@ -58,6 +58,7 @@
|
|||||||
if (!this.venta.current_estado.tipo_estado_venta.activa) {
|
if (!this.venta.current_estado.tipo_estado_venta.activa) {
|
||||||
unidad.html(unidad.html() + ' (I)')
|
unidad.html(unidad.html() + ' (I)')
|
||||||
}
|
}
|
||||||
|
unidad.html(unidad.html() + ' <i class="angle right icon"></i>')
|
||||||
propietario = $('<a></a>')
|
propietario = $('<a></a>')
|
||||||
.attr('href','{{$urls->base}}/search/"' + encodeURIComponent(this.venta.propietario.nombre_completo) + '"/propietario')
|
.attr('href','{{$urls->base}}/search/"' + encodeURIComponent(this.venta.propietario.nombre_completo) + '"/propietario')
|
||||||
.html(this.venta.propietario.nombre_completo)
|
.html(this.venta.propietario.nombre_completo)
|
||||||
|
@ -167,7 +167,8 @@
|
|||||||
}, 0.0))}}
|
}, 0.0))}}
|
||||||
</th>
|
</th>
|
||||||
<th class="right aligned">
|
<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>
|
||||||
<th colspan="3"></th>
|
<th colspan="3"></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td><strong>Anticipo</strong></td>
|
<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->ufs($anticipo['uf'])}}</strong></td>
|
||||||
<td class="right aligned"><strong>{{$format->pesos($anticipo['pesos'])}}</strong></td>
|
<td class="right aligned"><strong>{{$format->pesos($anticipo['pesos'])}}</strong></td>
|
||||||
<td colspan="2"></td>
|
<td colspan="2"></td>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
@if ($bonoPie !== null)
|
@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->ufs($bonoPie->pago->valor())}}</td>
|
||||||
<td class="right aligned">{{$format->pesos($bonoPie->pago->valor)}}</td>
|
<td class="right aligned">{{$format->pesos($bonoPie->pago->valor)}}</td>
|
||||||
<td colspan="2"></td>
|
<td colspan="2"></td>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
@if ($credito !== null)
|
@if ($credito !== null)
|
||||||
<td></td>
|
<td>{{ $format->percent($credito->pago->valor() / $venta->valor, 2, true) }}</td>
|
||||||
<td class="right aligned">
|
<td class="right aligned">
|
||||||
{{$format->ufs($credito->pago->valor())}}
|
{{$format->ufs($credito->pago->valor())}}
|
||||||
</td>
|
</td>
|
||||||
|
@ -13,8 +13,8 @@
|
|||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td></td>
|
|
||||||
@if ($pie !== null)
|
@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->ufs($pie->valor)}}</td>
|
||||||
<td class="right aligned">{{$format->pesos($pie->valor * $pie->uf)}}</td>
|
<td class="right aligned">{{$format->pesos($pie->valor * $pie->uf)}}</td>
|
||||||
<td class="right aligned">Cuotas</td>
|
<td class="right aligned">Cuotas</td>
|
||||||
@ -35,7 +35,7 @@
|
|||||||
@if ($pie !== null)
|
@if ($pie !== null)
|
||||||
<tr>
|
<tr>
|
||||||
<td>Pagado</td>
|
<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->ufs($pie->pagado())}}</td>
|
||||||
<td class="right aligned">{{$format->pesos($pie->pagado('pesos'))}}</td>
|
<td class="right aligned">{{$format->pesos($pie->pagado('pesos'))}}</td>
|
||||||
<td colspan="2"></td>
|
<td colspan="2"></td>
|
||||||
|
Reference in New Issue
Block a user