Fix ticket #4

This commit is contained in:
Mauricio Baeza 2021-04-13 22:29:04 -05:00
parent a8667a5d4f
commit a2670cb92c
6 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,7 @@
v 1.41.4 [13-Abr-2021]
----------------------
- Error - Ticket #4
v 1.41.3 [12-Feb-2021]
----------------------

View File

@ -1,2 +1,2 @@
1.41.3
1.41.4

View File

@ -270,7 +270,8 @@ class CFDI(object):
from xml.sax.saxutils import escape, unescape
conceptos = ET.SubElement(self._cfdi, '{}:Conceptos'.format(self._pre))
for row in reversed(datos):
# ~ for row in reversed(datos):
for row in datos:
complemento = {}
if 'complemento' in row:
complemento = row.pop('complemento')

View File

@ -738,7 +738,7 @@ class LIBO(object):
if not cell_7 is None:
col = cell_7.getCellAddress().Column
target7 = self._sheet.getCellRangeByPosition(col, row+1, col, row+count)
if pakings:
if pakings and cell_8:
col = cell_8.getCellAddress().Column
target8 = self._sheet.getCellRangeByPosition(col, row+1, col, row+count)

View File

@ -5148,8 +5148,6 @@ class Facturas(BaseModel):
'edu': is_edu,
'complementos': complementos,
}
# ~ return util.make_xml(data, certificado)
return utils.make_xml(data, certificado)
@classmethod

View File

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