From ef315b147901918cf87610d4e0a1c2ca1ff00865 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 25 Mar 2026 17:19:21 +0100 Subject: [PATCH] =?UTF-8?q?Correcci=C3=B3n=20tipo=20de=20valor=20de=20reto?= =?UTF-8?q?rno?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/utils/importes_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/importes_helper.py b/app/utils/importes_helper.py index 95335e7..e4f0dad 100644 --- a/app/utils/importes_helper.py +++ b/app/utils/importes_helper.py @@ -67,7 +67,7 @@ def calc_discount_cents4(subtotal_cents4: int, disc_pct: Optional[Decimal | floa pct = Decimal(str(disc_pct or 0)) # descuento = round(subtotal * pct / 100) en la MISMA escala (×10000) disc = (Decimal(subtotal_cents4) * pct / Decimal(100)).to_integral_value(rounding=ROUND_HALF_UP) - return disc + return int(disc) def apply_discount_cents4(subtotal_cents4: int, disc_pct: Optional[Decimal | float | int]) -> Tuple[int, int]: