BudgetControlGeneralJournalEntry.initializeForLedgerVoucher Method [AX 2012]
Initializes the current instance with the details from the ledger voucher.
Syntax
protected void initializeForLedgerVoucher(
DataAreaId _journalDataArea,
LedgerJournalId _journalNumber,
LedgerJournalType _journalType,
Voucher _voucherNumber,
TransDate _voucherTransDate,
UserId _userId,
boolean _showResultMessages)
Run On
Called
Parameters
- _journalDataArea
Type: DataAreaId Extended Data Type
The DataAreaId value for the legal entity where the posting journal is created.
- _journalNumber
Type: LedgerJournalId Extended Data Type
The journal number for the posting journal.
- _journalType
Type: LedgerJournalType Enumeration
The LedgerJournalType value for the posting journal.
- _voucherNumber
Type: Voucher Extended Data Type
The voucher number that is shared by a set of journal lines in the posting journal.
- _voucherTransDate
Type: TransDate Extended Data Type
The transaction date on the voucher.
- _userId
Type: UserId Extended Data Type
The UserId value for which budget check is performed for the ledger account and amount details on the journal lines; optional.
- _showResultMessages
Type: boolean
A Boolean value that indicates whether any error or warning messages for budget check results should be displayed in the Infolog; optional.