Skip links
Table of Contents
    Demand Forecasting Software for FMCG_ Using ERPNext Data

    FMCG Demand Forecasting and Replenishment Planning Using ERPNext Data

    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

    Start with at least 12 months of history if you have it, so that one full seasonal cycle is visible. Pull it at the SKU-and-warehouse level, not as company totals, because a national average hides the regional and festival-season swings that matter most in FMCG.
    ERPNext sourceWhat it tells youCommon trap
    Sales Invoice / Delivery Note itemsUnits sold per SKU, per warehouse, per dateIncludes one-off bulk orders that are not repeatable demand
    Stock Ledger EntryStock on hand on any given dayNeeded to spot days when you had nothing to sell
    Credit Notes (sales returns)Returned, damaged or expired unitsOften left out, which overstates true consumption
    Pricing Rules and scheme itemsWhen discounts or free-goods schemes ranScheme months look like normal demand if not flagged
    Customer and territory fieldsWhich distributor or region boughtOnly useful if these masters were kept clean
    You can extract most of this with ERPNext’s Report Builder or a custom Query Report, and export it to a spreadsheet. For recurring use, a scheduled report or a small custom Frappe app that reads the same tables is more reliable than a monthly manual export.

    Step 2: Clean the History Before You Forecast Anything

    This is the step most teams skip, and it has more effect on forecast quality than the choice of method.

    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

    For most mid-sized FMCG portfolios, a transparent method beats a black box, because the planner has to explain the number to sales and production.

    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

    A forecast that stays in a spreadsheet changes nothing. Replenishment planning for FMCG means writing the numbers back into the system that raises purchase and production documents.

    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.

    Safety stock is where judgment matters most. Higher variability and longer supplier lead times both justify more buffer. Short shelf life argues for less. There is no single right number, and it should differ between an A-class staple and a slow-moving seasonal SKU.

    Step 5: Measure Forecast Accuracy and Bias

    Each month, compare what you forecast against cleaned actual sales for the same period. Track two things:

    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.

    If one SKU group is always biased in one direction, go back to Step 2. The cause is usually a data issue, such as uncorrected stockouts or unflagged schemes, not the forecasting method.

    When a Report Is Enough and When You Need Dedicated Software

    SituationWhat usually fits
    Few hundred SKUs, a handful of warehouses, planner has time for monthly reviewCleaned ERPNext data plus a spreadsheet or custom report
    Stable logic you want refreshed from live dataCustom Frappe report or app on top of ERPNext
    Thousands of SKUs across many regions and channels, frequent promotionsDedicated forecasting tool, integrated with ERPNext for stock and orders
    Even in the last row of that table, the data cleaning in Step 2 still has to happen. A dedicated tool fed with uncorrected stockouts and scheme spikes will produce confident, wrong numbers faster.

    Frequently Asked Questions

    ERPNext records all the data forecasting needs and acts on the results through reorder levels, Material Requests and Production Plans. The forecasting calculation itself is usually a report, spreadsheet or custom app added on top, rather than a statistical engine running by default.
    At least one full year is needed to see seasonality. Two years is better, because a single year can be distorted by one unusual event. With less history, rely more on simple averages and planner judgment.
    Forecasting estimates how much will sell. Replenishment planning decides how much to buy or produce, and when, given that forecast, current stock, lead times and safety buffers. In ERPNext, replenishment is where the forecast becomes reorder levels and production quantities.
    Secondary sales are closer to real consumption, so use them if you can get reliable data from distributors. If you only have primary sales, forecast them, but watch for distributor loading around price changes and schemes.

    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.

    Vishal Parekh
    As Co-Founder of Aavatto, Vishal Parekh leads our work on the operational side of ERPNext – warehouse management, inventory control, and e-commerce fulfillment for manufacturers and traders. He’s the mind behind Univentory, and spends most of his time thinking about how businesses can replace spreadsheet chaos with systems that actually reflect what’s happening on the warehouse floor.
    Vishal-valand
    This can be a new journey !

    Related Posts

    Have a Project in Mind?

    This can be a new journey !

    leaf