From 68a21ec355aacbb3f8cd1b88c9e6b2e6977c6356 Mon Sep 17 00:00:00 2001 From: sinergia Date: Tue, 24 Oct 2023 16:24:21 -0500 Subject: [PATCH] Se Cambia tipo de impuesto en linea de factura --- facho/fe/form_xml/invoice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/facho/fe/form_xml/invoice.py b/facho/fe/form_xml/invoice.py index 93cb5ce..52d8051 100644 --- a/facho/fe/form_xml/invoice.py +++ b/facho/fe/form_xml/invoice.py @@ -439,6 +439,7 @@ class DIANInvoiceXML(fe.FeXML): if subtotal.scheme is not None: tax_amount_for[subtotal.scheme.code]['tax_amount'] += subtotal.tax_amount tax_amount_for[subtotal.scheme.code]['taxable_amount'] += invoice_line.taxable_amount + tax_amount_for[subtotal.scheme.code]['name'] = subtotal.scheme.name # MACHETE ojo InvoiceLine.tax pasar a Invoice percent_for[subtotal.scheme.code] = subtotal.percent @@ -485,7 +486,7 @@ class DIANInvoiceXML(fe.FeXML): line.set_element('/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:ID', cod_impuesto) line.set_element('/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:Name', - 'IVA') + amount_of['name']) # abstract method def tag_document(fexml):