Compartir a través de


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

  • _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.

See Also

Reference

LedgerJournalControlHeader Table