LedgerJournalCheckPost.addBudgetCheckVoucher Method [AX 2012]
Adds a LedgerVoucherObject class instance for a journal line voucher to journal line voucher and LedgerVoucherObject class instances mappings that will be used to check the budget.
Syntax
protected void addBudgetCheckVoucher(
Voucher _journalLineVoucherNumber,
LedgerVoucherObject _ledgerVoucherObject,
boolean _isIntercompanyVoucher)
Run On
Server
Parameters
- _journalLineVoucherNumber
Type: Voucher Extended Data Type
The Voucher value for the journal line.
- _ledgerVoucherObject
Type: LedgerVoucherObject Class
The LedgerVoucherObject object.
- _isIntercompanyVoucher
Type: boolean
Indicates whether the LedgerVoucherObject is an intercompany voucher.
Exceptions
Exception | Condition |
---|---|
Error | The BudgetSource record is a duplicate for the journal line voucher. -or- The BudgetSource record to save was not found. |