refs #6276 remove checking visible
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Jorge Penadés 2023-12-12 13:43:15 +01:00
parent 3109f7722e
commit f5ee3aff7a
1 changed files with 3 additions and 5 deletions

View File

@ -79,11 +79,9 @@ module.exports = Self => {
}
}, myOptions);
if (itemShelving.visible) {
await itemShelving.updateAttributes({
visible: itemShelving.visible - quantity}
, myOptions);
}
await Self.updateAll(
{saleFk},