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 5 additions and 0 deletions
Showing only changes of commit ebf234dd4f - Show all commits

View File

@ -23,6 +23,8 @@ describe('Transfer merchandise from one entry to the next day()', () => {
const newEntrybuys = await models.Buy.find({where: {entryFk: result[0].newEntryFk}}, options);
const newTravel = await models.Entry.find({where: {id: result[0].newEntryFk}}, options);
const itemShelvingsWithBuys = await models.Buy.find({
include: {
relation: 'itemShelving',
@ -37,6 +39,9 @@ describe('Transfer merchandise from one entry to the next day()', () => {
expect(newEntrybuys.length).toEqual(originalEntrybuys.length - hasItemShelving.length);
await models.Travel.destroyById(newTravel, options);
await models.Entry.destroyById(result[0].newEntryFk, options);
await tx.rollback();
} catch (e) {
await tx.rollback();