hotFix_6312 fix originalQuantity
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
03e2f57306
commit
728838334c
|
@ -64,7 +64,10 @@ module.exports = Self => {
|
|||
const sale = await models.Sale.findById(id, filter, myOptions);
|
||||
|
||||
const oldQuantity = sale.quantity;
|
||||
const result = await sale.updateAttributes({quantity: newQuantity}, myOptions);
|
||||
const result = await sale.updateAttributes({
|
||||
quantity: newQuantity,
|
||||
originalQuantity: newQuantity
|
||||
}, myOptions);
|
||||
|
||||
const salesPerson = sale.ticket().client().salesPersonUser();
|
||||
if (salesPerson) {
|
||||
|
|
Loading…
Reference in New Issue