Merge pull request 'fix addFromBuy backTest' (!1593) from fix-addFromBuy-backTest into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #1593 Reviewed-by: Vicent Llopis <vicent@verdnatura.es>
This commit is contained in:
commit
92a8e5f689
|
@ -48,7 +48,7 @@ module.exports = Self => {
|
||||||
try {
|
try {
|
||||||
let buy = await models.Buy.findOne({where: {entryFk: args.id}}, myOptions);
|
let buy = await models.Buy.findOne({where: {entryFk: args.id}}, myOptions);
|
||||||
if (buy)
|
if (buy)
|
||||||
await buy.updateAttribute('printedStickers', args.printedStickers);
|
await buy.updateAttribute('printedStickers', args.printedStickers, myOptions);
|
||||||
else {
|
else {
|
||||||
const userConfig = await models.UserConfig.findById(userId, {fields: ['warehouseFk']}, myOptions);
|
const userConfig = await models.UserConfig.findById(userId, {fields: ['warehouseFk']}, myOptions);
|
||||||
await Self.rawSql(
|
await Self.rawSql(
|
||||||
|
|
Loading…
Reference in New Issue