This commit is contained in:
parent
2ee5ba908a
commit
163302c770
|
@ -15,7 +15,7 @@ describe('Transfer merchandise from one entry to the next day()', () => {
|
||||||
const currentItemShelving = await models.ItemShelving.findOne({where: {id}}, options);
|
const currentItemShelving = await models.ItemShelving.findOne({where: {id}}, options);
|
||||||
await currentItemShelving.updateAttributes({itemFk: item, buyFk: buy}, options);
|
await currentItemShelving.updateAttributes({itemFk: item, buyFk: buy}, options);
|
||||||
|
|
||||||
const [{newEntryFk}] = await models.Entry.transfer(ctx, originalEntry, options);
|
const {newEntryFk} = await models.Entry.transfer(ctx, originalEntry, options);
|
||||||
const originalEntrybuys = await models.Buy.find({where: {entryFk: originalEntry}}, options);
|
const originalEntrybuys = await models.Buy.find({where: {entryFk: originalEntry}}, options);
|
||||||
|
|
||||||
const newEntrybuys = await models.Buy.find({where: {entryFk: newEntryFk}}, options);
|
const newEntrybuys = await models.Buy.find({where: {entryFk: newEntryFk}}, options);
|
||||||
|
|
Loading…
Reference in New Issue