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.
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.