Skip to content

Commit

Permalink
fix undefined invoice_tax variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lukio committed Feb 12, 2020
1 parent c8fd314 commit 21c1016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion citi.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def export_citi_alicuota_ventas(self):
importe_neto_gravado = Decimal('0')
impuesto_liquidado = Decimal('0')
for tax_line in invoice.taxes:
if invoice_tax.tax.group.afip_kind == 'gravado':
if tax_line.tax.group.afip_kind == 'gravado':
alicuota_id = tax_line.tax.iva_code.rjust(4, '0')
#alicuota_id = tax_line.base_code.code.rjust(4, '0')
importe_neto_gravado = abs(tax_line.base)
Expand Down

0 comments on commit 21c1016

Please sign in to comment.