Fix - Al cancelar nómina

This commit is contained in:
Mauricio Baeza 2019-01-23 13:33:11 -06:00
parent 5ed281fd9d
commit d48122608b
4 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -1 +1 @@
1.27.0
1.27.1

View File

@ -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()

View File

@ -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)