As a inventory manager
I need to be able to restock the inventory
So that the manager can restock the inventory
Details and Assumptions
Add a restock_amount field, and then when stock level is getting lower than a threshold, we can automatically/manually make a PUT request to increase the stock level by restock_amount.
A restock_amount field will be added to each product in the inventory system.
When the stock level of a product falls below a predefined threshold, the system can automatically or manually trigger a - PUT request to increase the stock level by the restock_amount.
[Below Optional]
The system should allow the manager to configure the threshold and restock_amount for each product.
Managers should be able to initiate manual restocking even if the stock level has not reached the threshold.
Confirmation or error messages will be provided based on the success or failure of the restocking action.
Acceptance Criteria
Scenario: Automatic restocking when stock falls below threshold
Given a product has a defined `restock_amount` and restock threshold
And the current stock level falls below the threshold
When the system detects the low stock level
Then the system will automatically make a `PUT` request to increase the stock by the `restock_amount`
And the inventory level will be updated
And a notification will be sent to confirm the restock
As a inventory manager I need to be able to restock the inventory So that the manager can restock the inventory
Details and Assumptions
Add a restock_amount field, and then when stock level is getting lower than a threshold, we can automatically/manually make a PUT request to increase the stock level by restock_amount.
Confirmation or error messages will be provided based on the success or failure of the restocking action.
Acceptance Criteria