Skip to content

Commit 914743e

Browse files
pablohmontenegrojjscarafia
authored andcommitted
[IMP] l10n_ar_tax: do not create non earning withholdings with amount 0
Task Adhoc side: 53286
1 parent 0f3b42f commit 914743e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

l10n_ar_tax/models/account_fiscal_position.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ def _l10n_ar_add_taxes(self, partner, company, date, tax_type):
3535
# agregamos taxes para grupos de impuestos que no estaban seteados en el partner
3636
if not partner_tax:
3737
partner_tax = fp_tax._get_missing_taxes(partner, date)
38+
if partner_tax.l10n_ar_tax_type not in ["earnings", "earnings_scale"] and partner_tax.amount == 0:
39+
# si el impuesto no es de ganancias y su monto es 0, no lo agregamos
40+
continue
3841
taxes |= partner_tax
3942
return taxes
4043

0 commit comments

Comments
 (0)