If what sells in a store is not replaced, the shelf goes empty and the customer cannot find what they came for. If stock is sent to a slow-selling store, the warehouse runs dry instead; the fast-selling store waits while stock piles up in the slow one. Replenishment, sending stock from the warehouse to stores, rebalances these two errors every day.
In most retailers this decision is in the planners’ hands, made store by store. Whether a shipment turned into sales is usually not tracked afterwards. This guide breaks the automatic replenishment (auto replenishment) decision into its parts. The examples come from the replenishment system we built for Derimod.
What question does replenishment answer?
Initial allocation happens before the product reaches the shelf and sees no sales data. Replenishment starts once the product is selling. The question is: how much stock does this store need of this product, in this size, over the coming weeks, and how much of that is already in the store or on the way?
The answer is calculated separately for every store and every size (SKU). That is why, in a chain with hundreds of stores and thousands of products, a manual decision either takes a long time or is made with crude rules.
Target stock and cover
At the centre of the decision is target stock. The target is calculated from the store’s rate of sale and how many weeks of sales the stock should cover. The need is the target minus store stock and in-transit stock:
need = target stock − (store stock + in-transit stock)
Subtracting in-transit stock matters. Without it, stock already sent to a store but not yet arrived is sent a second time the next day.
At Derimod, replenishment runs on two parameters: weeks of cover and minimum lot. Planners understand and own these two numbers. Everything else is defined on a separate exceptions screen.
The rate of sale of a store that ran out
Because target stock is calculated from the rate of sale, there is a trap: a store that has sold out cannot sell during those days, so its rate of sale looks lower than it really is. A low rate produces a low target, and the store again receives too little. So the days a store was out of stock have to be separated out when the rate of sale is calculated.
At Derimod this gap is defined as lost sales: when a product is selling in a store and a size or the units run out, the difference between the sales expected from the rate of sale and the actual sales. The definition is calculated weekly in the stock analytics layer and feeds into replenishment priority. We explain in detail how to measure the rate of sale on stock-out days in our rule-based method article (in Turkish).
Minimum lot and cartons
The calculated need is sometimes a single unit. Sending one unit may not cover the cost of picking, packing and transport. The minimum lot sets the smallest number of units sent to a store at once; if the need is below it, no shipment is made that day.
A similar constraint comes from cartons. If the product sits in the warehouse in cartons and is shipped without opening them, the store receives more than it needs. Picking open quantities, on the other hand, takes warehouse labour. In tests on a synthetic chain, the result was driven most by carton structure and the warehouse’s capacity for open-quantity picking. Changing the rule that splits scarce stock between stores barely moved the result. Details are in our cartons or open quantities article (in Turkish).
Who goes first when the warehouse runs short?
In mid-season, warehouse stock often cannot cover the needs of every store. Then a priority order is needed. At Derimod, when the warehouse runs short, the store with higher sales potential is served first.
An example: in the year before, stock had been sent to stores in bulk ahead of the November sale, with limited support during the sale itself. In 2024, shipments were made day by day to high-potential stores, and the sales and stock curves moved in parallel.
Exceptions
Not every product suits automatic replenishment. At Derimod an exceptions screen lets planners change or exclude the rule at any level of the product hierarchy:
- a list of products that are not replenished automatically,
- different rules for specific store groups,
- separate behaviour for online sales.
Keeping exceptions on a separate screen keeps the main rule simple. Over time, each planner correction turns into either a parameter or an exception rule.
Daily and scheduled
Replenishment is a daily decision. At Derimod regular scenarios are scheduled with work orders, so the proposal is ready when the planner arrives in the morning. The proposal comes at store × product × size level; the planner reviews it, corrects it if needed and approves it. An approved proposal goes to the ERP as a shipment order.
How do you measure whether replenishment works?
The measurement should be defined before the algorithm. At Derimod the definition is: the first unit that enters a store is linked to the first sale in that store. If 2 units went to a store and 1 sold within a given period, the shipment’s success is 50%. The rate is calculated separately for shipments proposed by the system, manual shipments and the same period last year.
Some of Derimod’s published results:
| Period | Automation | Sell-through · system | Manual | Last year |
|---|---|---|---|---|
| Oct–Nov 2024 · footwear | ~70% | 30% | 20% | 24% |
| Winter 2025 · footwear, last 3 months of season | ~95% | ~46% | ~30% | ~36% |
| Winter 2025 · bags | ~50% | ~63% | ~36% | ~50% |
In the first season, automatic replenishment created about 25% fewer shipments than the manual period and turned roughly the same number of units into sales. Fewer shipments means less handling in the warehouse and in stores.
Sell-through alone is not enough. Availability, lost sales and broken sizes should be tracked for the same period too; some of them are misleading when read on their own. We cover what each measure tells you in our article on measuring replenishment (in Turkish). At Derimod, in the 2025 summer season, footwear lost sales fell from 14% to 10% and the broken-size rate from 10.6% to 8.4% compared with the previous year.
The automation rate is an outcome
At Derimod we did not set the automation rate, the share of replenishment that comes from the system, as a target. It rose on its own as planners stopped correcting the proposals: about 70% in the first two months for footwear, approaching 95% in 2025. Once a correction becomes a rule, the same correction is not needed the next day.
Rule or forecast?
Target stock can be calculated with a simple rate-of-sale rule or with a demand forecast built with machine learning. When we raced the two on synthetic data, the forecasting model was clearly more accurate as a prediction, but the difference in the store outcome was much smaller. We explain where the difference comes from in our forecast-based method article (in Turkish). In practice, the starting point is a rule that is measured and that planners understand.
Checklist
- Is target stock calculated from the rate of sale and a defined cover period?
- Is in-transit stock subtracted from the need?
- Are stock-out days excluded from the rate-of-sale calculation?
- Are minimum lot and carton rules defined?
- Is it clear which store goes first when the warehouse runs short?
- Is the sell-through of every shipment measured against manual decisions and last year?
Further reading
- Scenario structure, parameters and measured results: Derimod replenishment case.
- Definitions of lost sales, broken sizes and idle stock: Derimod stock analytics case.
- Rule-based and forecast-based methods with model and code, on synthetic data: perakendeanalitigi.com warehouse-to-store series (in Turkish).
- Moving stock from stores that do not sell it to stores that do: store-to-store transfer guide.
- Our product that makes initial allocation, replenishment and transfer decisions in one system: Opalgo.