Share via


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

  • _voucherNumber
    Type: Voucher Extended Data Type
    The voucher number that is shared by a set of journal lines in the posting journal.
  • _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.

See Also

Reference

BudgetControlGeneralJournalEntry Class