FossilOrigin-Name: caaec4aa24fcae4e81b80677cd0c1c3811d4f237329b8393d17ac6abeb6ec36e
This commit is contained in:
bit4bit@riseup.net 2020-09-11 03:37:44 +00:00
parent 3213d122f4
commit eeb64ffa74

View File

@ -238,7 +238,8 @@ class DianXMLExtensionSigner(FachoXMLExtension):
xml.remove(signature) xml.remove(signature)
fachoxml = FachoXML(xml,nsmap=NAMESPACES) fachoxml = FachoXML(xml,nsmap=NAMESPACES)
ublextension = fachoxml.fragment('/fe:Invoice/ext:UBLExtensions/ext:UBLExtension', append_not_exists=True) #DIAN 1.7.-2020: FAB01
ublextension = fachoxml.fragment('/fe:Invoice/ext:UBLExtensions/ext:UBLExtension', append=True)
extcontent = ublextension.find_or_create_element('/ext:UBLExtension:/ext:ExtensionContent') extcontent = ublextension.find_or_create_element('/ext:UBLExtension:/ext:ExtensionContent')
fachoxml.append_element(extcontent, signature) fachoxml.append_element(extcontent, signature)
return fachoxml.tostring() return fachoxml.tostring()