Valor de UF de hoy cuando no se encuentra valor.

This commit is contained in:
Juan Pablo Vial
2025-05-05 16:46:14 -04:00
parent 7d04b406ab
commit d1e4314b35

View File

@ -61,6 +61,9 @@
<tbody>@php
$now = new DateTimeImmutable();
$uf_venta = $venta->uf === 0.0 ? $UF->get($venta->currentEstado()->fecha) : $venta->uf;
if ($uf_venta === 0.0) {
$uf_venta = $UF->get();
}
@endphp
@foreach ($venta->formaPago()->pie->cuotas() as $cuota)
<tr data-pago="{{$cuota->pago->id}}"