BudgetControlSourceDocumentLinePolicy::newPolicy Method [AX 2012]
Creates an instance of the policy.
Syntax
client server public static BudgetControlSourceDocumentLinePolicy newPolicy(
SourceDocumentLineItem _sourceDocumentLineItem,
boolean _isDraftReservation,
SourceDocumentProcessorCaller _caller,
boolean _isOnDemandBudgetCheck,
UserId _user)
Run On
Called
Parameters
- _sourceDocumentLineItem
Type: SourceDocumentLineItem Class
The source document line item.
- _isDraftReservation
Type: boolean
A Boolean value that indicates whether the budget reservation is a draft reservation.
- _caller
Type: SourceDocumentProcessorCaller Class
The object instance that initiated the source document line submission.
- _isOnDemandBudgetCheck
Type: boolean
A Boolean value that indicates whether the budget check is initiated by a specific user action.
- _user
Type: UserId Extended Data Type
The user who is submitting the source document line to check the budget.
Return Value
Type: BudgetControlSourceDocumentLinePolicy Class
An instance of the policy.