FASK61 fix #13
FossilOrigin-Name: 486c9aba1a42edb9048a91a60202134a0e885c40b42f6bf290f2e640460a1b53
This commit is contained in:
parent
b9fe8c0cb9
commit
413a02fe8c
@ -323,6 +323,7 @@ class DIANInvoiceXML(fe.FeXML):
|
||||
self.attach_invoice(invoice)
|
||||
|
||||
def set_supplier(fexml, invoice):
|
||||
#DIAN 1.7.-2020: FAK61
|
||||
fexml.set_element('/fe:Invoice/cac:AccountingSupplierParty/cbc:AdditionalAccountID',
|
||||
invoice.invoice_supplier.organization_code)
|
||||
fexml.set_element('/fe:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyName/cbc:Name',
|
||||
@ -378,9 +379,13 @@ class DIANInvoiceXML(fe.FeXML):
|
||||
|
||||
|
||||
def set_customer(fexml, invoice):
|
||||
fexml.placeholder_for('/fe:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification')
|
||||
fexml.set_element('/fe:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID',
|
||||
invoice.invoice_customer.ident)
|
||||
|
||||
|
||||
fexml.set_element('/fe:Invoice/cac:AccountingCustomerParty/cbc:AdditionalAccountID',
|
||||
invoice.invoice_customer.organization_code)
|
||||
|
||||
fexml.set_element('/fe:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyName/cbc:Name',
|
||||
invoice.invoice_customer.name)
|
||||
fexml.set_element('/fe:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PhysicalLocation/cac:Address/cac:AddressLine/cbc:Line',
|
||||
|
Loading…
Reference in New Issue
Block a user