From 6b8ce26bc2b72a045ca5ec359550d5b9e7dc4d8c Mon Sep 17 00:00:00 2001 From: "alnus@disroot.org" Date: Sun, 6 Sep 2020 19:43:33 +0000 Subject: [PATCH] FAK16 fix #15 FossilOrigin-Name: e3ba7e8869673c1d4af627e9f959851e95680c45357fad3cba5999f58e7b487e --- facho/fe/form.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/facho/fe/form.py b/facho/fe/form.py index 6bfba27..18d8914 100644 --- a/facho/fe/form.py +++ b/facho/fe/form.py @@ -376,6 +376,9 @@ class DIANInvoiceXML(fe.FeXML): fexml.set_element('/fe:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PhysicalLocation/cac:Address/cac:AddressLine/cbc:Line', invoice.invoice_customer.address.street) customer_company_id_attrs = fe.SCHEME_AGENCY_ATTRS.copy() + #DIAN 1.7.-2020: FAK16 + fexml.set_element('/fe:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PhysicalLocation/cac:Address/cac:Country/cbc:IdentificationCode', + invoice.invoice_supplier.address.country.code) #DIAN 1.7.-2020: FAK25 customer_company_id_attrs.update({'schemeID': invoice.invoice_customer.ident.dv, 'schemeName': invoice.invoice_customer.ident.type_fiscal})