From 86406bf027f8b091676fd9a8297e4f19d8fa0848 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Tue, 26 Mar 2024 16:41:33 -0300 Subject: [PATCH] Fecha cuota --- .../views/ventas/pies/cuotas.blade.php | 10 +++++-- app/src/Controller/API/Ventas/Pagos.php | 29 ++++++++++++++++--- app/src/Controller/Ventas.php | 6 +++- app/src/Model/Venta/Pago.php | 17 +++++++++++ app/src/Service/Money.php | 5 +--- app/src/Service/Venta/Pago.php | 16 ++++++---- 6 files changed, 65 insertions(+), 18 deletions(-) diff --git a/app/resources/views/ventas/pies/cuotas.blade.php b/app/resources/views/ventas/pies/cuotas.blade.php index a0962b9..15418fb 100644 --- a/app/resources/views/ventas/pies/cuotas.blade.php +++ b/app/resources/views/ventas/pies/cuotas.blade.php @@ -76,6 +76,9 @@ @if (in_array($cuota->pago->currentEstado->tipoEstadoPago->descripcion, ['abonado', 'anulado', 'reemplazado'])) {{$cuota->pago->currentEstado->fecha->format('d-m-Y')}} @elseif (!in_array($cuota->pago->currentEstado->tipoEstadoPago->descripcion, ['anulado', 'reemplazado'])) + @if ($cuota->pago->currentEstado->tipoEstadoPago->descripcion === 'depositado') + {{$cuota->pago->currentEstado->fecha->format('d-m-Y')}} + @endif
@@ -169,9 +172,10 @@ @push('page_scripts')