LedgerJournalControlHeader::validate Method
Validates the specified combination for journal control restrictions.
Syntax
server public static boolean validate(
CompanyId _ledgerLegalEntity,
LedgerJournalACType _accountType,
RecId _ledgerDimension,
LedgerJournalNameId _ledgerJournalNameId,
[boolean _displayValidationMessage])
Run On
Server
Parameters
- _ledgerLegalEntity
Type: CompanyId Extended Data Type
- _accountType
Type: LedgerJournalACType Enumeration
- _ledgerDimension
Type: RecId Extended Data Type
- _ledgerJournalNameId
Type: LedgerJournalNameId Extended Data Type
- _displayValidationMessage
Type: boolean
Return Value
Type: boolean
true if the combination passes journal control validation; otherwise, false.
Remarks
The ledger dimension is only validated when the account type is ledger. When an empty ledger dimension is used, the detailed validation is bypassed and true returned.
The validateByTree method should be called first to detect structure changes.