Skip to content

Report Builder

The Report Builder is an admin-only tool for configuring the structure of Moroccan statutory financial reports: Bilan (Balance Sheet), CPC (Income Statement), ESG (Management Balance Statements) and the Cash Flow Statement.

This tool is visible to administrators only. Access it from the accounting menu or the Reports tab → Builder.

The home page lists all available report templates with their code, label and type. Click a template to open its editor.

Click New template in the top-right to create a new template.

Each report is organized into:

  • Sections — Major blocks of the report (e.g., “FIXED ASSETS”)
  • Lines — Grouped by line number within a section
  • Zones — Columns of a line (e.g., Gross / Amort. / Net for the Balance Sheet)
  • Sources — Calculation method + account pattern or formula for each zone

The editor is split into two panels:

  • Left panel: report structure tree (sections and lines with sources summary)
  • Right panel: context-sensitive configuration form

Click a section header (colored bar) to open its edit form in the right panel. You can edit:

  • Code and Label of the section
  • Sign (+1 or -1) — determines whether amounts are shown positive or negative
  • Columns — comma-separated list of column labels (e.g., N, N-1)

Click a line row to open the zone editor in the right panel. You can:

  • Edit the code, label, and official code of each zone
  • Reorder zones using the ▲▼ buttons
  • Add or delete zones
  • Configure sources for each zone

Use the ▲▼ buttons on the right of each line row to change its position within a section.

Each zone can have one or more sources. A source defines how the zone’s value is calculated.

MethodDescription
balanceDebit total minus credit total (can be negative)
balance_debitDebit balance only, zero if credit exceeds debit
balance_creditCredit balance only, zero if debit exceeds credit
debit_movesSum of all debit entries
credit_movesSum of all credit entries
formulaArithmetic expression using zone codes

For non-formula sources, enter an account pattern:

  • 21% — All accounts starting with 21 (wildcard %)
  • 2111 — Exact account number
  • Multiple patterns: click Add source to add another pattern as a separate source

For formula sources, use zone codes as variables:

  • A_BT + A_AM — Sum of two zones from the same report
  • A_BT - A_AM — Difference between two zones
  • ESG_MA:CAF — Reference a zone from another template (format TEMPLATE_CODE:ZONE_CODE)
  • T1 + T2 + T3 — Sum of multiple zones

Click the ? button in the line panel header to display the full legend of calculation methods, patterns and formulas.

If a line has fewer zones than the number of columns defined in its section, a red indicator (e.g., 2/3) is shown to signal an incomplete configuration.

  • Page not accessible: this editor is restricted to administrators. Log in with an administrator account.
  • Missing zone: the red indicator means a line’s zone count does not match the expected column count — add the missing zones.
  • Invalid formula: verify that the referenced zone codes exist in the report, or use the TEMPLATE_CODE:ZONE_CODE format for cross-report references.

Need help? Contact our technical support.