fixes #4713 ENC - Modificar como se generan los avisos de cambios de cantidades al encajar #1374

Merged
alexandre merged 7 commits from 4713-saleTracking into dev 2023-05-04 07:04:56 +00:00
2 changed files with 1 additions and 1 deletions
Showing only changes of commit 106f96b9a6 - Show all commits

View File

@ -15,7 +15,7 @@ describe('setSaleQuantity()', () => {
await models.Collection.setSaleQuantity(saleId, newQuantity, options); await models.Collection.setSaleQuantity(saleId, newQuantity, options);
const updateSale = await models.Sale.findById(saleId, null, options); const updateSale = await models.Sale.findById(saleId, null, options);
expect(updateSale.originalQuantity).toEqual(originalSale.quantity); expect(updateSale.quantity).not.toEqual(originalSale.quantity);
expect(updateSale.quantity).toEqual(newQuantity); expect(updateSale.quantity).toEqual(newQuantity);
await tx.rollback(); await tx.rollback();