RailsEventStore / ecommerce

Application with CQRS and Event Sourcing built on Rails and Rails Event Store
MIT License
425 stars 72 forks source link

Display error when product is out of stock during order submission #375

Closed marlena-b closed 2 months ago

marlena-b commented 3 months ago

If a product is added to an order and subsequently goes out of stock before submission, the current system incorrectly shows a success message while leaving the order in draft status. The system should instead notify the user that the order could not be completed due to the product being out of stock.