Codeunit 1104 Cost Account Allocation

Base Application, Microsoft.CostAccounting.Allocation

Source AL, 498 lines

src/Layers/W1/BaseApp/CostAccounting/Allocation/CostAccountAllocation.Codeunit.allines 17 to 32 of 498, Copyright (c) Microsoft Corporation. MIT

codeunit 1104 "Cost Account Allocation"{    trigger OnRun()    begin        ConfirmCalcAllocationKeys();    end;    var        AccPeriod: Record "Accounting Period";        DimensionManagement: Codeunit DimensionManagement;        Window: Dialog;        StartDate: Date;        EndDate: Date;        TotalShare: Decimal;#pragma warning disable AA0074

All 498 lines

Events 7 in 29

[IntegrationEvent] OnAfterCalcAllocationKey(var CostAllocationSource: Record "Cost Allocation Source")new in 19
[IntegrationEvent] OnBeforeCalcAllocationKey(var CostAllocationSource: Record "Cost Allocation Source")new in 19
[IntegrationEvent] OnBeforeCalcDateFilter(var CostAllocationTarget: Record "Cost Allocation Target"; var StartDate: Date; var EndDate: Date; var IsHandled: Boolean)new in 21
[IntegrationEvent] OnBeforeCalcLineShare(var CostAllocationTarget: Record "Cost Allocation Target"; var IsHandled: Boolean)new in 21
[IntegrationEvent] OnBeforeCalcEmployeeCountShare(CostAllocationTarget: Record "Cost Allocation Target"; var TotalShare: Decimal; StartDate: Date; EndDate: Date; var IsHandled: Boolean)new in 21
[IntegrationEvent] OnBeforeCalcItemSoldQtyShare(var CostAllocationTarget: Record "Cost Allocation Target"; var ValueEntry: Record "Value Entry"; var IsHandled: Boolean)new in 26
[IntegrationEvent] OnAfterSumValueEntryField(var ValueEntry: Record "Value Entry"; SumFieldNo: Integer)new in 26

All 9 events in 17-29

Public procedures 4 in 29

CalcAllocationKeys(): Integer17-29
CalcAllocationKey(var CostAllocationSource: Record "Cost Allocation Source")17-29
CalcLineShare(var CostAllocationTarget: Record "Cost Allocation Target")17-29
GetTotalShare(var ControlTotalShare: Decimal)17-29

Changes 2 in 26

List17181920212223242526272829
Events252
[IntegrationEvent] OnBeforeCalcItemSoldQtyShare(var CostAllocationTarget: Record "Cost Allocation Target"; var ValueEntry: Record "Value Entry"; var IsHandled: Boolean)new in 26
added
[IntegrationEvent] OnAfterSumValueEntryField(var ValueEntry: Record "Value Entry"; SumFieldNo: Integer)new in 26
added

All 9 changes in 17-29