Reporte #49, arreglado

This commit is contained in:
El Mau 2022-01-29 20:47:30 -06:00
parent 6a18934b19
commit 3ddf99075e
4 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
v 1.46.1 [29-Ene-2022]
----------------------
- Error: Issue #49
v 1.46.0 [27-Ene-2022]
----------------------
- Mejora: Issue #45

View File

@ -1,2 +1,2 @@
1.46.0
1.46.1

View File

@ -4685,7 +4685,9 @@ class Facturas(BaseModel):
for n in node:
d = util.get_dict(n.attrib)
name = VALUES_PDF['TAX'].get(d['impuesto'])
tasa = f"{float(d['tasaocuota']):.2f}"
tasa = ''
if 'tasaocuota' in d:
tasa = f"{float(d['tasaocuota']):.2f}"
title = f"{type_tax} {name} {tasa}"
importe = util.format_currency(d['importe'], currency)
data['totales'].append((title, importe))

View File

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