FAJ12 fix #19
FossilOrigin-Name: 1c829b83f5ba96a5156d1be233a1c91561f04a6e1cd6ef5237b677163a14f032
This commit is contained in:
parent
6b8ce26bc2
commit
c0f23264d5
@ -28,6 +28,10 @@ class Country:
|
|||||||
code: str
|
code: str
|
||||||
name: str
|
name: str
|
||||||
|
|
||||||
|
@dataclass
|
||||||
|
class CountrySubentity:
|
||||||
|
code: str
|
||||||
|
name: str
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class Address:
|
class Address:
|
||||||
@ -36,7 +40,7 @@ class Address:
|
|||||||
city: str = ''
|
city: str = ''
|
||||||
department: str = ''
|
department: str = ''
|
||||||
country: Country = Country('CO', 'Colombia')
|
country: Country = Country('CO', 'Colombia')
|
||||||
|
countrysubentity: CountrySubentity = CountrySubentity('05', 'Antioquia')
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class PartyIdentification:
|
class PartyIdentification:
|
||||||
@ -326,6 +330,12 @@ class DIANInvoiceXML(fe.FeXML):
|
|||||||
#DIAN 1.7.-2020: FAJ09
|
#DIAN 1.7.-2020: FAJ09
|
||||||
fexml.set_element('/fe:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PhysicalLocation/cac:Address/cbc:ID',
|
fexml.set_element('/fe:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PhysicalLocation/cac:Address/cbc:ID',
|
||||||
invoice.invoice_supplier.address.city)
|
invoice.invoice_supplier.address.city)
|
||||||
|
#DIAN 1.7.-2020: FAJ11
|
||||||
|
fexml.set_element('/fe:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PhysicalLocation/cac:Address/cac:Country/cbc:CountrySubentity',
|
||||||
|
invoice.invoice_supplier.address.countrysubentity.name)
|
||||||
|
#DIAN 1.7.-2020: FAJ12
|
||||||
|
fexml.set_element('/fe:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PhysicalLocation/cac:Address/cac:Country/cbc:CountrySubentityCode',
|
||||||
|
invoice.invoice_supplier.address.countrysubentity.code)
|
||||||
#DIAN 1.7.-2020: FAJ14
|
#DIAN 1.7.-2020: FAJ14
|
||||||
fexml.set_element('/fe:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PhysicalLocation/cac:Address/cac:AddressLine/cbc:Line',
|
fexml.set_element('/fe:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PhysicalLocation/cac:Address/cac:AddressLine/cbc:Line',
|
||||||
invoice.invoice_supplier.address.street)
|
invoice.invoice_supplier.address.street)
|
||||||
|
Loading…
Reference in New Issue
Block a user