Skip to content

Commit abf115f

Browse files
committed
[FIX] l10n_ar_tax: Fix counterpart values from other currency wth
closes #1311 Signed-off-by: Camila Vives <cav@adhoc.inc>
1 parent 7e80547 commit abf115f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

l10n_ar_tax/models/account_payment.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,11 @@ def _prepare_move_lines_per_type(self, write_off_line_vals=None, force_balance=N
217217
if counterpart_lines:
218218
# the counterpart line (debt) should be the gross amount (net + withholdings)
219219
counterpart_lines[0]["balance"] -= wth_balance
220-
counterpart_lines[0]["amount_currency"] -= wth_amount_currency
220+
# Solo sumo el valor de la retencion si no uso moneda de contrpartida
221+
# porque sino ya esta incluido el total en el campo amount_currency
222+
# Porque lo cambio Payment pro
223+
if not self._use_counterpart_currency():
224+
counterpart_lines[0]["amount_currency"] -= wth_amount_currency
221225

222226
return res
223227

0 commit comments

Comments
 (0)