forked from elmau/empresa-libre
Fix - Al cancelar nómina
This commit is contained in:
parent
5ed281fd9d
commit
d48122608b
|
@ -1,3 +1,8 @@
|
||||||
|
v 1.27.1 [23-ene-2019]
|
||||||
|
----------------------
|
||||||
|
- Error: Al cancelar nómina
|
||||||
|
|
||||||
|
|
||||||
v 1.27.0 [17-ene-2019]
|
v 1.27.0 [17-ene-2019]
|
||||||
----------------------
|
----------------------
|
||||||
- Mejora: Permitir capturar folio manualmente
|
- Mejora: Permitir capturar folio manualmente
|
||||||
|
|
|
@ -8324,6 +8324,7 @@ class CfdiNomina(BaseModel):
|
||||||
return {'ok': False, 'msg': msg}
|
return {'ok': False, 'msg': msg}
|
||||||
|
|
||||||
data, result = util.cancel_xml(auth, obj.uuid, certificado)
|
data, result = util.cancel_xml(auth, obj.uuid, certificado)
|
||||||
|
|
||||||
if data['ok']:
|
if data['ok']:
|
||||||
data['msg'] = 'Recibo cancelado correctamente'
|
data['msg'] = 'Recibo cancelado correctamente'
|
||||||
data['row']['estatus'] = 'Cancelado'
|
data['row']['estatus'] = 'Cancelado'
|
||||||
|
@ -8331,7 +8332,7 @@ class CfdiNomina(BaseModel):
|
||||||
obj.error = ''
|
obj.error = ''
|
||||||
obj.cancelada = True
|
obj.cancelada = True
|
||||||
obj.fecha_cancelacion = result['Fecha']
|
obj.fecha_cancelacion = result['Fecha']
|
||||||
obj.acuse = result['Acuse']
|
obj.acuse = result['Acuse'] or ''
|
||||||
else:
|
else:
|
||||||
obj.error = data['msg']
|
obj.error = data['msg']
|
||||||
obj.save()
|
obj.save()
|
||||||
|
|
|
@ -47,7 +47,7 @@ except ImportError:
|
||||||
|
|
||||||
|
|
||||||
DEBUG = DEBUG
|
DEBUG = DEBUG
|
||||||
VERSION = '1.27.0'
|
VERSION = '1.27.1'
|
||||||
EMAIL_SUPPORT = ('soporte@empresalibre.net',)
|
EMAIL_SUPPORT = ('soporte@empresalibre.net',)
|
||||||
TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)
|
TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue