cubiclabs
ConceptSample company: a Dutch food wholesaler with three distribution centres

From forecast to order proposal.

Demand per product and location for the next four weeks, turned into an order list a buyer can approve or adjust.

Databricks MLflow Unity Catalog
ForecastNoordvaart Foodservice · Week 47

Order proposal

Products

Dashed line is the forecast, shaded area the 80% range.

Order proposal

Distribution centreForecastSafety stockIn stockOn orderProposalValueStatusAction

Rule: proposal = max(0, forecast + safety stock - in stock - on order). Forecast is the sum over the chosen horizon, in cases. Safety stock is about half a week of expected demand. Value is cases times cost per case. Range is the 80% interval and widens with the horizon.

Sample data. Names and figures are made up for this demo.

What we built

  • A weekly demand forecast per product and distribution centre, with a range, tracked in MLflow
  • Forecasts stored as Delta tables in Unity Catalog, next to the sales metrics
  • One written rule for the order proposal: forecast plus safety stock, minus stock and open orders
  • A Databricks App where the buyer approves or adjusts each line

The order rule is written once, so the buyer, the planner and finance calculate a proposal the same way. A change to safety stock or lead time is a change to one definition, not to ten spreadsheets.

In this concept the numbers are generated in the page: a seasonal demand curve with random weekly noise, and a stock position per centre. In a live build the forecast table is written by the scheduled job, the app reads it, and approved lines go to the ERP as draft purchase orders.

How it is built

ERPExcel files

Sources

Orders, stock levels and open purchase orders from the ERP, plus supplier files.

DatabricksDelta Lake

Lakehouse

Bronze and silver tables loaded nightly. Daily demand per product and centre in gold.

MLflowPython

Forecast

A scheduled job writes forecast and range per product, centre and week. Runs and errors are logged.

Databricks Apps

Buyer app

Shows the proposal next to stock and open orders. The buyer approves or changes each line.