LedgerJournalCheckPost.validateTransDateForReversal Method [AX 2012]
Checks that the transaction date on the journal line is not before the document date.
Syntax
Note
The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.
Microsoft Dynamics AX 2012 R3
protected boolean validateTransDateForReversal(
LedgerJournalTrans _ledgerJournalTrans,
LedgerJournalType _ledgerJournalType,
[LedgerPostingMessageLog _ledgerPostingMessageCollection])
Microsoft Dynamics AX 2012 R2 (SYS)
protected boolean validateTransDateForReversal(LedgerJournalTrans _ledgerJournalTrans, LedgerJournalType _ledgerJournalType)
Microsoft Dynamics AX 2012 Feature Pack (SYS)
protected boolean validateTransDateForReversal(LedgerJournalTrans _ledgerJournalTrans, LedgerJournalType _ledgerJournalType)
Microsoft Dynamics AX 2012 (FPK)
protected boolean validateTransDateForReversal(LedgerJournalTrans _ledgerJournalTrans, LedgerJournalType _ledgerJournalType)
Microsoft Dynamics AX 2012 (SYS)
protected boolean validateTransDateForReversal(LedgerJournalTrans _ledgerJournalTrans, LedgerJournalType _ledgerJournalType)
Run On
Server
Parameters
- _ledgerJournalTrans
Type: LedgerJournalTrans Table
The journal line to validate.
- _ledgerJournalType
Type: LedgerJournalType Enumeration
The type of journal being posted.
- _ledgerPostingMessageCollection
Type: LedgerPostingMessageLog Class
Return Value
Type: boolean
true if the transaction date is later than or equal to the document date; otherwise, false.
Remarks
For check and deposit slip reversals, an error is thrown if the transaction date on the journal line is before the original transaction date.