diff --git a/CHANGELOG.md b/CHANGELOG.md index e856dd0..feeab18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +v 1.27.1 [23-ene-2019] +---------------------- + - Error: Al cancelar nĂ³mina + + v 1.27.0 [17-ene-2019] ---------------------- - Mejora: Permitir capturar folio manualmente diff --git a/VERSION b/VERSION index 5db08bf..08002f8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.27.0 +1.27.1 diff --git a/source/app/models/main.py b/source/app/models/main.py index 86236ac..615c0de 100644 --- a/source/app/models/main.py +++ b/source/app/models/main.py @@ -8324,6 +8324,7 @@ class CfdiNomina(BaseModel): return {'ok': False, 'msg': msg} data, result = util.cancel_xml(auth, obj.uuid, certificado) + if data['ok']: data['msg'] = 'Recibo cancelado correctamente' data['row']['estatus'] = 'Cancelado' @@ -8331,7 +8332,7 @@ class CfdiNomina(BaseModel): obj.error = '' obj.cancelada = True obj.fecha_cancelacion = result['Fecha'] - obj.acuse = result['Acuse'] + obj.acuse = result['Acuse'] or '' else: obj.error = data['msg'] obj.save() diff --git a/source/app/settings.py b/source/app/settings.py index d5bbb19..1f3bedc 100644 --- a/source/app/settings.py +++ b/source/app/settings.py @@ -47,7 +47,7 @@ except ImportError: DEBUG = DEBUG -VERSION = '1.27.0' +VERSION = '1.27.1' EMAIL_SUPPORT = ('soporte@empresalibre.net',) TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)