AccountingSettings
Updated
The singleton posting profile: one record per tenant. Pick ChartOfAccounts leaves. On save, each filled reference stamps a hidden matching *AccountCode string. Posting reads those codes. This card does not post. How to fill it is Set ledger accounts.
| Kind | Dictionary |
| Module | Accounting |
| Menu | Accounting → Settings → Accounting settings |
| Singleton | yes (isCached) |
The UI opens this record card instead of a list. ID comes from AccountingSettingsSeq, which starts at 1 and steps by 1.
Fields#
| Field | Caption | Points at |
|---|---|---|
ID |
ID | number sequence |
AutoPostJournal |
Auto-post journal entries | boolean |
DefaultCurrency |
Default currency | Currency |
ArAccount |
Receivables account | ChartOfAccounts |
RevenueAccount |
Revenue account | ChartOfAccounts |
InventoryAccount |
Inventory account | ChartOfAccounts |
PayableAccount |
Payables account | ChartOfAccounts |
PayrollExpenseAccount |
Payroll expense account | ChartOfAccounts |
PayrollLiabilityAccount |
Payroll liability account | ChartOfAccounts |
CogsAccount |
Cost of goods sold account | ChartOfAccounts |
SocialInsurancePayableAccount |
Social insurance payable account | ChartOfAccounts |
SocialInsuranceExpenseAccount |
Social insurance expense account | ChartOfAccounts |
CashAccount |
Cash account | ChartOfAccounts |
InventoryWriteOffAccount |
Inventory write-off account | ChartOfAccounts |
VatPayableAccount |
VAT payable account | ChartOfAccounts |
VatReceivableAccount |
VAT receivable account | ChartOfAccounts |
InventorySurplusAccount |
Inventory surplus account | ChartOfAccounts |
WipAccount |
WIP account | ChartOfAccounts |
LaborAbsorbedAccount |
Labor absorbed account | ChartOfAccounts |
FxGainAccount |
Exchange gain account | ChartOfAccounts |
FxLossAccount |
Exchange loss account | ChartOfAccounts |
RevalueFxOnPeriodClose |
Revalue on period close | boolean |
PurchasePriceVarianceAccount |
Purchase price variance account | ChartOfAccounts |
OtherIncomeAccount |
Other income account | ChartOfAccounts |
None of the account references is required. Empty means that ledger leg is not configured. Posting then skips that GL line; stock, debt, and tax still move.
Each visible *Account stamps a hidden *AccountCode (string, 32) on save. An empty reference leaves the string (legacy and tests). DefaultCurrency stamps hidden DefaultCurrencyCode the same way; an empty reference does not clear the code. On load, an empty DefaultCurrency with a filled code is resolved back to the currency row.
Save refuses a filled code that exists on the chart but is not Postable (a group). A missing code, or an empty field, is lawful.
Revalue on period close on: closing a FiscalPeriod first posts receivable and payable revaluations dated its last day for every legal entity with foreign-currency debt; if one cannot be posted, the period stays open. Off (default): you create the revaluation documents. That behaviour is added by Sales and Purchasing; they add no fields here.
Exchange gain account and Exchange loss account empty: the gain or loss ledger line is not posted; the registers still move.
There are no commands. This dictionary writes no register. Documents that post to the ledger read it through the general-ledger service.
There is no retained-earnings account on this card. Fiscal year close does not roll income and expense. Changing an account does not rewrite older documents.
Who references this#
No object stores a reference to this row. CashDesk and BankAccount use Cash account when their own ledger account is empty. CashIncome uses Other income account when the document names no income account. Posted documents that write GL read the matching account code for each leg.