BigBooks Docs
Onboarding a Company

Chart of Accounts Setup

As an admin, you will set how your Chart of Accounts behaves (code style, depth, bilingual naming, posting rules) and bulk-import or export the account tree before any transactions are posted.

What you'll accomplish

As an Admin, you will set how your Chart of Accounts behaves (code style, depth, bilingual naming, posting rules) and bulk-import or export the account tree before any transactions are posted.

Before you start

These are two separate admin surfaces — neither is the master-detail record view used elsewhere in BigBooks.

  • /[lang]/settings/chart-of-accounts is a plain settings form (rendered by ChartOfAccountsSettings). It needs the MODIFY_COMPANY_SETTINGS permission; without it you see a "Only administrators can change Chart of Accounts settings" alert and read-only controls.
  • /[lang]/admin/coa-management is an admin dashboard of quick-action cards (Import, Export, Templates) plus a statistics panel and import history. It is gated to role === "admin" and redirects non-admins to the dashboard.

Account codes use the government (Bank of Laos / MoF 2020) chart; balances are stored in LAK as integer satang.

Compliance Note

Government-required accounts can be locked as view-only (the Lock official accounts policy) so the compliant chart cannot be edited or deactivated by mistake.

Steps

Set the Chart of Accounts policy Open /[lang]/settings/chart-of-accounts. Choose the sub-ledger code style (dotted 1022.1 or numeric 102201), the maximum sub-ledger depth (3–6 levels), whether manual code overrides are allowed, whether bilingual (Lao + English) names are required, whether official accounts are locked, and whether postings are restricted to leaf accounts only. Save to persist the settings.

Chart of Accounts settings form: code style, depth, bilingual-name and posting-to-leaf policies.
Chart of Accounts settings form: code style, depth, bilingual-name and posting-to-leaf policies.

Open COA management (admin) Go to /[lang]/admin/coa-management. The page shows Import / Export / Templates quick-action cards, a statistics summary (accounts by type and level, government vs custom), and recent import history.

Admin COA management dashboard with Import / Export / Templates cards and the statistics panel.
Admin COA management dashboard with Import / Export / Templates cards and the statistics panel.

Import a Chart of Accounts Click Import to open the multi-step import wizard. Upload a CSV/XLSX/XLS file (Bank of Laos format, up to 10 MB), choose a mode — Merge (add new + update existing, the safe default), Update only, or Full replace (deactivate all then import) — then review the validated preview before executing.

COA import wizard: upload → validate → preview → process, with the merge / update-only / full-replace mode selector.
COA import wizard: upload → validate → preview → process, with the merge / update-only / full-replace mode selector.

Export or template (optional) Use Export to download the current chart as Excel, or Templates to download an empty import template to fill in offline.

COA export wizard and the blank import template download.
COA export wizard and the blank import template download.

What happens behind the scenes

Saving the settings form writes the tenant's COA policy via chartOfAccounts/settings.ts (updateCoaSettings); it changes how codes are generated and which accounts are postable, but posts no journal entry. An import is a tracked job: chartOfAccounts/import.ts creates the job (createImportJob), validates the parsed rows and previews the impact (validateImportJob), then applies it (executeImport) — creating, updating, or deactivating accounts according to the chosen mode. Statistics, history, and Excel export are served by chartOfAccounts/export.ts. None of this is a GL posting; it shapes the account tree that later transactions post into.

Common problems

  • No access: Without MODIFY_COMPANY_SETTINGS the settings controls are read-only; non-admins are redirected away from COA management.
  • Wrong import mode: Full replace deactivates the existing chart — use Merge unless you mean to replace.
  • File rejected: Imports accept CSV/XLSX/XLS up to 10 MB in the Bank of Laos column format; other layouts fail validation.
  • Locked accounts: When official accounts are locked, government-required codes cannot be edited or deactivated by design.
  • Bilingual names required: With that policy on, a new or renamed account needs both Lao and English names.

On this page