Share via


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

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.

See Also

Reference

ReasonFormTable Class