General Ledger (GLD)
The gld submodule of acc owns the chart of accounts: ledger accounts, their classification, and per-(account, company, financial-year) balance rows. It is the lookup point used by every other accounting submodule when posting amounts; the cross-module API also resolves the FinanceCompany and FinanceItemGroup rows that pin company- and item-group-specific defaults to the chart of accounts. It depends on acc.bas for the finance-company and finance-item-group rows it surfaces, on acc.bnk for the bank account a ledger account may match, on acc.cst for cost allocation, on acc.vat for the VAT code an account may default to, and on acc.jrn for journal references on accounts.
Concepts
Ledger AccountA general-ledger account in the chart of accounts. Each account has a base type (general/asset/equity/net-income/exceptional-income), a root type (
B/SorP&L), a debit/credit nature, and optional ties to bank account, VAT code, and project cost-allocation rule.Ledger Account ClassificationA reference type that groups accounts under a higher-level classification.
Ledger Account BalanceA per-(account, company, financial year) running balance. Carries the cumulative debit and credit amount in the internal currency, derived from the journal entries posted in that year (business-information fields).
Cost vs. RevenueA simple binary classifier (
COST/REVENUE) used internally when posting against an account.
Entities
Ledger Account (LedgerAccount)
A general-ledger account.
| Field | Description |
|---|---|
| Business key (a |
| Human-readable name. |
| Detailed account type — see Ledger Account Types below. |
| Whether the account is on the balance sheet ( |
| Natural debit/credit side of the account. |
| Whether posting is blocked. Default |
| Optional higher-level classification. |
| Whether the account allows invoice/payment matching. Default |
| Optional default VAT code. |
| Optional bank account this ledger account mirrors. |
| Whether project-unit allocation is optional, mandatory, or not allowed for postings. Default |
Ledger Account Base Types (LedgerAccountBaseType)
| Code | Name |
|---|---|
| General |
| Asset |
| Equity and Liability |
| Net Income |
| Exceptional Income |
Ledger Account Root Types (LedgerAccountRootType)
| Code | Name |
|---|---|
| Balance sheet |
| P&L |
Ledger Account Types (LedgerAccountType)
| Code | Name |
|---|---|
| General (P&L or B/S) |
| Fixed assets |
| Other assets |
| Accumulated depreciation |
| Inventory |
| Accounts receivable |
| Prepaid expenses |
| VAT |
| Bank |
| Cash |
| Payment services |
| Capital stock |
| Accrued expenses |
| Retained earnings |
| Long term debt |
| Accounts payable |
| Income taxes payable |
| Current portion of debt |
| Employees payable |
| Intercompany |
| Revenue |
| Cost of goods |
| Other costs |
| Sales / administrative expenses |
| Depreciation costs |
| Research and development |
| Employee costs |
| Employment costs |
| Exceptional income |
| Interest income |
| Income taxes |
| Exceptional costs |
Ledger Account Classification (LedgerAccountClassification)
A higher-level grouping of accounts.
| Field | Description |
|---|---|
| Business key (up to 4 characters). |
| Human-readable name. |
Ledger Account Balance (LedgerAccountBalance)
A per-(account, company, year) running balance.
| Field | Description |
|---|---|
| The account (composite business key with |
| Owning finance company. |
| Owning financial year. |
| Cumulative debit amount in the internal currency (derived). |
| Cumulative credit amount in the internal currency (derived). |
Functionality
Finance-company / item-group resolution
ACC_GLD_QueryApi exposes the optional and mandatory lookup of a FinanceCompany for a given Company, and of a FinanceItemGroup for a given ItemGroup. The mandatory variants raise a business exception when the row is missing — used by every posting flow that needs the finance-company defaults or the per-item-group ledger accounts before it can post.
Joint-venture pre-settle check
JointVentureAccountingUtil is a static helper used by posting flows to decide whether a transaction’s partner is a "presettle" partner inside a joint venture (which routes the posting through the JV pre-settle accounts instead of the regular accounts).
Public API
ACC_GLD_QueryApi
Read-side facade.
| Method | Description |
|---|---|
| Finance-company row for a company; mandatory variant raises if absent. |
| Finance-item-group row for an item group; mandatory variant raises if absent. |
ACC_GLD_CommandApi
This submodule does not provide a command API class. Ledger accounts and classifications are maintained through the standard CRUD pages, and balance rows are updated by journal-entry posting.
ViewModel actions
The submodule defines view models for LedgerAccount, LedgerAccountClassification, and LedgerAccountBalance but does not declare any custom UI actions.