From 21798654537eaa8c073214ca78bee2226901e803 Mon Sep 17 00:00:00 2001 From: "alnus@disroot.org" Date: Sun, 6 Sep 2020 18:53:25 +0000 Subject: [PATCH] FAJ09 fix #10 FossilOrigin-Name: 645fb5b4c615dd25a7c1a96cae445aa107bdddbaf114351c24b1e4c3eafa5972 --- facho/fe/form.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/facho/fe/form.py b/facho/fe/form.py index 58d98e4..c79dbfb 100644 --- a/facho/fe/form.py +++ b/facho/fe/form.py @@ -323,6 +323,11 @@ class DIANInvoiceXML(fe.FeXML): invoice.invoice_supplier.organization_code) fexml.set_element('/fe:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyName/cbc:Name', invoice.invoice_supplier.name) + #DIAN 1.7.-2020: FAJ09 + fexml.set_element('/fe:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PhysicalLocation/cac:Address/cbc:ID', + invoice.invoice_supplier.address.city) + + fexml.set_element('/fe:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PhysicalLocation/cac:Address/cac:AddressLine/cbc:Line', invoice.invoice_supplier.address.street)