Demand forecasting
Statistical forecasts from your real sales history — constant, trend, seasonal, intermittent and moving average — with the best-fitting method picked per item automatically.
Supply-chain planning · born integrated with ChertERP · Saudi Arabia
ChertChain forecasts demand, sets safety stock and builds a constrained supply plan from the items, stock, orders and sales history already in ChertERP. It proposes; your team approves in the system it already uses. Nothing reaches a purchase order that a person did not approve.
Capabilities
One engine plans demand, stock, purchasing and production against the same constraints, so a forecast change shows up in a purchase proposal the same night.
Statistical forecasts from your real sales history — constant, trend, seasonal, intermittent and moving average — with the best-fitting method picked per item automatically.
Refine any number at any level — item, category, warehouse, customer — in a spreadsheet-like editor. Changes roll up and down by themselves.
Safety stock and reorder points per item and location, sized against demand variability and supplier lead time — so working capital sits where it earns.
Net requirements turned into purchase proposals per supplier, respecting lead times, minimum quantities and lot sizes.
Constrained plans that respect capacity, material availability and routings — not an infinite-capacity wish list.
Stock moved between warehouses before it runs out where it is needed and piles up where it is not.
Late orders, shortages and overloaded resources surfaced as a list to work through, each one traceable to its cause.
A complete Arabic interface with right-to-left layout and proper supply-chain vocabulary, from the same codebase as the English one.
Planning cycle
Planning is a cycle, not a report. It runs every night on fresh data, and nothing leaves it without a person's approval.
Stage 01 / 09
Read what ChertERP already knows
Items, bills of materials, stock per warehouse, open orders and sales history are read straight from ChertERP over a read-only database role. No exports, no files, no double entry.
Run by
Stage 02 / 09
Let the history speak first
Every item gets a statistical forecast; the engine tries each method and keeps the one with the lowest error on that item's own history.
Run by
Stage 03 / 09
Add what the history cannot know
A promotion, a lost customer, a new branch. Planners override at whatever level they think in, and the change is distributed to the items underneath.
Run by
Stage 04 / 09
Decide how much uncertainty to carry
Safety stock and reorder points are sized from forecast error and supplier lead time, per item and per location.
Run by
Stage 05 / 09
Against real constraints
The solver plans purchasing, production and transfers together, respecting capacity, material and lead time. What cannot be on time is planned late and said so.
Run by
Stage 06 / 09
Every number has a reason
Why is this order late? Which demand is this purchase for? Pegging traces every supply to the demand it serves, and what-if scenarios test a change before you make it.
Run by
Stage 07 / 09
A person decides
Planners review the proposals in the cockpit. Only what they accept moves on; the rest stays a proposal.
Run by
Stage 08 / 09
Drafts, never postings
Accepted proposals are sent through ChertERP's own REST API as draft requisitions, each with an idempotency key so a retry can never create a duplicate.
Run by
Stage 09 / 09
Both sides, every night
What was exported is compared with what ChertERP created. A mismatch is logged for a person to look at — never quietly corrected.
Run by
Interactive architecture
Select any component to see what it does, or play a journey and watch the work move through the system.
Where the truth about execution lives, and stays.
One way in, read-only, on a private network.
A compiled solver that plans everything against everything.
Where planners think, in their language.
Proposals go back the front way, as drafts.
What lets you trust the plan tomorrow.
ChertChain never inserts into or updates a ChertERP table. It reads over a read-only role and writes only through ChertERP's REST API, only drafts, and only what a planner accepted. ChertERP owns execution truth; ChertChain owns planning truth.
Guarantees
Not policies written in a document. Constraints in the permissions and the code.
The import role can select and nothing else. Not a setting someone can forget — a permission it was never granted.
Everything sent to ChertERP is a proposed or draft document. People approve; ChertChain never posts.
Writes go through ChertERP's REST API with its validation and its business rules, never around them into its tables.
Every exported document carries an idempotency key, so a retry after a timeout never makes a duplicate requisition.
Exported and created documents are compared nightly. Mismatches are logged for a person and never fixed automatically.
The ERP database is reached over a private network only. Its port is never open to the internet.
Pegging links each proposal to the demand behind it, so the plan can always say why.
Not a translation layer over an English product. Right-to-left is a first-class direction in every screen.
Components
Five parts on one server, next to ChertERP on the same private network.
C++ · the solver and the forecasts
Web · English and Arabic
Python · read-only import
REST · drafts with idempotency keys
Linux · TLS · nightly backups
Inside the workbench
Captured from ChertChain against demonstration data — in both languages, because both ship from the same codebase.



Who owns what
ChertERP runs the business; ChertChain plans it. Neither changes the other's data on its own.
| ChertERP | ChertChain | |
|---|---|---|
| Its truth | Execution — what happened | Planning — what should happen |
| Items, stock, orders, history | Owns and maintains | Reads, read-only |
| Forecasts and safety stock | Not involved | Owns |
| Purchase and production orders | Receives drafts; people approve | Proposes; never posts |
| When the two disagree | Logged nightly, fixed by a person | Logged nightly, fixed by a person |
ChertChain can also be opened inside ChertERP's own screens, so planners do not have to leave the system they already work in.
Connect ChertChain to ChertERP, run a forecast, and review every proposal before anything reaches a purchase order.