Share via


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

  • _useAccountType
    Type: boolean
    A Boolean variable that indicates whether to include the account type;
  • _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

See Also

Reference

ReasonTable Table