hotFix-dev_updateDiscount #1126

Merged
vicent merged 2 commits from hotFix-dev_updateDiscount into dev 2022-11-08 07:01:40 +00:00
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ module.exports = Self => {
async function createSaleComponent(saleId, value, componentId, myOptions) { async function createSaleComponent(saleId, value, componentId, myOptions) {
const models = Self.app.models; const models = Self.app.models;
return models.SaleComponent.create({ return models.SaleComponent.upsert({
saleFk: saleId, saleFk: saleId,
value: value, value: value,
componentFk: componentId componentFk: componentId