When adding a document extending the source document framework, the document can also be enabled for ledger budget checking. This provides the ability for the financial activity of the document to be checked to ensure funds are available to pay for those activities. Budget control is already integrated with the source document framework. This integration ensures the budget funds available check occurs at the expected times in the document's life cycle and that all of the data prerequisites for budget checking are completed.
After you have a document extending the source document framework follow these steps to enable that document to be checked for budget:
public edit NoYes editVendorInvoiceEnabled(boolean _set, NoYes _isEnabled)
BudgetControlSourceIntegrator sourceIntegrator = BudgetControlSourceIntegrator::VendorInvoice;
// Set whether vendor invoice budget control is enabled.
isSet = this.setSourceIntegratorEnabled(sourceIntegrator, _isEnabled);
public edit NoYes editVendorInvoiceDoCheckOnEntry(boolean _set, NoYes _doBudgetCheckOnEntry)
// Set whether vendor invoice do budget check on entry.
These additional extension areas can be considered depending on the requirements of the new source document: