Error al generar Carta Porte sin remolque

This commit is contained in:
El Mau 2022-01-31 18:48:43 -06:00
parent d6a8c1e3fa
commit b19d087d10
4 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
v 1.46.2 [31-Ene-2022]
----------------------
- Error: Al generar Carta Porte sin remolque.
v 1.46.1 [29-Ene-2022]
----------------------
- Error: Issue #49

View File

@ -1,2 +1,2 @@
1.46.1
1.46.2

View File

@ -506,7 +506,8 @@ class CFDI(object):
sub_node = ET.SubElement(node, f'{prefix}:Autotransporte', autotransporte)
ET.SubElement(sub_node, f'{prefix}:IdentificacionVehicular', identificacion)
ET.SubElement(sub_node, f'{prefix}:Seguros', seguros)
if remolque['SubTipoRem'] and remolque['Placa']:
if 'SubTipoRem' in remolque and 'Placa' in remolque \
and remolque['SubTipoRem'] and remolque['Placa']:
tmp = ET.SubElement(sub_node, f'{prefix}:Remolques')
ET.SubElement(tmp, f'{prefix}:Remolque', remolque)

View File

@ -42,7 +42,7 @@ except ImportError:
DEBUG = DEBUG
VERSION = '1.46.1'
VERSION = '1.46.2'
EMAIL_SUPPORT = ('soporte@empresalibre.mx',)
TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)