refs #4713 procs deprecated, originalQuantity deleted
This commit is contained in:
parent
d836874b7c
commit
8679aefb48
|
@ -40,8 +40,7 @@ module.exports = Self => {
|
||||||
try {
|
try {
|
||||||
const sale = await models.Sale.findById(saleId, null, myOptions);
|
const sale = await models.Sale.findById(saleId, null, myOptions);
|
||||||
const saleUpdated = await sale.updateAttributes({
|
const saleUpdated = await sale.updateAttributes({
|
||||||
originalQuantity: sale.quantity,
|
quantity
|
||||||
quantity: quantity
|
|
||||||
}, myOptions);
|
}, myOptions);
|
||||||
|
|
||||||
if (tx) await tx.commit();
|
if (tx) await tx.commit();
|
||||||
|
|
|
@ -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`;
|
Loading…
Reference in New Issue