Stock Replenishment feature does not take into account minimum order qauntity #9561
Labels
hacktoberfest
This is a good issue to try make your first PR if you don't know very well the project
hacktoberfest-accepted
This is added to a PR accepted for the hacktoberfest session (Flag added by core team only)
Bug
When using the Stock replenishment feature, it suggests order amounts less than the "minimum" order amount for the product to satisfy desired optimal stock. For example, I have a product with a minimum order qty. of 12, a desired optimal stock of 24, and a stock alert limit of 12. Performed a stock correction to bring the number of products to 10. When using the replenishment feature, in addition to the 13 units already on the way (virtual stock), it suggests to order 1 unit to get us back to a total of 24 units, but this value is below the minimum order qty. When I try to place an order manually, dolibarr DOES correctly prevent orders of less than 12 units of this product.
Environment
Expected and actual behavior
When using the stock replenishment feature, to not have it suggest order quantity less than the minimum order amount, even if this means going over the desired optimal stock.
Steps to reproduce the behavior
Use the stock replenishment feature to "re-stock" warehouse with products that have a minimum order quantity that is less than the number of units to get back to the desired optimal stock.
The text was updated successfully, but these errors were encountered: