Fix node tax in invoice pay

This commit is contained in:
el Mau 2023-01-27 12:00:36 -06:00
commit a90f218c76
1 changed files with 1 additions and 1 deletions

View File

@ -609,7 +609,7 @@ class CFDI(object):
if taxes_pay['traslados'] or taxes_pay['retenciones']:
node_tax = ET.SubElement(node_pago, f'{pre}:ImpuestosP')
if taxes_pay['retenciones']:
node = ET.SubElement(node_tax, f'{pre}:RetencionsP')
node = ET.SubElement(node_tax, f'{pre}:RetencionesP')
for key, importe in taxes_pay['retenciones'].items():
attr = {'ImpuestoP': key, 'ImporteP': importe}
ET.SubElement(node, f'{pre}:RetencionP', attr)