Codeunit "Cost Account Allocation"

ID 1104
Namespace: Microsoft.CostAccounting.Allocation

Methods

CalcAllocationKeys

procedure CalcAllocationKeys(): Integer

Returns

Type Description
Integer

CalcAllocationKey

procedure CalcAllocationKey(var CostAllocationSource: Record "Cost Allocation Source")

Parameters

Name Type Description
CostAllocationSource Table Microsoft.CostAccounting.Allocation."Cost Allocation Source"

CalcLineShare

procedure CalcLineShare(var CostAllocationTarget: Record "Cost Allocation Target")

Parameters

Name Type Description
CostAllocationTarget Table Microsoft.CostAccounting.Allocation."Cost Allocation Target"

GetTotalShare

procedure GetTotalShare(var ControlTotalShare: Decimal)

Parameters

Name Type Description
ControlTotalShare Decimal

Events

OnAfterCalcAllocationKey

[IntegrationEvent(False,False)]
local procedure OnAfterCalcAllocationKey(var CostAllocationSource: Record "Cost Allocation Source")

Parameters

Name Type Description
CostAllocationSource Table Microsoft.CostAccounting.Allocation."Cost Allocation Source"

OnBeforeCalcAllocationKey

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcAllocationKey(var CostAllocationSource: Record "Cost Allocation Source")

Parameters

Name Type Description
CostAllocationSource Table Microsoft.CostAccounting.Allocation."Cost Allocation Source"

OnBeforeCalcDateFilter

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcDateFilter(var CostAllocationTarget: Record "Cost Allocation Target", var StartDate: Date, var EndDate: Date, var IsHandled: Boolean)

Parameters

Name Type Description
CostAllocationTarget Table Microsoft.CostAccounting.Allocation."Cost Allocation Target"
StartDate Date
EndDate Date
IsHandled Boolean

OnBeforeCalcLineShare

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcLineShare(var CostAllocationTarget: Record "Cost Allocation Target", var IsHandled: Boolean)

Parameters

Name Type Description
CostAllocationTarget Table Microsoft.CostAccounting.Allocation."Cost Allocation Target"
IsHandled Boolean

OnBeforeCalcEmployeeCountShare

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcEmployeeCountShare(CostAllocationTarget: Record "Cost Allocation Target", var TotalShare: Decimal, StartDate: Date, EndDate: Date, var IsHandled: Boolean)

Parameters

Name Type Description
CostAllocationTarget Table Microsoft.CostAccounting.Allocation."Cost Allocation Target"
TotalShare Decimal
StartDate Date
EndDate Date
IsHandled Boolean

OnBeforeCalcItemSoldQtyShare

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcItemSoldQtyShare(var CostAllocationTarget: Record "Cost Allocation Target", var ValueEntry: Record "Value Entry", var IsHandled: Boolean)

Parameters

Name Type Description
CostAllocationTarget Table Microsoft.CostAccounting.Allocation."Cost Allocation Target"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
IsHandled Boolean

OnAfterSumValueEntryField

[IntegrationEvent(False,False)]
local procedure OnAfterSumValueEntryField(var ValueEntry: Record "Value Entry", SumFieldNo: Integer)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
SumFieldNo Integer

See also