Skip to content

Catalog-backed chart of accounts

General ledger accounts read directly from the generic chart of accounts catalog.

simple volume small AccountingCatalog
Languages
eng
Formats
csv

Recipe

recipe.gbddl
gbddl 1
language eng

table chart_of_accounts catalog(glAccount, parent: "generic") (
  number text primarykey catalogField(column: "number")
  name   text catalogField(column: "name")
  class  text catalogField(column: "class")
)

output csv

This is the exact recipe.gbddl committed to the repository. Copy it, or download the raw source.

About this recipe

Chart of accounts

A single-table recipe that reads a chart of accounts straight from the catalog: each general ledger account's number, name and class.

What it demonstrates

  • Catalog table — the catalog(glAccount, parent: "generic") table selects the generic chart's accounts as its rows.
  • Catalog fields — each column is a catalogField reading one column of the selected record: number, name (localized) and class.
  • Key — number is the primary key.

Run it

Submit the recipe body to POST /api/v1/jobs?input_format=gbddl, or paste it into Chef, to generate the data. The repository's local runner (run by task test) also generates it and verifies its output.

The recipe outputs one CSV table file, chart_of_accounts.csv, holding the generic chart's accounts.

Adapt it

  • Change parent: "generic" to skr03, skr04 or pcg for another chart.
  • Add catalogField(column: "chart") to expose the chart code.

Guarantees

Every row has a unique number; each row matches a real account of the selected chart. Names are the catalog's own, not generated text.

Tested features

Smart types, physical types, rules and formats this recipe exercises and verifies.

catalogFieldtable:catalogprimary-key