jakub-mrow / AMS-backend

0 stars 0 forks source link

Check stock quantity when rebuilding the StockBalance or its history #81

Closed dawids21 closed 11 months ago

dawids21 commented 11 months ago

When rebuilding the StockBalance or its history, after each applied transaction we should check if the quantity field in the StockBalance is below 0. If yes then we should roll back the whole rebuilding operation and reject modifying a transaction or adding a transaction in the past.

Waiting for: