JournalReversal
Updated
A reversing entry in an open period for the ledger lines of a posted document: the same accounts and analytics with the amounts negative (red storno) or with debit and credit swapped. It corrects the general ledger only; the stock, receivables, payables and money registers are not touched. How to use it is Reverse an entry.
| Kind | Document |
| Module | Accounting |
| Menu | General ledger → Operations → Ledger reversals |
Fields#
| Field | Caption | Points at |
|---|---|---|
ID |
Number | number sequence |
LegalEntity |
Legal entity | LegalEntity: of the original; filled by Fill from the original, each line keeps its own |
OriginalNumber |
Number of the document to reverse | string, 50: the number printed on the document that posted to the ledger |
Original |
Original document | the document's id; hidden. The original's card lists this reversal among its related documents |
OriginalLabel |
Original | string, 250: kind, number and date of the original |
OriginalDate |
Date of the original | date: the reversal cannot be dated before it |
Method |
Method | enum ReversalMethod: negative amounts (red storno), swap debit and credit; required |
Reason |
Reason | string, 500: required to post |
AllowRepeat |
Reverse again | boolean: allows a reversal of lines an earlier posted reversal already reversed |
Description |
Description | string, 256 |
The table part is JournalReversalLines. DocumentDate is the date of the reversal and picks the fiscal period. ID comes from JournalReversalSeq: REV-{YYYY}- and six digits.
Commands and states#
| State | Command | What happens |
|---|---|---|
| Draft | Fill from the original | The ledger lines of the original are read into the table part with the method applied; the lines typed before are replaced. A warning is shown when an earlier posted reversal already reversed some of them. |
| Draft | Post | Posted. |
| Posted | Void | Voided: the engine takes the lines out of the ledger. |
Fill from the original (FillJournalReversal) and Post (PostJournalReversal) are bound to Draft, Void (VoidJournalReversal) to Posted, which is read-only. All of them are the service LedgerReversals. On a posted JournalEntry the command Reverse in ledger (ReverseJournalEntry) makes a draft reversal of it, filled, and opens it.
Post refuses, with a message, a document without a date or with a date in a closed month or outside every fiscal period, without a reason or lines, dated before the original, with a line that has no account, an account that is not in the chart or is not postable, a line that has both a debit and a credit, lines that do not balance for a legal entity, and, unless Reverse again is ticked, lines that a posted reversal already reversed (matched by the original ledger line). The same checks stand in the posting event, so a post that does not come through the command is refused alike.
Void is refused in a closed month, like any unposting.
Registers#
On Posted, JournalReversalGLTx writes GL: one movement per line, dated the reversal date, with the line's account, legal entity, cost centre, project, customer, supplier, cash-flow item, currency, correspondent account and the analytics kept in OtherAnalytics; the books by the line's Circuits (FIN always, MGT and TAX when the original had them), and the currency amounts. The amounts are the lines' own: negative for a red storno.