feat: refs #7704 Fix tests
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Guillermo Bonet 2024-07-11 14:31:17 +02:00
parent 9e3baeffa6
commit 69e0d78537
1 changed files with 8 additions and 1 deletions

View File

@ -120,7 +120,14 @@ module.exports = Self => {
[quantityAdded], [quantityAdded],
ctx.options); ctx.options);
await models.Sale.rawSql(`CALL vn.ticketCalculatePurge()`, null, ctx.options); await models.Sale.rawSql(`
DROP TEMPORARY TABLE IF EXISTS
tmp.ticketCalculateItem,
tmp.ticketComponentPrice,
tmp.ticketComponent,
tmp.ticketLot,
tmp.zoneGetShipped;
`, null, ctx.options);
if (!saleGrouping?.newPrice || saleGrouping.newPrice > instance.price) if (!saleGrouping?.newPrice || saleGrouping.newPrice > instance.price)
throw new UserError('The price of the item changed'); throw new UserError('The price of the item changed');