refs #6276 feat:newWarehouse
This commit is contained in:
parent
5e903e9be3
commit
6f0cfd421e
|
@ -88,7 +88,7 @@ module.exports = Self => {
|
|||
try {
|
||||
const {itemOriginalFk} = await models.Buy.findById(buyFk, {fields: ['itemOriginalFk']}, myOptions);
|
||||
if (itemOriginalFk) await models.SaleBuy.create({saleFk, buyFk}, myOptions);
|
||||
} catch (e) {
|
||||
} finally {
|
||||
if (tx) await tx.commit();
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
|
@ -79,7 +79,7 @@ describe('saleTracking setPicked()', () => {
|
|||
} catch (e) {
|
||||
const error = e;
|
||||
|
||||
expect(error.message).toEqual('The sale cannot be tracked');
|
||||
expect(error.message).toEqual('The line could not be marked');
|
||||
await tx.rollback();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue