We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a44490 commit 4afaf6eCopy full SHA for 4afaf6e
PyFePA/serializer.py
@@ -146,6 +146,8 @@ def serializexml(invoice_part,tagname):
146
for t in taglist[k]['value']:
147
fe.append(serializexml(t, taglist[k]['tag']))
148
elif taglist[k]['type'] == 'S' and taglist[k]['value'] is not None:
149
+ if type(taglist[k]['value']) != unicode:
150
+ taglist[k]['value'] = unicode(taglist[k]['value'])
151
(ElementTree.SubElement(fe, taglist[k]['tag'])).text = taglist[k]['value']
152
elif taglist[k]['type'] == 'O' and taglist[k]['value'] is not None:
153
fe.append(serializexml(taglist[k]['value'],taglist[k]['tag']))
0 commit comments