refs #6276 feat:newWarehouse
gitea/salix/pipeline/pr-test This commit looks good Details
gitea/salix/pipeline/pr-master This commit looks good Details

This commit is contained in:
Sergio De la torre 2024-03-21 07:13:16 +01:00
parent 5e903e9be3
commit 6f0cfd421e
2 changed files with 2 additions and 2 deletions

View File

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

View File

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