Skip to content

Commit faf8394

Browse files
committed
[IMP] l10n_ar_tax: Add amount_exact field to preserve full decimal precision
closes #1379 Signed-off-by: Filoquin adhoc <maq@adhoc.com.ar>
1 parent 3de8064 commit faf8394

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

l10n_ar_tax/models/account_payment.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ def _onchange_withholdings(self):
108108
# no pasamos a importes negativos (por ej. si se ponene retenciones grandes) porque es molesto
109109
# empieza a salir un raise que no deja editar cosas
110110
rec.amount = amount if amount > 0 else 0
111+
# Sincronizar amount_exact con el nuevo amount para mantener consistencia
112+
rec.amount_exact = rec.amount
111113
# rec.unreconciled_amount = rec.to_pay_amount - rec.selected_debt
112114

113115
@api.onchange("partner_id")

0 commit comments

Comments
 (0)