ProjBudgetRevisionManager::insertOrUpdateProjAllocationLines Method [AX 2012]

Inserts or updates the records of the ProjBudgetRevLineAllocation table.

client server public static void insertOrUpdateProjAllocationLines(
    AmountCur _allocationAmount, 
    ProjAllocationMethod _projAllocationMethod, 
    Common _common, 
    RecId _projBudgetRevLineId)

Run On

Called

Parameters

_allocationAmount
Type: AmountCur Extended Data Type
A AmountCur data type value that indicates the amount of the allocation.
_projAllocationMethod
Type: ProjAllocationMethod Enumeration
A ProjAllocationMethod data type value that indicates the allocation method.
_common
Type: Common Table
A Common table buffer that specifies the allocation period or year record ID.
_projBudgetRevLineId
Type: RecId Extended Data Type
The record ID of the project budget line.

For each revision line and for each period the method looks first if a budget allocation line exists.

If not, it creates a budget allocation line with amount 0 and the appropriate periods set.

This is the support for the budget revision allocation line to be created.

After making sure that a budget allocation line exists the method searches for a budget revision allocation line.

If this record is found it is updated with the new allocation amounts.

If not, it is created with new allocation amounts and with reference to the revision line and to the budget allocation line.

Show: