forked from elmau/empresa-libre
Fix in tax object 04
This commit is contained in:
commit
e4ba06c0ff
|
@ -387,6 +387,10 @@ class CFDI(object):
|
||||||
for field in fields:
|
for field in fields:
|
||||||
if field in datos:
|
if field in datos:
|
||||||
attributes[field] = datos[field]
|
attributes[field] = datos[field]
|
||||||
|
|
||||||
|
if not attributes:
|
||||||
|
return
|
||||||
|
|
||||||
node_name = '{}:Impuestos'.format(self._pre)
|
node_name = '{}:Impuestos'.format(self._pre)
|
||||||
impuestos = ET.SubElement(self._cfdi, node_name, attributes)
|
impuestos = ET.SubElement(self._cfdi, node_name, attributes)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue