2 Commits

Author SHA1 Message Date
e8d43e43ff FIX: fecha saldo consolidado 2024-02-28 13:45:20 -03:00
fc9788a1cd FIX: Mostrar pie con cuotas vigentes 2024-02-28 10:37:51 -03:00
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
<a href="{{$urls->base}}/venta/{{$venta->id}}/pie/cuotas">
<span data-tooltip="Pagadas">{{count($pie->cuotas(true))}}</span>/{{$pie->cuotas}}
</a>
@if (count($pie->cuotas()) < $pie->cuotas)
@if (count($pie->cuotas(false, true)) < $pie->cuotas)
<a href="{{$urls->base}}/ventas/pie/{{$pie->id}}/cuotas/add">
<i class="plus icon"></i>
</a>

View File

@ -18,7 +18,7 @@ class Pie extends Model
public function cuotas(bool $pagadas = false, bool $vigentes = false): array
{
if ($this->asociado !== null) {
return $this->asociado->cuotas($pagadas);
return $this->asociado->cuotas($pagadas, $vigentes);
}
if (!$pagadas and !$vigentes) {
return $this->cuotasArray;

View File

@ -254,7 +254,7 @@ class Excel extends Ideal\Service
'bold' => true
]
]);
$sheet->getCell("U{$rowIndex}")->setValue("=C5")
$sheet->getCell("U{$rowIndex}")->setValue("=C4")
->getStyle()->applyFromArray([
'font' => [
'bold' => true