BudgetControlGeneralJournalEntry::newLedgerVoucher Method [AX 2012]
Creates an instance of the BudgetControlGeneralJournalEntry class.
Syntax
client server public static BudgetControlGeneralJournalEntry newLedgerVoucher(
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 enumeration 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 the 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.
Return Value
Type: BudgetControlGeneralJournalEntry Class
An instance of the BudgetControlGeneralJournalEntry class.