diff --git a/CHANGELOG.md b/CHANGELOG.md index 4af3088..d3fec62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +v 1.28.2 [04-mar-2019] +---------------------- + - Error: Al enviar facturas de pago + + v 1.28.1 [04-mar-2019] ---------------------- - Error: Al buscar facturas por fechas diff --git a/VERSION b/VERSION index 450a687..bf4df28 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.28.1 +1.28.2 diff --git a/source/app/models/main.py b/source/app/models/main.py index 8b2f159..c9cd429 100644 --- a/source/app/models/main.py +++ b/source/app/models/main.py @@ -6612,6 +6612,9 @@ class CfdiPagos(BaseModel): id = int(values['id']) values = Configuracion.get_({'fields': 'correo'}) + contra = Configuracion.get_('correo_contra') + rfc = Emisor.select()[0].rfc + if not values: msg = 'No esta configurado el servidor de correo de salida' return {'ok': False, 'msg': msg} @@ -6635,7 +6638,7 @@ class CfdiPagos(BaseModel): 'puerto': values['correo_puerto'], 'ssl': bool(int(values['correo_ssl'])), 'usuario': values['correo_usuario'], - 'contra': values['correo_contra'], + 'contra': utils.decrypt(contra, rfc), } options = { 'para': to, diff --git a/source/app/settings.py b/source/app/settings.py index 3c774c4..20f549b 100644 --- a/source/app/settings.py +++ b/source/app/settings.py @@ -47,7 +47,7 @@ except ImportError: DEBUG = DEBUG -VERSION = '1.28.1' +VERSION = '1.28.2' EMAIL_SUPPORT = ('soporte@empresalibre.mx',) TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)