From 53115b085f9621674d4180273f6ff773a7c42411 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Tue, 29 Apr 2025 11:29:23 -0400 Subject: [PATCH] Asegurarse que el valor entregado a Pago es en pesos. --- app/src/Service/Venta/Credito.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/Service/Venta/Credito.php b/app/src/Service/Venta/Credito.php index 3d8b5d2..cea7bb1 100644 --- a/app/src/Service/Venta/Credito.php +++ b/app/src/Service/Venta/Credito.php @@ -51,7 +51,7 @@ class Credito extends Ideal\Service $valor = $this->valorService->clean($data['valor']); $pago = $this->pagoService->add([ 'fecha' => $fecha->format('Y-m-d'), - 'valor' => $valor * $uf, + 'valor' => round($valor * $uf), 'uf' => $uf, 'tipo' => $tipoPago->id ]);