3587-ticket_isEmpty #871

Merged
carlosjr merged 3 commits from 3587-ticket_isEmpty into dev 2022-02-04 12:02:35 +00:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit dc47af7224 - Show all commits

View File

@ -42,8 +42,7 @@ module.exports = function(Self) {
}, myOptions);
const hasPurchaseRequests = await models.TicketRequest.count({
ticketFk: id,
isOk: true
ticketFk: id
}, myOptions);
const isEmpty = !hasSales && !hasPackages &&