ReasonTable::validateReasonCode Method
Checks whether a particular reason code exists,if exists check whether it is marked for account type used in the transaction.
Syntax
client server public static boolean validateReasonCode(
ReasonCode _reasonCode,
LedgerJournalACType _accountType,
boolean _useAccountType,
LedgerJournalACType _offsetAccountType,
[boolean _useOffsetAccountType])
Run On
Called
Parameters
- _reasonCode
Type: ReasonCode Extended Data Type
The reason code to validate.
- _accountType
Type: LedgerJournalACType Enumeration
The account type of the transaction.
- _useAccountType
Type: boolean
A Boolean variable that indicates whether to include the account type;
- _offsetAccountType
Type: LedgerJournalACType Enumeration
The offset account type of transaction;
- _useOffsetAccountType
Type: boolean
A Boolean value that indicates whether to include the offset account type; optional.
Return Value
Type: boolean
true, if the reason code exists and is marked for account type