232402_test_to_dev #1637

Merged
carlossa merged 27 commits from 232402_test_to_dev into dev 2023-06-26 10:10:54 +00:00
1 changed files with 7 additions and 9 deletions
Showing only changes of commit e99627c0b2 - Show all commits

View File

@ -81,7 +81,6 @@ module.exports = Self => {
throw new UserError('You must delete all the buy requests first'); throw new UserError('You must delete all the buy requests first');
// removes item shelvings // removes item shelvings
if (hasItemShelvingSales && canDeleteTicketWithPartPrepared) {
const promises = []; const promises = [];
for (let sale of sales) { for (let sale of sales) {
if (sale.itemShelvingSale()) { if (sale.itemShelvingSale()) {
@ -91,7 +90,6 @@ module.exports = Self => {
} }
} }
await Promise.all(promises); await Promise.all(promises);
}
// Remove ticket greuges // Remove ticket greuges
const ticketGreuges = await models.Greuge.find({where: {ticketFk: id}}, myOptions); const ticketGreuges = await models.Greuge.find({where: {ticketFk: id}}, myOptions);