There is a bug in the stock management system when a product initially set to unlimited stock is later assigned a limited stock quantity.
Reproduction steps:
- Create a product with unlimited stock.
- Create an order and add 5 units of the product, then pay for the order.
- Change the product's stock (supply stock) to a value of 3.
- Note that the product list now shows a stock of 3.
- Create a new order and attempt to add the product.
- Observe an error message indicating that the product is out of stock.