Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No calcula la retencion de "Percepción de IVA" en el archivo del IVA Digital #42

Open
LucioBisiach opened this issue Mar 4, 2021 · 0 comments

Comments

@LucioBisiach
Copy link

LucioBisiach commented Mar 4, 2021

No calcula la retención de Percepción de IVA, en el archivo de vouchers del iva digital
Versión: Odoo 13

Al generar el txt de vouchers no computa las percepciones. Hay un error en el código:

Codigo que no funciona - Linea 392:

                self.format_amount(
                    sum(inv.move_tax_ids.filtered(lambda r: (
                        r.tax_id.tax_group_id.tax_type == 'withholding' and
                        r.tax_id.tax_group_id.tax == 'vat' and
                        r.tax_id.tax_group_id.l10n_ar_tribute_afip_code \
                        == '01')
                    ).mapped(
                        'tax_amount')), invoice=inv),

Modificaciones para que funcione:

                self.format_amount(
                    sum(inv.l10n_latam_tax_ids.filtered(lambda r: (
                        r.tax_line_id.tax_group_id.tax_type == 'withholdings' and
                        r.tax_line_id.tax_group_id.l10n_ar_tribute_afip_code \
                        == '06')
                    ).mapped('debit')), invoice=inv),
@LucioBisiach LucioBisiach changed the title No calcula la retencion de "Percepción de IVA" No calcula la retencion de "Percepción de IVA" en el archivo del IVA Digital Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant