diff --git a/facho/fe/form_xml/invoice.py b/facho/fe/form_xml/invoice.py index e27e0e5..0482a49 100644 --- a/facho/fe/form_xml/invoice.py +++ b/facho/fe/form_xml/invoice.py @@ -440,7 +440,8 @@ 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 @@ -497,7 +498,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']) for index, item in enumerate(withholding_amount_for.items()): cod_impuesto, amount_of = item