The RPT has arrived, and store sales are zero
The repeat order is in the warehouse, but the stores' sales over the last four weeks are zero. How should the incoming stock be allocated, and what does the whole chain gain when it all comes together?
Repeat Order (RPT) · 6 / 6
In the first article Veli recalled something: last season we placed an RPT, it arrived; half of it stayed in the warehouse and went to the outlet. Veli also gave a warning: there is one on the way this season too. This article starts with that warning and brings every part of the series together on the same demand.
600 belts
Back to the fifth article’s Woven Belt. Its supplier is in India; it makes a repeat order in fourteen weeks and will not accept fewer than 600 units. Looking back once the season had closed, the belt’s real demand was 1.81 times its plan. On the third Monday the rule did not fire. On the fourth Monday the STR rose to 57.8% and Banu’s rule placed an RPT for 600 units. The fifth article’s sum said not to order that morning.
The order took 99 days to arrive; the supplier was a day later than promised. The belt went into the warehouse 13 days before markdown. That week, 17 of the 24 stores carrying the belt were empty, and 15 of those had not sold a single belt in the last four weeks. The replenishment system looked at each store’s sales over the last 28 days, saw zero and sent nothing. The same thing happened in the weeks that followed.
Among the empty stores were the ones that had sold the most belts since launch:
| Store | Sales since launch | Sales in the last 28 days | Stock in the week the RPT arrived |
|---|---|---|---|
| Erzurum 3 | 160 | 0 | 0 |
| Van 2 | 67 | 0 | 0 |
| Istanbul 18 | 65 | 0 | 0 |
| Samsun 2 | 61 | 7 | 0 |
Erzurum 3 is Veli’s store again; it had also sold the most jackets in the chain. On the belt too it is first of the 24 stores that got the initial allocation.
“Of all the stores that got the initial allocation, mine has sold the most of this belt since launch,” says Veli. “Its sales show as zero because the rail’s been empty, and that’s exactly why the system isn’t sending any.”
The belt’s last weeks, across the whole chain:
| Weeks from launch | Sales | Real demand | In the warehouse |
|---|---|---|---|
| 18 | 3 | 21 | 0 |
| 19 | 6 | 23 | 599 |
| 20 | 21 | 42 | 592 |
| 21 | 14 | 31 | 580 |
| 22 | 17 | 30 | 569 |
| 23 | 13 | 27 | 559 |
| 24 | 7 | 17 | 553 |
| 25 | 7 | 11 | 548 |
| 26 | 5 | 16 | 544 |
| 27 | 4 | 15 | 546 |
Markdown starts in week twenty. With close to 600 belts sitting in the warehouse, more than two in five of the customers who want the belt cannot find it every week, and in eight weeks out of ten half or more cannot. The chain does not see the real demand column; we see it because Lumoda is synthetic. Up to exit, 54 belts left the warehouse: 12 to the stores, the rest to online orders.
On the morning the season closed, 546 of the 600 belts that arrived, or 91.0%, were still in the warehouse. The warehouse cannot tell which order a carton came from; we count on a first in, first out (FIFO) assumption. On this belt the assumption changes nothing: when the RPT arrived there was not a single unit of this belt in the warehouse. The 546 belts in the warehouse went to the outlet.
Veli was right. But the second half of the story teaches more.
Four allocation rules
In the second article we listed three ways. The case has four rules:
- a. Today’s rule. Look at the last 28 days’ sales; if sales are zero, send nothing.
- b. In-stock-day rate. Take the sales of the store and size over their last 28 days in stock, and carry them forward to today with the life cycle curve. A cell that did not sell even with stock on the rail gets nothing.
- c. Relaunch. On the first Monday after the RPT reaches the warehouse, allocate it like an initial allocation: each store and size’s share comes from its in-stock-adjusted rate of sale in the product’s first three weeks. On the following Mondays, b.
- d. Relaunch + hold-back. The same as c, but 30% of the stock waits in the warehouse and is allocated the following Monday with rule b.
b, c and d touch only products whose RPT has arrived. In a world without RPTs all four produce exactly the same shipments; the differences come only from how the RPT is allocated.
To choose the rule we did not look at the game seasons. In the earlier spring-summer season, with the RPTs Banu actually placed, we ran the four rules:
| Rule | Collection profit | Against today’s rule | RPT in the warehouse at exit |
|---|---|---|---|
| a. today’s | TRY 311,438,933 | — | 49.8% |
| b. in-stock-day rate | TRY 320,405,745 | TRY 8,966,812 | 42.3% |
| c. relaunch | TRY 308,506,539 | TRY −2,932,394 | 1.3% |
| d. c + hold-back | TRY 315,996,476 | TRY 4,557,543 | 8.4% |
c almost empties the warehouse but falls behind even today’s rule on profit. The visible reason: it sends the stock out in one go, by the shares of the first weeks; stock that goes to a store that will not sell it stays there, and then there is no stock left in the warehouse to send to the store that does sell. Unmet demand under c is higher even than under a. b leads. The difference between b and d is TRY 4,409,269, 1.38% of Collection profit: small, but not small enough to ignore. We chose the rule before the games; the games used b.
Two lessons follow. First: do not leave an incoming RPT to a rule that says “if sales are zero, send nothing”. Second: “send it all” is not the answer either; moving stock to a store is not the same as selling it.
Back to the belt
The same 600 belts under the four rules, and with no RPT at all:
| Rule | To stores | In the warehouse at exit | Full-price sales | Profit | Against no RPT |
|---|---|---|---|---|---|
| No RPT | — | — | 1,094 | TRY 192,010 | — |
| a. today’s | 12 | 546 | 1,099 | TRY 179,507 | TRY −12,503 |
| b. in-stock-day rate | 137 | 421 | 1,109 | TRY 195,775 | TRY 3,765 |
| c. relaunch | 599 | 0 | 1,105 | TRY 175,547 | TRY −16,463 |
| d. c + hold-back | 441 | 117 | 1,109 | TRY 188,384 | TRY −3,626 |
Under all four rules full-price sales barely rise. The stock arrived two weeks before markdown; most customers who wanted the belt at full price had long since come and gone. Almost all the extra sales are in the markdown period and after; at those prices they barely cover the cost of the 600 belts. Relaunch spreads all the stock across the stores and gives the worst result: 599 belts went to the stores, but the loss is bigger even than under today’s rule. The best rule, b, only breaks even.
Now let’s place the same 600 belts two weeks earlier, on the second Monday. That is what the oracle does. The stock arrives 16.1 weeks after launch, nearly four weeks before markdown. Allocated with rule b, full-price sales rise to 1,169 and profit against no RPT is TRY 18,578. But with today’s allocation even the oracle loses money: TRY −3,993.
The stock left in the warehouse was an allocation mistake. But the real mistake was made not that day but fourteen weeks earlier, on the morning the order was placed. Allocation does not fix the decision’s mistake; at best it gets you to break-even. The profit was in the timing of the order.
The belt’s amounts are small: a cheap product, costing TRY 125. Let’s read the scale from the chain’s total. Banu’s Far East RPTs lost TRY 19,697,766 in autumn-winter with today’s allocation; with allocation b the loss is TRY 10,899,477. Allocation halves the loss; it does not wipe it out. In spring-summer a loss of TRY 5,405,735 turns into a gain of TRY 8,661: break-even. In the Far East as on the belt, the lesson is the same: allocation shrinks the loss and at best gets you to break-even.
Look at all of Banu’s RPTs and the picture changes. In autumn-winter, with today’s allocation, a total loss of TRY 8,688,770; with allocation b, a gain of TRY 4,332,640. There, allocation turns the result round. What the origin rows show: the domestic RPTs were already making money, TRY 15,896,813 with today’s allocation and TRY 20,473,554 with b. The domestic gain grows, the Far East loss halves; together they push the total into the black. Allocation makes a good decision better and a bad decision less bad. It does not make a bad decision good.
The whole chain
Now all the arms. Every arm lives through the same demand; the difference is only in the RPT decision and in how the RPT is allocated. The base for comparison is a season with no RPT at all.
The profit differences here cover the whole Collection; the fifth article’s covered only the products that got an RPT. The two do not come to the same number. At Lumoda part of the customers who find the rail empty switch to another product, and markdown looks at sales; an RPT product staying on the rail also changes the sales of the products next to it. In spring-summer, the profit of the 133 products the recommend arm gave no RPT fell by TRY 6,654,235 in total.
“Recommend” is with the LightGBM candidate model. With logistic regression the result is very close: TRY 28,777,732 in autumn-winter, TRY 89,382,623 in spring-summer.
The columns: in the warehouse at exit, the RPT stock standing in the warehouse on the morning the season closes (on a FIFO assumption); all of it goes to the outlet. Wasted, stock still unsold in the chain at the very end, at most as much as the RPT that arrived. Recovered, the fall in unmet demand against no RPT: from permanent loss and from customers who switched to another product. Autumn-winter:
| Arm | RPT units | In the warehouse at exit | Wasted | Recovered: permanent | Recovered: substitution | Δ gross profit |
|---|---|---|---|---|---|---|
| Banu, today’s allocation | 203,110 | 102,534 | 89,905 | 103,004 | 26,270 | TRY −8,688,770 |
| Banu, b | 203,110 | 83,962 | 80,592 | 110,944 | 24,980 | TRY 4,332,640 |
| FRR third Monday, b | 34,180 | 4,558 | 4,286 | 23,033 | 7,760 | TRY 8,201,607 |
| Recommend, b | 222,230 | 63,444 | 55,045 | 145,471 | 46,659 | TRY 29,325,565 |
| Oracle, b | 265,860 | 31,563 | 34,187 | 206,111 | 58,830 | TRY 60,035,457 |
Spring-summer:
| Arm | RPT units | In the warehouse at exit | Wasted | Recovered: permanent | Recovered: substitution | Δ gross profit |
|---|---|---|---|---|---|---|
| Banu, today’s allocation | 343,680 | 131,685 | 103,608 | 227,207 | 37,578 | TRY 33,712,118 |
| Banu, b | 343,680 | 96,106 | 86,541 | 240,781 | 41,070 | TRY 56,132,416 |
| FRR third Monday, b | 62,380 | 989 | 876 | 51,531 | 8,287 | TRY 31,538,599 |
| Recommend, b | 304,110 | 39,385 | 46,226 | 240,696 | 55,369 | TRY 90,850,820 |
| Oracle, b | 512,600 | 69,107 | 70,080 | 410,411 | 101,352 | TRY 129,496,381 |
Three conclusions of the series come out of these two tables.
First: today’s RPT practice makes money one season and loses it the next. In autumn-winter, placing no RPT at all is TRY 8,688,770 more profitable than Banu’s rule with today’s allocation. In spring-summer the rule makes TRY 33,712,118. The autumn-winter loss is not down to a lack of sales: that season the rule recovers 129,274 units of unmet demand. The loss comes from orders placed on the wrong product, at the wrong time, in the wrong quantity, and from stock left in the warehouse. Of the 96 RPTs, 50 did not raise the product’s full-price sales by even half the MOQ; 51.6% of the stock that arrived was in the warehouse when the season closed.
Second: allocation and decision can be measured separately; both matter, but not equally. Allocating the very same orders of Banu’s with rule b alone makes TRY 13,021,410 in autumn-winter and TRY 22,420,298 in spring-summer. Changing the decision under the same allocation, that is, moving from Banu’s rule to the recommend arm, adds a further TRY 24,992,925 and TRY 34,718,404 respectively on top. The decision’s share is one and a half to two times the allocation’s.
The ratio is like the one at the end of the Replenishment series: there too, the policy’s effect was bigger than the forecast’s. In both series the bigger part of the gain comes not from forecasting a number better but from the decision made with that number.
Third: the recommend arm takes a large part of the oracle’s gain. In autumn-winter about half, 48.8%; in spring-summer 70.2%. The oracle knows the demand that would have come had no RPT been placed, and the supplier’s real delay; the recommend arm knows only what happened up to that Monday morning. But the oracle is not an upper bound. It thinks at chain level and does not know which store the stock will be left in. In autumn-winter 58 of its 116 RPTs, and in spring-summer 51 of its 129, do not raise the product’s full-price sales by even half the MOQ. For the recommend arm the figures are 20 and 6.
Was it luck?
We kept the same world, the same stores and the same operations, and changed only the stream of customers: the published world and four alternatives, five paths. On every path the curve, the uncertainty and the candidate model were learnt again from that path’s own history. The allocation rule was not chosen again on the paths; all of them use b.
Profit difference against no RPT, TRY million; the smallest · median · largest of the five paths:
| Arm | Autumn-winter | Spring-summer |
|---|---|---|
| Banu, today’s allocation | −8.7 · −8.0 · −7.0 | 32.2 · 34.0 · 34.4 |
| Banu, b | 4.3 · 5.5 · 6.5 | 55.0 · 55.3 · 56.6 |
| FRR third Monday, b | 8.2 · 8.9 · 9.2 | 30.6 · 31.2 · 31.5 |
| Recommend, b | 29.2 · 30.0 · 30.9 | 88.6 · 89.5 · 90.9 |
| Oracle, b | 60.0 · 60.7 · 61.0 | 128.8 · 129.0 · 129.9 |
The spread across paths is narrow; the gap between arms is wide. In both seasons, on all five paths, the recommend arm is ahead of both of Banu’s allocations and of FRR. The recommend arm with allocation b is more profitable than Banu’s rule with today’s allocation by a median of TRY 38,014,335 in autumn-winter (at least TRY 36,253,494), and by a median of TRY 56,271,363 in spring-summer (at least TRY 54,578,831). The gain from changing only the allocation is positive on all five paths too: a median of TRY 13,513,143 and TRY 22,232,565.
Banu’s rule with today’s allocation was more profitable than placing no RPT on none of the five paths in autumn-winter, and on all five in spring-summer. This is not bad luck. The visible reason is the season itself: in spring-summer there were 57 real hits, in autumn-winter 38. The rule’s alarm also goes off on products that are not hits, and its quantity is fixed; in a season with few hits those orders weigh more. In autumn-winter 71 of the 96 RPTs went to products that were not hits, in spring-summer 64 of the 103.
The jacket
The first article’s jacket, across all the arms:
| Arm | Order | Profit | Against no RPT |
|---|---|---|---|
| No RPT | — | TRY 1,730,747 | — |
| Banu, today’s allocation | third Monday, 930 | TRY 2,410,971 | TRY 680,224 |
| Banu, b | third Monday, 930 | TRY 2,480,196 | TRY 749,449 |
| FRR, b | third Monday, 660 | TRY 2,331,639 | TRY 600,892 |
| Recommend, b | second Monday, 2,120 | TRY 3,061,854 | TRY 1,331,107 |
| Oracle, b | second Monday, 2,160 | TRY 3,083,023 | TRY 1,352,276 |
FRR’s order here is 660, not the 620 of the fifth article: in this arm’s world Banu’s RPTs did not go to the other game products, the jacket had sold not 1,091 but 1,107 units by that morning, and the same formula came out a little bigger.
On the jacket the oracle is ahead of the recommend arm by a small margin. Without knowing demand, the recommend arm placed an order very close to the oracle’s: the same Monday, 2,120 against 2,160. Where the recommend arm differs from Banu is in timing and quantity: a week earlier, and more than twice as much.
Banu’s rule makes money on this product too: an RPT placed on a hit is good, even if the quantity is wrong. The rule’s loss is elsewhere: in late orders placed on products that were not hits, and on the Far East.
Where this model falls short
Stock left at the end of the window was counted as zero. When the season closes, the stock in the warehouse goes to the outlet and outlet sales count as revenue. Only stock still unsold at the very end is TRY 0. This assumption penalises most the arm that leaves the most stock behind: in spring-summer Banu’s rule with today’s allocation left 103,608 units, the recommend arm 46,226. In reality that stock could be carried over to the next season; but a season of waiting in the warehouse has a cost too.
Substitution exists, and is hard to measure. At Lumoda part of the customers who find the rail empty buy another product: in spring-summer, 27.7% of unmet demand. That is why we split recovered demand into two parts. Recovering a permanent loss brings the chain a new sale. Recovering a substitution pulls the customer back from another product to this one; the gain is only the difference between the two products’ margins. In a real chain the substitution rate changes with the product group, the store and the price. Measuring it is a job of its own; the Lost Sales series explains why the distinction matters.
There is no relaunch effect. When a product comes back after weeks off the rail, customers may take time to rediscover it. In the dataset, demand is independent of the rail’s history. In my research I could not find a peer-reviewed study that measures this effect.
A single chain, two game seasons. Five alternative demand paths show that the differences are not luck, but they are all the same two seasons of the same chain. The models learnt from the closed seasons of three years’ data: three for autumn-winter, four for spring-summer. Your data may not have this much history, or the history may not resemble today.
Part of the uncertainty was learnt in-sample. The first season in Lumoda’s data has no season before it. Its estimation error was worked out with a curve that includes its own data, which makes the uncertainty look slightly optimistic.
There are no store-to-store transfers. Fixing an RPT that went to the wrong store with a transfer was possible; in this case we deliberately kept it switched off.
Supply terms are fixed. The MOQ, the price and the lead time do not change; only delivery can be late, by 5.8 days on average in the Far East. The arms other than the oracle decide on the planned lead time. In reality the repeat order for a fast-selling product can be shortened through negotiation, and fabric can be reserved in advance. This series’ Far East result, that an RPT there makes a profit only if placed early and small, leans on this assumption more than on any other.
The question we started with
Pelin had asked: how much more would it have sold if we had had more? And Banu: will it make it?
Six articles later, the answers to both were in the data. Sales do not show demand, but with demand filled in at the decision date and the life cycle curve, most of demand can be rebuilt. Making it in time is not enough; the real question is what is left of the curve when the stock arrives. Sending the incoming stock to the stores is not a question for a rule that says “sales are zero”, either; it is a question for a rule that asks “what would it have sold if there had been stock?” But no allocation rule can sell stock that arrives where the curve has ended.
Not placing an RPT is a decision too. On the belt, on the fourth Monday, it was the right one. In autumn-winter, the RPTs of Banu’s rule, with today’s allocation, were worse in total than placing none at all. But a good system is not one that places few RPTs. The recommend arm places RPTs on fewer products than Banu, 72 against 96 and 77 against 103 in the two seasons, but earlier and, on average, bigger. The oracle is the arm that places the most RPTs. A good system places an RPT on the right product, early and in the right quantity; and with the same sum it knows which product not to place one on.