From e253570cc44e7ae03579443352ff95895d85a0e0 Mon Sep 17 00:00:00 2001 From: "alnus@disroot.org" Date: Fri, 4 Sep 2020 19:23:51 +0000 Subject: [PATCH] =?UTF-8?q?/fe:Invoice/cac:AccountingSupplierParty/cac:Par?= =?UTF-8?q?ty/cac:Contact/cbc:ElectronicMail,=20para=20=20correcci=C3=B3n?= =?UTF-8?q?=20DIAN=20FAJ71?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FossilOrigin-Name: 8fecefec77becbd53650e6a5a0a5d3c80ad4b82de74d197ff40efe6a96ef505a --- facho/fe/form.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/facho/fe/form.py b/facho/fe/form.py index 3dcf3fb..892e865 100644 --- a/facho/fe/form.py +++ b/facho/fe/form.py @@ -314,12 +314,15 @@ class DIANInvoiceXML(fe.FeXML): fexml.placeholder_for('/fe:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cac:TaxScheme') fexml.set_element('/fe:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName', invoice.invoice_supplier.legal_name) + fexml.set_element('/fe:Invoice/cac:AccountingSupplierParty/cac:Party/cac:Contact/cbc:ElectronicMail', + invoice.invoice_supplier.email) fexml.set_element('/fe:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cac:RegistrationAddress/cbc:CityName', invoice.invoice_supplier.address.city) fexml.set_element('/fe:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cac:RegistrationAddress/cac:AddressLine/cbc:Line', invoice.invoice_supplier.address.street) fexml.set_element('/fe:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cac:RegistrationAddress/cac:AddressLine/cbc:Line', invoice.invoice_supplier.address.street) fexml.set_element('/fe:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cac:RegistrationAddress/cac:Country/cbc:IdentificationCode', invoice.invoice_supplier.address.country.code) fexml.set_element('/fe:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cac:RegistrationAddress/cac:Country/cbc:Name', invoice.invoice_supplier.address.country.name) + def set_customer(fexml, invoice): fexml.set_element('/fe:Invoice/cac:AccountingCustomerParty/cbc:AdditionalAccountID', invoice.invoice_customer.organization_code)