From 3ddf99075eeaeee025f06a17e346ac6ca3e9b623 Mon Sep 17 00:00:00 2001 From: El Mau Date: Sat, 29 Jan 2022 20:47:30 -0600 Subject: [PATCH] Reporte #49, arreglado --- CHANGELOG.md | 5 +++++ VERSION | 2 +- source/app/models/main.py | 4 +++- source/app/settings.py | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c729b4..b51344e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +v 1.46.1 [29-Ene-2022] +---------------------- + - Error: Issue #49 + + v 1.46.0 [27-Ene-2022] ---------------------- - Mejora: Issue #45 diff --git a/VERSION b/VERSION index a8ada98..40453c5 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -1.46.0 +1.46.1 diff --git a/source/app/models/main.py b/source/app/models/main.py index 226c08f..bf5932c 100644 --- a/source/app/models/main.py +++ b/source/app/models/main.py @@ -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)) diff --git a/source/app/settings.py b/source/app/settings.py index 3d6f63e..7f0d30e 100644 --- a/source/app/settings.py +++ b/source/app/settings.py @@ -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)