fix(deleteZone): contrary condition
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
72f369dc49
commit
863f204247
|
@ -247,5 +247,6 @@
|
|||
"The raid information is not correct": "The raid information is not correct",
|
||||
"Payment method is required": "Payment method is required",
|
||||
"Sales already moved": "Sales already moved",
|
||||
"Holidays to past days not available": "Holidays to past days not available"
|
||||
"Holidays to past days not available": "Holidays to past days not available",
|
||||
"There are tickets to be invoiced": "There are tickets to be invoiced"
|
||||
}
|
||||
|
|
|
@ -390,6 +390,7 @@
|
|||
"The web user's email already exists": "El correo del usuario web ya existe",
|
||||
"Sales already moved": "Ya han sido transferidas",
|
||||
"The raid information is not correct": "La información de la redada no es correcta",
|
||||
"Holidays to past days not available": "Las vacaciones a días pasados no están disponibles"
|
||||
"Holidays to past days not available": "Las vacaciones a días pasados no están disponibles",
|
||||
"There are tickets to be invoiced": "Hay ticket por facturar"
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ module.exports = Self => {
|
|||
};
|
||||
|
||||
const ticketList = await models.Ticket.find(filter, myOptions);
|
||||
const hasRefFk = ticketList.some(ticket => ticket.refFk);
|
||||
const hasRefFk = ticketList.some(ticket => !ticket.refFk);
|
||||
if (hasRefFk)
|
||||
throw new UserError('There are tickets to be invoiced');
|
||||
|
||||
|
|
Loading…
Reference in New Issue