From fc9788a1cdb96dfc1f977239df36681d30ff62d9 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Wed, 28 Feb 2024 10:37:51 -0300 Subject: [PATCH] FIX: Mostrar pie con cuotas vigentes --- app/resources/views/ventas/show/forma_pago/pie.blade.php | 2 +- app/src/Model/Venta/Pie.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/resources/views/ventas/show/forma_pago/pie.blade.php b/app/resources/views/ventas/show/forma_pago/pie.blade.php index 6471f06..bb5e032 100644 --- a/app/resources/views/ventas/show/forma_pago/pie.blade.php +++ b/app/resources/views/ventas/show/forma_pago/pie.blade.php @@ -16,7 +16,7 @@ {{count($pie->cuotas(true))}}/{{$pie->cuotas}} - @if (count($pie->cuotas()) < $pie->cuotas) + @if (count($pie->cuotas(false, true)) < $pie->cuotas) diff --git a/app/src/Model/Venta/Pie.php b/app/src/Model/Venta/Pie.php index 96d023f..adb5862 100644 --- a/app/src/Model/Venta/Pie.php +++ b/app/src/Model/Venta/Pie.php @@ -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;