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

Agrupar impuestos por línea de factura en vez de por línea de tasas de factura #147

Open
gdalmau opened this issue Mar 12, 2018 · 0 comments
Assignees

Comments

@gdalmau
Copy link
Contributor

gdalmau commented Mar 12, 2018

Al buscar el detalle del IVA se usan las líneas de tasas de una factura, que están agrupadas por tasa.

for inv_tax in invoice.tax_line:
    if 'iva' in inv_tax.name.lower():
            [...]

Debe cambiarse y buscar las tasas por cada línea de factura:

for inv_line in invoice.invoice_line:
    for tax in inv_line.invoice_line_tax_id:
        if 'iva' in tax.name.lower():
            [...]
@gdalmau gdalmau self-assigned this Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant