Mensaje cuando no hay documentos por timbrar
This commit is contained in:
parent
b56907e74e
commit
2b7a51db97
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue