refs #4713 procs deprecated, originalQuantity deleted

This commit is contained in:
Alexandre Riera 2023-03-03 07:36:04 +01:00
parent d836874b7c
commit 8679aefb48
2 changed files with 6 additions and 2 deletions

View File

@ -40,8 +40,7 @@ module.exports = Self => {
try {
const sale = await models.Sale.findById(saleId, null, myOptions);
const saleUpdated = await sale.updateAttributes({
originalQuantity: sale.quantity,
quantity: quantity
quantity
}, myOptions);
if (tx) await tx.commit();

View File

@ -0,0 +1,5 @@
DROP PROCEDURE `vn`.`sale_setQuantity`;
DROP PROCEDURE `vn`.`collection_updateSale`;
DROP PROCEDURE `vn`.`replaceMovimientosMark`;
DROP PROCEDURE `vn`.`saleTracking_Replace`;
DROP PROCEDURE `vn`.`sale_updateOriginalQuantity`;