From 3908a00a073b9de3df52e461112f34fbf179c416 Mon Sep 17 00:00:00 2001 From: "bit4bit@riseup.net" Date: Sun, 6 Sep 2020 17:01:16 +0000 Subject: [PATCH] FAK26 fix #8. * facho/fe/data/dian/codelist/TipoResponsabilidad-2.1.gc: se elimina ZZ, no es valido segun documento dian. FossilOrigin-Name: b2a84cb433e413cf75a9642d33e0ad9799b732d42aa6669dd1467135273c25c7 --- facho/fe/data/dian/codelist/TipoResponsabilidad-2.1.gc | 10 +--------- facho/fe/form.py | 6 +++++- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/facho/fe/data/dian/codelist/TipoResponsabilidad-2.1.gc b/facho/fe/data/dian/codelist/TipoResponsabilidad-2.1.gc index d5e9d27..9ba4739 100644 --- a/facho/fe/data/dian/codelist/TipoResponsabilidad-2.1.gc +++ b/facho/fe/data/dian/codelist/TipoResponsabilidad-2.1.gc @@ -62,13 +62,5 @@ Régimen simple de tributación - - - ZZ - - - No aplica - - - \ No newline at end of file + diff --git a/facho/fe/form.py b/facho/fe/form.py index d072082..58d98e4 100644 --- a/facho/fe/form.py +++ b/facho/fe/form.py @@ -375,7 +375,11 @@ class DIANInvoiceXML(fe.FeXML): fexml.set_element('/fe:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:RegistrationName', invoice.invoice_customer.legal_name) fexml.set_element('/fe:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:TaxLevelCode', - invoice.invoice_customer.responsability_code) + #DIAN 1.7.-2020: FAK26 + invoice.invoice_customer.responsability_code, + #DIAN 1.7.-2020: FAK27 + listName=invoice.invoice_customer.responsability_regime_code) + fexml.placeholder_for('/fe:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cac:TaxScheme') fexml.set_element('/fe:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID',