feat: refs #7704 Major changes #2717
|
@ -120,17 +120,9 @@ module.exports = Self => {
|
||||||
[quantityAdded],
|
[quantityAdded],
|
||||||
ctx.options);
|
ctx.options);
|
||||||
|
|
||||||
await models.Sale.rawSql(`
|
await models.Sale.rawSql(`CALL vn.ticketCalculatePurge()`, null, ctx.options);
|
||||||
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');
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue