diff --git a/CHANGELOG.md b/CHANGELOG.md index b00e7b5..68a6175 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +v 2.0.2 [01-Abr-2023] +--------------------- + - Fix: Obtener la clave del sat al facturar por lote. + + v 2.0.1 [29-Mar-2023] --------------------- - Fix ticket #97 diff --git a/VERSION b/VERSION index 38f77a6..e9307ca 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.1 +2.0.2 diff --git a/source/app/models/main.py b/source/app/models/main.py index 492befc..5c9cdfe 100644 --- a/source/app/models/main.py +++ b/source/app/models/main.py @@ -227,6 +227,7 @@ def import_invoice(): return {'ok': False, 'msg': msg} obj = Productos.get(Productos.clave==row[0]) + if isinstance(row[2], str): msg = 'El Precio Unitario debe ser un nĂºmero, debe ser 0.00, si no quieres cambiarlo' return {'ok': False, 'msg': msg} @@ -248,6 +249,7 @@ def import_invoice(): 'id_product': obj.id, 'delete': '-', 'clave': obj.clave, + 'clave_sat': obj.clave_sat, 'descripcion': description or obj.descripcion, 'pedimento': pedimento, 'unidad': obj.unidad.id, diff --git a/source/app/settings.py b/source/app/settings.py index de51fb8..235c971 100644 --- a/source/app/settings.py +++ b/source/app/settings.py @@ -42,7 +42,7 @@ except ImportError: DEBUG = DEBUG -VERSION = '2.0.1' +VERSION = '2.0.2' EMAIL_SUPPORT = ('soporte@empresalibre.mx',) TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)