6822-entryTransfer #3376

Merged
robert merged 68 commits from 6822-entryTransfer into dev 2025-01-27 10:08:24 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 163302c770 - Show all commits

View File

@ -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);