Mensaje cuando no hay documentos por timbrar

This commit is contained in:
Mauricio Baeza 2018-01-30 18:37:41 -06:00
parent b56907e74e
commit 2b7a51db97
1 changed files with 5 additions and 0 deletions

View File

@ -6329,6 +6329,11 @@ class CfdiNomina(BaseModel):
where = ((CfdiNomina.uuid.is_null(True)) & (CfdiNomina.cancelada==False))
rows = CfdiNomina.select().where(where).order_by(CfdiNomina.id)
util.log_file('nomina', kill=True)
if not len(rows):
msg = 'Sin recibos por timbrar'
return {'ok': True, 'msg_ok': msg}
msg_error = ''
ok_stamp = 0
for row in rows: