added validation for confirmed purcharse requests
gitea/salix/dev This commit has test failures Details

This commit is contained in:
Joan Sanchez 2019-10-21 07:08:47 +02:00
parent 72017a64ac
commit 55f3390f85
1 changed files with 2 additions and 1 deletions

View File

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