Merge branch 'develop'

This commit is contained in:
2023-02-13 17:18:41 -03:00

View File

@ -82,7 +82,7 @@
?>
@foreach ($venta->pie()->cuotas() as $cuota)
<tr>
<td class="@include('ventas.pies.cuotas.estado')">
<td class="@include('ventas.pies.cuotas.estado', compact('cuota'))">
<a href="{{url('', ['p' => 'cuotas', 'a' => 'show', 'cuota' => $cuota->id])}}">{{++$cnt}} <span class="glyphicon glyphicon-edit small"></span></a>
</td>
<td>{{\App\Helper\Format::shortDate($cuota->pago()->fecha)}}</td>
@ -96,7 +96,7 @@
</td>
<td class="text-right">$ {{\App\Helper\Format::pesos($cuota->valor())}}</td>
<td class="text-right">{{\App\Helper\Format::ufs($cuota->valor('ufs'))}} UF</td>
<td class="text-center @include('ventas.pies.cuotas.estado')">
<td class="text-center @include('ventas.pies.cuotas.estado', ['cuota' => $cuota])">
{{\App\Helper\Format::shortDate($cuota->pago()->estado()->fecha)}}
<a href="{{url('', ['p' => 'pagos', 'a' => 'edit', 'pago' => $cuota->pago()->id, 'asociado' => 'venta', 'venta' => $venta->id])}}"><span class="glyphicon glyphicon-edit small"></span></a>
</td>
@ -179,25 +179,25 @@
'ufs' => $total->pagado_uf
];
?>
@include('ventas.pies.totales')
@include('ventas.pies.totales', compact('valores'))
<?php
$valores->titulo = 'Por Pagar';
$valores->pesos = $total->por_pagar;
$valores->ufs = $total->por_pagar_uf;
?>
@include('ventas.pies.totales')
@include('ventas.pies.totales', compact('valores'))
<?php
$valores->titulo = 'Total Cuotas';
$valores->pesos = $total->cuotas;
$valores->ufs = $total->cuotas_uf;
?>
@include('ventas.pies.totales')
@include('ventas.pies.totales', compact('valores'))
<?php
$valores->titulo = 'Diferencia c/Pie';
$valores->pesos = $total->dif;
$valores->ufs = $total->dif_uf;
?>
@include('ventas.pies.totales')
@include('ventas.pies.totales', compact('valores'))
</tbody>
</table>
<a href="{{nUrl('informes', 'cuotas', ['venta' => $venta->id])}}">Exportar</a>