7167-testToMaster_2414 #2244
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue