AccountingCheck
Updated
The accounting check of one legal entity for a range of dates: what an accountant should fix before closing a period. Run the check reads the books and fills Findings; nothing is posted. See Required analytics and the accounting check.
| Kind | Document |
| Module | Accounting |
| Menu | General ledger → Operations → Accounting check |
Fields#
| Field | Caption | Points at |
|---|---|---|
ID |
Number | number sequence |
LegalEntity |
Legal entity | LegalEntity: the record defaults' legal entity unless set |
FromDate |
From date | date: the previous month's first day unless set |
ToDate |
To date | date: the previous month's last day unless set; balances are read at its end |
Errors |
Errors | integer: filled by the last run |
Warnings |
Warnings | integer: filled by the last run |
CheckedAt |
Checked at | date and time (UTC): when the check last ran; a new check shows the moment it was made |
IsChecked |
Checked | boolean: on once the check has run |
Notes |
Notes | string, 500 |
Findings |
Findings | AccountingCheckFindings rows |
LegalEntity, FromDate and ToDate are required, and To date may not be before From date. ID comes from AccountingCheckSeq: AC-{YYYY}- and six digits. The document posts nothing on save.
Commands and states#
| State | Command | What happens |
|---|---|---|
| In progress | Run the check | Reads the ledger, registers, documents, settings and calendar for the legal entity and the dates, and replaces Findings with what it finds, errors first. Sets Errors, Warnings and Checked at. Posts nothing. |
| In progress | Mark as reviewed | Needs Checked to be on, that is, the check to have run. The document goes to Reviewed, read-only. |
RunAccountingCheck and ReviewAccountingCheck are bound to In progress (Open), the first state, and call the AccountingCheckRunner service. Reviewed (Reviewed) is read-only. The same service runs from the MonthClose Checks step for its legal entity and period and adds a warning, never a failure.
The check reads: ledger lines and balances (GL), the cash and bank registers and the stock register, documents still in their first state, FiscalPeriod (the moment a period was closed is read from its change history when the tenant keeps one, else from when its record was last saved), FixedAsset cards, CashDesk and BankAccount, and AccountingSettings with the flags of ChartOfAccounts. A part that cannot run is a warning of its own, and the others still run.
Registers#
None written. The document only reads.