Fix in tax object 04

This commit is contained in:
el Mau 2023-02-17 14:24:33 -06:00
commit e4ba06c0ff
1 changed files with 4 additions and 0 deletions

View File

@ -387,6 +387,10 @@ class CFDI(object):
for field in fields:
if field in datos:
attributes[field] = datos[field]
if not attributes:
return
node_name = '{}:Impuestos'.format(self._pre)
impuestos = ET.SubElement(self._cfdi, node_name, attributes)