Dolibarr module ยท Complete user guide

Stock Intelligence โ€” complete guide

Everything the module does, in plain business language. Learn what each feature is, why it matters, and exactly how to use it โ€” step by step. No jargon, no guesswork.

Everything lives under one menu: Products โ†’ Stock Intelligence

๐Ÿงญ

What's inside

Stock Intelligence answers the questions every stock-keeping business asks: Is my inventory healthy? What's tying up cash? How much will I sell? When and how much should I order? โ€” using proven inventory maths, with the formula shown for every number.

๐Ÿ’ฏ One health score

A single 0โ€“100 grade for your whole inventory, so you know at a glance if action is needed. See it โ†’

๐Ÿ”Ž Know your winners & dead weight

ABC/XYZ classes, dead stock, slow stock, aging and stockout risk โ€” sort your catalogue by what matters.

๐Ÿ”ฎ Forecast demand

SMA, WMA and seasonal methods, each with an accuracy score so you know how far to trust it.

๐Ÿ›’ Reorder with confidence

Reorder point, safety stock and economic order quantity tell you exactly when and how much to buy.

๐Ÿ“– Plan from future orders

The Order Book nets open customer and supplier orders into net-available stock, with a buy-by date per product.

โœ… Raise the purchase order

Turn recommendations into a draft supplier order in Dolibarr with one click. See it โ†’

Also inside: email alerts, multi-warehouse planning, multi-company support, four languages, and CSV export on every view.

๐Ÿš€

Getting Started

Three settings and one Save. The module reads your existing Dolibarr data โ€” it never changes your products, stock, or orders. It is completely read-only and safe.

First-time setup

1

Enable the module

Go to Home โ†’ Setup โ†’ Modules, find Stock Intelligence, and switch it on. It then appears in the left sidebar under Products | Services โ†’ Stock Intelligence.

2

Choose your Data Source

Open Stock Intelligence โ†’ Settings. Pick what counts as "demand":

  • Customer Orders โ€” captures demand the moment a customer commits, even before invoicing. Best for most businesses.
  • Customer Invoices โ€” counts demand only once billed. Best if your orders change a lot after they are created.
3

Set your Analysis Period

How far back to look. 12 months suits a stable business; 6 months reacts faster if your demand changes quickly.

4

Click Save

That's it. Open the Dashboard to see your first results. You can fine-tune the other settings later โ€” see the Settings section.

๐Ÿ’ก

Safe by design. Stock Intelligence only writes to its own two tables (its settings and its alert log). It reads everything else. Nothing leaves your server, and no core data is ever modified.

๐Ÿ“Š

1. Dashboard

Why it matters: one screen tells you if your inventory is healthy or needs attention โ€” before you dig into details. Open it first thing each week.

Menu: Stock Intelligence โ†’ Dashboard

Stock Intelligence dashboard: Inventory Health Score gauge and KPI value tiles
The Dashboard โ€” Health Score, value tiles (including Total Stock Value) and charts. A warehouse selector scopes it to a single site.

Inventory Health Score (0โ€“100, grade A+ to F)

A single number for the overall health of your stock. Higher is better. It is the average of four equally-weighted parts (25% each):

๐Ÿšจ Stockout Risk

How many products are close to running out. Fewer at-risk products raises the score.

๐Ÿชฆ Dead Stock

How much stock hasn't sold in a long time. Less dead stock raises the score.

๐Ÿ”„ Inventory Turnover

How quickly stock sells and is replaced. Faster turnover raises the score.

๐Ÿ“ฆ Stock Coverage

Whether stock levels match demand โ€” not too little, not too much. A healthy balance raises the score.

GradeA+ABCDF
Score90โ€“10080โ€“8970โ€“7960โ€“6950โ€“59Below 50

Aim for 70+ (Grade B or better). A low score means one or more of the four parts needs attention โ€” the charts below tell you which.

The three charts

๐Ÿ“ˆ
Demand Trend

A line showing total demand month by month. Rising line = growing demand; plan more stock. Falling line = slowing down.

๐Ÿฅง
ABC Distribution

A pie showing how your products split into A, B, and C classes by revenue. Usually a small slice (A) drives most of the money.

๐Ÿ“Š
Stock Health Overview

Bars counting products that are Healthy, Slow, Dead, or at Stockout risk. Tall Dead/Stockout bars mean action needed.

Dashboard charts: demand trend line, ABC distribution pie and stock-health bars
The three charts โ€” 12-month demand trend, ABC distribution and stock-health overview.

Quick stat tiles

Total Stock Value
โ‚ฌ tied up in all stock
Dead Stock Value
โ‚ฌ tied up in dead stock
Overstock Value
โ‚ฌ tied up in excess stock
Stockout Risk Count
Products close to running out
๐Ÿ’ก

How to read it: the value tiles turn cash you can't see into a number. Total Stock Value is what your whole inventory is worth. Of that, high Dead Stock Value = money frozen in things that don't sell (discount or clear them), and high Overstock Value = money frozen in things you bought too much of (slow down buying).

๐Ÿญ

Per-warehouse view. A warehouse selector at the top of the Dashboard scopes stock value, aging and counts to a single warehouse โ€” or leave it on All warehouses for the whole company. See the Multi-warehouse section.

๐Ÿ”Ž

2. Inventory Intelligence

Why it matters: not every product deserves equal attention. These seven views sort your catalogue so you protect the winners, clear the losers, and spot risk early.

Menu: Stock Intelligence โ†’ Inventory Intelligence โ€” pick a sub-tab across the top.

ABC-XYZ matrix classifying products by revenue value and demand predictability
The ABC-XYZ matrix โ€” value (ABC) meets predictability (XYZ). Services are excluded automatically.
๐Ÿ“„ Every view has a formula card (so you can see exactly how a number was worked out) and an Export CSV button (opens straight in Excel).
๐Ÿ“ฆ Products only. Every analysis looks at stockable products and automatically excludes services โ€” they have no stock, cost basis or lead time, so including them would only distort the numbers.

โ‘  ABC Analysis โ€” find your money-makers

Ranks products by how much revenue they bring in, then splits them into three classes. The classic "80/20" rule made visual.

A โ€” top 80% of revenue. Your critical few. Never let these run out.
B โ€” next 15%. Important, watch regularly.
C โ€” the rest. Many products, little revenue. Keep lean.
Class = based on cumulative revenue share. A โ‰ค 80%, then B โ‰ค 95%, rest = C. (Thresholds are configurable in Settings.)

โ‘ก XYZ Analysis โ€” how predictable is demand?

Measures how steady each product's demand is from month to month, using the coefficient of variation (a simple "bumpiness" measure โ€” how much sales jump around compared to their average).

X โ€” stable, easy to forecast. Trust the numbers.
Y โ€” variable, some ups and downs. Keep a buffer.
Z โ€” erratic, hard to predict. Order carefully.
CV = standard deviation of monthly demand รท average monthly demand. Low CV = X, high CV = Z. (Cut-offs configurable in Settings.)

โ‘ข ABC-XYZ Matrix โ€” value meets predictability

Combines the two above into a 3ร—3 grid. It tells you where to spend your management effort.

X (stable)Y (variable)Z (erratic)
A (high value)AX โ€” best: automate โœ“AY โ€” watch closelyAZ โ€” tricky, keep buffer
BBXBYBZ
C (low value)CXCYCZ โ€” worst: minimise

AX = high value + predictable โ†’ the ideal, safe to keep well-stocked. CZ = low value + unpredictable โ†’ hold as little as possible.

โ‘ฃ Dead Stock

Products with no movement for N days (default 90). Shows the โ‚ฌ value stuck in each. Clear or discount these to free up cash.

No sale/movement in last N days โ†’ Dead. Value = stock ร— cost.

โ‘ค Slow Stock

Products with fewer than N movements over the period. Not dead yet, but sluggish. Review before reordering.

Movements in period < threshold โ†’ Slow.

โ‘ฅ Stock Aging

Days since stock last arrived (inbound), per warehouse. Old stock ties up cash and may expire or become obsolete.

Age = today โˆ’ date of last inbound movement.

โ‘ฆ Stockout Risk โ€” what's about to run out

Gives each product a Risk Score โ€” roughly, how many "lead times" of stock you have left. A low score means you'll run out before a new order can arrive.

Risk Score = Current Stock รท (Average Daily Consumption ร— Lead Time)
  • Current Stock โ€” how many units you have now.
  • Average Daily Consumption โ€” how many you use/sell per day, on average.
  • Lead Time โ€” days from placing an order to receiving it.

A score below the threshold (set in Settings) flags the product as at-risk. Score under 1.0 means you'll likely stock out before replenishment lands.

๐Ÿ”ฎ

3. Demand Forecasting

Why it matters: knowing how much you'll likely sell next month lets you order the right amount โ€” not too much, not too little. The module offers several tried-and-tested methods and tells you how accurate each has been.

Menu: Stock Intelligence โ†’ Demand Forecasting. See a bulk list of all products, or click one for a detail view with its monthly history chart โ€” up to 24 months of history (set in Settings).

Demand forecast detail with monthly history chart, forecast value and SMA formula
Forecast detail โ€” monthly history with the forecast value, method (SMA/WMA) and accuracy (MAPE) shown.
Simple Moving Average (SMA)

Averages the last few months equally. Best for steady products.

Weighted Moving Average (WMA)

Like SMA, but recent months count more. Reacts faster to change.

Seasonal Index

Twelve monthly factors that capture busy and quiet seasons (e.g. December spikes). Great for seasonal goods.

Forecast Accuracy (MAPE)

Shows the average % error of past forecasts. Lower is better. Under 20% is good; over 50% means demand is hard to predict.

๐Ÿ”€

Blended forecast mode

Turn this on in Settings โ†’ Forecast Basis = Blended. Now the coming month's forecast can never fall below the real customer orders already booked for that month.

If history suggests 40 units but you already hold signed orders for 60, the forecast becomes 60 โ€” labelled +Book so you know it was lifted by real orders. This stops you under-buying when demand is already committed.

๐Ÿ’ก

Good to know: forecasting works best with 3+ months of history. New products with little history will show low confidence โ€” lean on the Order Book instead (next section).

๐Ÿ›’

4. Reorder Planning

Why it matters: answers the two hardest buying questions โ€” when to reorder and how much. It uses proven inventory maths so you don't have to guess.

Menu: Stock Intelligence โ†’ Reorder Planning (sub-tabs: Reorder Plan, BOM Explosion).

Reorder planning table with Reorder Point, Safety Stock, EOQ and suggested quantities
Reorder Planning โ€” Reorder Point, Safety Stock and EOQ, with the formula behind every number.

Reorder Point (ROP) โ€” when to order

The stock level that triggers a new order. When you hit it, order โ€” the remaining stock should last exactly until the new delivery arrives.

ROP = Average Daily Demand ร— Lead Time + Safety Stock
  • Average Daily Demand โ€” units used per day.
  • Lead Time โ€” days to receive an order.
  • Safety Stock โ€” extra buffer for surprises (below).

Safety Stock โ€” your buffer

A cushion that absorbs unexpected demand spikes or supplier delays. More buffer = fewer stockouts but more cash tied up.

Safety Stock = Z ร— ฯƒ(daily demand) ร— โˆšLead Time
  • Z โ€” a number from your chosen service level (80โ€“99%). Higher service level = higher Z = bigger buffer = fewer stockouts.
  • ฯƒ (sigma) โ€” how bumpy daily demand is (its standard deviation).
  • โˆšLead Time โ€” longer, riskier lead times need more buffer.
Two ways to set the buffer (Settings โ†’ Safety Stock Basis)
  • Statistical (default) โ€” the formula above works out the buffer for you from your own demand pattern.
  • Stock alert threshold โ€” use each product's Dolibarr Stock limit for alert as the buffer instead. Here a threshold of 0 means "never stock" โ€” the product is never suggested for reorder. Products with no threshold fall back to the statistical value.

Economic Order Quantity (EOQ) โ€” how much to order

The order size that keeps total costs lowest โ€” balancing the cost of placing orders against the cost of holding stock.

EOQ = โˆš( 2 ร— D ร— S รท H )
  • D โ€” annual demand (units per year).
  • S โ€” cost of placing one order (admin, delivery).
  • H โ€” cost of holding one unit for a year (storage, capital).

Order too often โ†’ high ordering costs. Order huge batches โ†’ high holding costs. EOQ finds the sweet spot.

BOM Explosion โ€” for manufacturers

If you build products from parts, this "explodes" a finished-goods requirement down to every raw material needed, following sub-assemblies recursively. Requires Dolibarr's MRP / BOM module to be enabled.

๐ŸŽฏ

Reorder points you can trust

  • โœ“ The plan uses Net Available stock (see the Order Book section), not just what's physically on the shelf โ€” so you don't double-order things already on their way, or ignore stock already promised to customers.
  • โœ“ It also respects each product's own Dolibarr alert threshold. If you've set a minimum on a product, the reorder point never drops below it.
  • โœ“ When a single warehouse is selected, both the on-hand stock and the demand behind the reorder point come from that warehouse's own throughput โ€” so each site is planned on its own numbers. See the Multi-warehouse section.
๐Ÿ“–
Forward-demand planning

5. Order Book

Why it matters: most tools plan buying from your past sales. The Order Book plans from your future โ€” the open customer orders you've already signed but not yet delivered. Perfect for project, installation, and build-to-order businesses, where a signed order for next month matters far more than last year's history.

Menu: Stock Intelligence โ†’ Order Book

Order Book showing on-hand, on-order, committed, net available and buy-by dates
The Order Book โ€” on-hand netted against open orders into Net Available, with a buy-by date per product.

The key idea: Net Available stock

Physical stock on the shelf can lie. Some is already promised to customers; more is already on its way from suppliers. Net Available is the honest number โ€” what you can truly still sell or use:

Net Available = On Hand + On Order โˆ’ Committed
On Hand

Units physically in your warehouse right now.

+ On Order

Units on open supplier orders โ€” bought but not yet received.

โˆ’ Committed

Units on open customer orders โ€” promised but not yet shipped.

The KPI strip (top of the page)

Products in Order Book
Items with open orders
Products Needing Action
Will fall short
Committed Units
Total promised to customers
Earliest Buy-By
Your most urgent deadline

The bulk table โ€” read it left to right

Rows are sorted by urgency; the most urgent (highlighted) sit at the top. Here's an illustrative example:

RefLabelOn HandOn OrderCommittedNet Avail.Next DeliveryShortfallBuy-By
PMP-200Water pump4018โˆ’1405 Aug1422 Jul โš 
CBL-66 mm cable120200260โˆ’6018 Aug6004 Aug
SW-3232 A switch5003020โ€”0โ€”
  • Net Available โ€” the honest figure. Negative (red) = you've promised more than you can supply.
  • Next Delivery โ€” the earliest date a customer is expecting their goods.
  • Shortfall โ€” how many units short you'll be. This is what you need to buy.
Buy-By date โ€” the star column
Buy-By = Delivery Date โˆ’ Lead Time

The last day you can place the order and still receive it in time to deliver. Miss it and you'll be late. Rows past or near their Buy-By are highlighted.

Per-product detail: the time-phased projection

Click any product to see its future month by month, for the next N months (horizon set in Settings). For each month it shows incoming supply, committed demand, and where your stock lands โ€” flagging the month it goes negative, with a matching chart.

MonthIncoming SupplyCommitted DemandProjected On-Hand
Startโ€”โ€”4
July018โˆ’14 โš  goes negative
August2006
September033

How to read it: follow the "Projected On-Hand" column down. The first month it turns red is the month you'll run out โ€” order in time to fill that gap.

๐Ÿ’ก

Set delivery dates. The Order Book needs your customer orders to have a Delivery date (Dolibarr's order field). Orders with no date are treated as due now, so they'll always look urgent.

๐Ÿ“„

Export CSV to hand the whole plan to your buyer, or to build purchase orders. Works even with no sales history โ€” it reads live open orders.

โœ…

6. Order Now (Purchase Recommendations)

Why it matters: the shortest path from "what's low" to "purchase order". It lists every product below its reorder point, grouped by supplier, so you can raise one order per supplier in minutes.

Menu: Stock Intelligence โ†’ Purchase Recommendations

Order Now recommendations grouped by supplier, each with a Create draft PO button
Order Now โ€” what to buy, grouped by supplier, each group with a one-click Create draft PO.
  • โœ“ Products below their reorder point, grouped by supplier and sorted by urgency.
  • โœ“ Each line shows a suggested order quantity, unit price, and estimated cost โ€” so you can see the spend before committing.
  • โœ“ A separate "No Supplier Assigned" table lists products that need one โ€” assign a supplier in Dolibarr and they'll group correctly next time.
  • โœ“ Uses Net Available stock, so recommendations account for goods already on order or already promised.
  • โœ“ Export to CSV for your purchasing team.
๐Ÿงพ

Create a purchase order in one click

Each supplier group has a Create draft PO button. Click it and the module builds a draft supplier order in Dolibarr, pre-filled with the recommended products, quantities, and that supplier's prices โ€” no re-typing, no copy-paste.

1. Review the group

Check the suggested quantities and cost for one supplier.

2. Click Create draft PO

A draft supplier order appears in Dolibarr, ready and populated.

3. You validate & send

Nothing is sent automatically. You review, adjust and approve it yourself.

Safe: creating a PO only ever produces a draft โ€” no email is sent and no stock moves. The button appears only for users who hold Dolibarr's supplier-order create permission.

๐Ÿ”€

Order Now vs Order Book: use Order Now for routine replenishment driven by reorder points. Use the Order Book when specific signed customer orders drive your buying. Many businesses check both.

๐Ÿญ

7. Multi-Warehouse Planning

Why it matters: stock in one location tells you nothing about another. If you run more than one warehouse, you need to plan each on its own stock and its own demand โ€” not a company-wide blur.

Where: a warehouse selector on the Dashboard, Reorder Plan, Order Now and Stock Aging.

Reorder plan with the warehouse selector scoping figures to a single warehouse
The warehouse selector โ€” plan a single site on its own stock and its own demand, or leave it on All warehouses.
๐Ÿ“
Pick one warehouse

Choose a single warehouse and every figure โ€” on-hand stock, net available, stock value and aging โ€” narrows to just that site. Or leave it on All warehouses for the whole company.

๐Ÿ”„
Per-warehouse demand, too

With a warehouse selected, the reorder plan and Order Now base demand on that warehouse's own outbound stock movements โ€” so a busy hub and a quiet depot are each planned on their real throughput, not a shared average.

๐Ÿ’ก

Good to know: catalogue-wide analyses that aren't location-specific โ€” ABC/XYZ classification and the demand forecast โ€” stay company-wide and are labelled as such, so you always know which scope a number belongs to.

๐Ÿ””

8. Alerts

Why it matters: problems find you instead of you hunting for them. Get an email when something needs attention โ€” no need to log in every day.

Menu: Stock Intelligence โ†’ Alerts

๐Ÿšจ
Stockout Risk

Warns when products are about to run out. Prevents lost sales.

๐Ÿชฆ
Dead Stock

Flags stock that isn't selling, with its โ‚ฌ value. Easiest win to act on.

๐Ÿ›’
Reorder Reminder

Reminds you what's due for reordering, so nothing slips.

Setting up an alert (per type)

1

Enable the alert type you want.

2

Pick a frequency โ€” daily or weekly.

3

Enter a recipient list โ€” one or more emails (e.g. buyer@co.com, manager@co.com).

4

Click Test-send to confirm the email arrives, then Save.

โฐ

Make them automatic: alerts are sent by a scheduled job. Add scripts/cron_alerts.php as a Dolibarr scheduled job (cron) so emails go out on their own. No spam โ€” if there's nothing to report, no email is sent.

โš™๏ธ

9. Settings (23 parameters)

Everything is tunable, but the defaults work well. Change these only when you understand your own numbers better than the averages. Grouped below for easy reference.

Menu: Stock Intelligence โ†’ Settings

Data & period

  • Data Source โ€” Customer Orders or Invoices.
  • Analysis Period โ€” how many months of history to use.

Classification thresholds

  • ABC โ€” A% โ€” revenue cut-off for Class A (default 80).
  • ABC โ€” A+B% โ€” combined cut-off for A+B (default 95).
  • XYZ โ€” X CV โ€” max bumpiness for stable X items.
  • XYZ โ€” Y CV โ€” max bumpiness for variable Y items.

Dead & slow stock

  • Dead stock days โ€” no movement for this long = dead (default 90).
  • Slow stock threshold โ€” fewer than this many movements = slow.
  • Slow stock days โ€” the window those movements are counted over.

Forecasting

  • SMA period โ€” months averaged for Simple Moving Average.
  • WMA period โ€” months averaged for Weighted Moving Average.
  • Forecast history window โ€” up to 24 months of history shown on the forecast graph.

Reorder economics

  • Service level โ€” target % of demand met from stock (80โ€“99). Higher = bigger safety buffer.
  • Order cost โ€” cost of placing one order (the "S" in EOQ).
  • Holding cost % โ€” yearly cost of holding stock, as % of value (the "H").
  • Default lead time โ€” days from order to delivery when no product-specific value exists.
  • Safety stock basis โ€” statistical formula, or each product's Dolibarr alert threshold.
  • Reorder on-order horizon โ€” how far ahead an incoming supplier order still counts as covering a need.

Risk

  • Stockout risk threshold โ€” Risk Score below this flags a product as at-risk.
๐Ÿ“–

Forward-planning controls

  • Stock Basis โ€” Auto net (use Net Available) or Physical only (on-hand shelf stock).
  • Forecast Basis โ€” Historical (from past sales) or Blended (floored by booked orders).
  • Order Book Horizon โ€” how many months ahead the projection looks.
  • Supplier Order Statuses โ€” which supplier-order statuses count as "on order" (default 3,4 = approved & ordered).
๐Ÿ“ค

Export to CSV

Every analysis view has an Export CSV button. Files are Excel-friendly and UTF-8 encoded, so accents and symbols display correctly. Use them to share with management, feed a spreadsheet, or build purchase orders.

๐ŸŒ

Languages

The whole module is available in English, French, Spanish, and German. It follows your Dolibarr user language automatically โ€” no separate setting needed.

๐Ÿข

Multi-Company

Fully compatible with Dolibarr's multi-company module. Every analysis โ€” dashboard, forecasting, reorder planning and the Order Book โ€” scopes strictly to the active entity, so each company sees only its own data.

โ“

FAQ & Good to Know

Is it safe? Can it break my data?

Safe. The module is read-only against your core Dolibarr data. It only writes to its own two tables (its settings and its alert log). It never changes products, stock, or orders.

Does any data leave my server?

No. Everything runs locally on your Dolibarr instance. There are no external API calls. Email alerts use your own configured mail server.

What do I need for it to work?

Dolibarr's Products and Stock modules must be enabled. Database must be MySQL or MariaDB โ€” PostgreSQL is not supported. The BOM Explosion view additionally needs Dolibarr's MRP module.

How much history do I need?

Forecasting works best with 3+ months of order or invoice history. The Order Book needs no history at all โ€” it reads your open customer orders, so it's ideal for new products and project businesses.

Why do all my Order Book rows look urgent?

Your customer orders probably have no Delivery date set. Undated demand is treated as due now. Add delivery dates to your orders in Dolibarr and the urgency and Buy-By dates become accurate.

I see "No data available" everywhere

Check your Data Source and Analysis Period in Settings, and make sure you have orders or invoices in that window. Ensure Products and Stock modules are enabled.

Ready to put it to work?
Stop guessing. Start knowing.

You've seen everything the module does. Install it and let Stock Intelligence tell you what matters, what's at risk, and what to order.