To forecast FMCG demand using ERPNext data, pull SKU-by-warehouse sales history from invoices and the stock ledger, clean out stockout gaps, scheme spikes and returns, build a simple seasonal baseline, then write the result back into ERPNext as reorder levels and production plan quantities. Review forecast accuracy monthly and adjust.
That is the whole method in one paragraph. The rest of this guide explains each step, where it usually goes wrong, and when a company actually needs dedicated demand forecasting software for FMCG rather than a well-built report on top of the ERP it already runs.
What Demand Forecasting Software for FMCG Has to Do With Your Data
Most content on this topic is written by vendors selling AI forecasting engines, and it tends to skip a basic point: every forecasting tool, however sophisticated, is only as good as the transaction history you feed it. If you already run ERPNext, you are sitting on most of that history. Sales invoices, delivery notes, stock movements, returns and scheme discounts are all recorded against items, warehouses and dates.
The problem is rarely a missing algorithm. It is that the raw data records what you sold, which is not the same as what customers wanted. The gap between the two is where most FMCG forecasts go wrong, and it is fixable inside your existing setup.
Step 1: Pull the Right History Out of ERPNext
| ERPNext source | What it tells you | Common trap |
|---|---|---|
| Sales Invoice / Delivery Note items | Units sold per SKU, per warehouse, per date | Includes one-off bulk orders that are not repeatable demand |
| Stock Ledger Entry | Stock on hand on any given day | Needed to spot days when you had nothing to sell |
| Credit Notes (sales returns) | Returned, damaged or expired units | Often left out, which overstates true consumption |
| Pricing Rules and scheme items | When discounts or free-goods schemes ran | Scheme months look like normal demand if not flagged |
| Customer and territory fields | Which distributor or region bought | Only useful if these masters were kept clean |
Step 2: Clean the History Before You Forecast Anything
Stockout days look like zero demand
If a SKU was out of stock at a warehouse for eight days, the invoices show eight days of zero sales. A forecast built on that data learns that demand was lower than it really was, plans less stock, and causes the next stockout. Cross-check sales against the Stock Ledger and either exclude stockout days or replace them with the average of surrounding days.
Scheme months inflate the baseline
A month with a buy-two-get-one scheme or a distributor push will show a spike that will not repeat without the scheme. If your Pricing Rules or scheme records are dated, flag those periods and treat the uplift separately. Otherwise your baseline quietly assumes every month is a promotion month.
Returns, damages and expiries
Net out Credit Notes against the period they relate to. For short shelf-life products, expired returns are a signal that you over-supplied a channel, and ignoring them repeats the mistake.
Primary vs. secondary sales
Most manufacturers record primary sales (factory to distributor) in ERPNext. What the market actually consumed is secondary sales (distributor to retailer). If distributors load up before a price change, primary sales spike while consumption stays flat. Where secondary sales data is available through a distributor portal or DMS, use it to sense-check primary numbers. Where it is not, be honest that your forecast is of distributor ordering behaviour, not consumer demand.
New, discontinued and substituted SKUs
A new pack size that replaced an old one needs the old SKU's history mapped across, or the forecast will treat it as having no history at all.
Step 3: Build a Baseline Forecast a Planner Can Defend
Segment your SKUs first
Rank items by volume (ABC) and by how steady their demand is. High-volume, steady SKUs suit simple methods. Low-volume, erratic SKUs are better handled with a fixed safety buffer than a precise forecast.
Use a moving average for the baseline
A three-month or six-month moving average of cleaned sales is easy to understand and update. It lags turning points, which is its main weakness.
Apply a seasonal index
Compare each month's cleaned sales to the annual average to get a factor per month, then apply it to the baseline. This is how festival and summer peaks show up in the plan.
Overlay known events by hand
Planned schemes, new distributor onboarding or a price revision go on top as explicit adjustments that the sales team signs off on.
This can live in a spreadsheet at first. Once the logic is stable, it is a good candidate to move into a custom report or Frappe app so the numbers refresh from live data rather than an export.
If you want a second pair of eyes on whether your ERPNext data is clean enough for this, a short review of your stock ledger and returns setup usually answers that quickly.
Step 4: Turn the Forecast Into Replenishment Planning
Reorder levels per warehouse
The standard reorder point is average daily demand × lead time + safety stock. Set these in each Item's reorder table per warehouse, and ERPNext can raise Material Requests automatically when projected stock falls below them.
Production Plan quantities
For manufactured SKUs, feed forecast quantities into Production Plans alongside confirmed Sales Orders, so the plant builds ahead of seasonal demand instead of reacting to it.
Refresh on a schedule
Reorder levels set once and never revisited are one of the most common reasons an otherwise sound demand planning ERP setup drifts out of line with reality.
Step 5: Measure Forecast Accuracy and Bias
Error size (for example, mean absolute percentage error): how far off you were on average.
Bias: whether you consistently over-forecast or under-forecast. Bias is often more useful than error size, because a steady over-forecast shows up as excess and expiring stock, while a steady under-forecast shows up as lost sales.
When a Report Is Enough and When You Need Dedicated Software
| Situation | What usually fits |
|---|---|
| Few hundred SKUs, a handful of warehouses, planner has time for monthly review | Cleaned ERPNext data plus a spreadsheet or custom report |
| Stable logic you want refreshed from live data | Custom Frappe report or app on top of ERPNext |
| Thousands of SKUs across many regions and channels, frequent promotions | Dedicated forecasting tool, integrated with ERPNext for stock and orders |
Frequently Asked Questions
Where to Go From Here
If your forecasts feel unreliable, check the inputs before looking at new software. Stockout gaps, unflagged schemes and missing returns explain most of the problem, and all of them can be fixed in an existing ERPNext setup. You can see how we have approached similar FMCG and distribution problems in our case studies.
If you want to know whether your current data can support the method in this guide, book a free ERPNext consultation. We will look at how your stock ledger, returns and scheme records are set up, what a forecasting and reorder process could look like on your data, and whether a custom report is enough or you need a dedicated tool. It is part of how we approach tailored ERPNext implementation for FMCG manufacturers and distributors.








