ReasonFormTable::checkReasonCodeForAccountType Method [AX 2012]
Checks whether a reason code is enabled for a specific account type.
Syntax
client server public static boolean checkReasonCodeForAccountType(ReasonRefRecID _reasonRefRecID, LedgerJournalACType _ledgerJournalACType)
Run On
Called
Parameters
- _reasonRefRecID
Type: ReasonRefRecID Extended Data Type
The reference ID of the reason code.
- _ledgerJournalACType
Type: LedgerJournalACType Enumeration
The ledger journal account type to check under.
Return Value
Type: boolean
A Boolean value indicating whether the reason code exists for the given account or not.
Remarks
This method is used for validating reason codes before they are posted on the journals. It is called from offset and main account type modified methods, it checks whether the presently selected values of these fields are valid for the reason code selected.