#6276 createNewWarehouse methods migrated from silex to salix #1850

Merged
jorgep merged 158 commits from 6276-createNewWarehouse into dev 2024-03-06 11:32:11 +00:00
1 changed files with 3 additions and 6 deletions
Showing only changes of commit 660e77be55 - Show all commits

View File

@ -28,14 +28,11 @@ module.exports = Self => {
try {
const itemShelvingSale = await models.ItemShelvingSale.findOne({
where: {saleFk}
where: {saleFk},
include: {relation: 'itemShelving'}
}, myOptions);
const itemShelving = await models.ItemShelving.findOne({
where: {
id: itemShelvingSale.ItemShelvingFk
}
});
const itemShelving = itemShelvingSale.itemShelving();
const quantity = itemShelving.visible + itemShelvingSale.quantity;
await itemShelving.updateAttributes(