JournalEntry
Updated
A journal entry records a balanced debit and credit and posts those amounts to the general ledger. Customer debt and supplier debt stay on the documents that recorded them.
| Kind | Document |
| Module | Accounting |
| Menu | Accounting → Documents → Journal entries |
Fields#
| Field | Caption | Points at |
|---|---|---|
ID |
Number | number sequence |
LegalEntity |
Legal entity | LegalEntity |
Currency |
Currency | Currency |
FiscalPeriod |
Fiscal period | FiscalPeriod |
Description |
Description | string, 256 |
Circuits |
Circuits | string, 32, hidden |
ExchangeRate |
Exchange rate | decimal, precision 18, scale 8 |
LegalEntity, Currency, and FiscalPeriod are required. Description and ExchangeRate are optional. Circuits is hidden. ID comes from JournalEntrySeq, which starts at 1000 and steps by 1.
On create, an empty LegalEntity and an empty Currency are filled from the record defaults for this document when a default is set.
ExchangeRate is stamped on every save. It is 1 when Currency matches the legal entity's currency, and when the legal entity is empty. It is 0 when the document currency has no rate to the legal entity's currency on the document date. Posting refuses 0.
Empty Circuits means FIN,MGT.
Table parts#
Lines#
JournalEntryLines, caption Lines.
| Field | Caption | Points at |
|---|---|---|
Account |
Account | ChartOfAccounts |
Debit |
Debit | decimal |
Credit |
Credit | decimal |
Description |
Description | string, 256 |
Account is required. Debit, Credit, and Description are optional. An empty amount is 0. A line with both Debit and Credit above 0 is refused.
Commands and states#
| State | Command | What happens |
|---|---|---|
| Draft | Post journal entry | Posted. One GL movement per line. |
Post journal entry (PostJournalEntry) is bound to Draft only. Posted is read-only. The document is marked to post on save, and a saved Draft still writes no GL movement. The command reloads the saved lines, then saves Posted. The stored captions match the names: Draft, Posted.
The command confirms the journal is posted. Refusal text is still Russian.
Registers#
On Posted, GLPostingTx writes GL: analytic Account, analytic LegalEntity, analytic FiscalPeriod, and resources Debit, Credit, ManagementDebit, ManagementCredit, TaxDebit, and TaxCredit. Each resource is set, zeros included. The line amount is multiplied by ExchangeRate. The header FiscalPeriod is the analytic stored. The open-period check uses the document date.
Empty Circuits fills financial and management resources and leaves both tax resources at 0. A stored FIN,TAX fills financial and tax resources and leaves management at 0.
JournalEntryZr and JournalEntryXr print the number, the document date, the legal entity, the fiscal period, the currency, the description, and each line's account, description, debit, and credit, plus the debit total and the credit total. They do not print ExchangeRate or Circuits.