Project · Stock reorder dashboard
Flagging 1,643 of 4,052 stock-outs in time to reorder

The problem
Best sellers run out before anyone notices while slow items fill the shelves, because stock is checked by hand and too late.
The solution
A daily pipeline loads sales and stock, works out days of cover and a reorder point per item, emails the morning reorder list, and shows stock risk in Power BI.
How it works
- Load: Daily sales and stock per store and item into a warehouse, checked on every load
- Forecast: Expected daily demand per item from recent sales
- Rules: Days of cover, reorder point and safety stock written once, counting orders on the way
- Alert: An email each morning listing the items to reorder and how many
- Report: A Power BI stock report: what to reorder, what is empty, what sits too long
A closer look



The code
@task
def rules():
import pipeline
pipeline.rules()
@task
def alert():
import pipeline
pipeline.alert()
load() >> forecast() >> rules() >> alert()The impact
- A reorder list in the 7am email every morning, with the store, item and amount to order.
- Overstocked and slow items listed: 37% of stock value on the last day.
- One rule for days of cover and safety stock, used by every store.
The result
913,000 sales rows: 1,643 of 4,052 stock-outs flagged in time to reorder, and 37% of stock value found in slow items.