Codeunit 2675 Allocation Account Mgt.

Base Application, Microsoft.Finance.AllocationAccount

Source AL, 269 lines

src/Layers/W1/BaseApp/Finance/AllocationAccount/AllocationAccountMgt.Codeunit.allines 15 to 30 of 269, Copyright (c) Microsoft Corporation. MIT

codeunit 2675 "Allocation Account Mgt."{    /// <summary>    /// Determines if allocation account fields should be used based on parent inheritance configuration.    /// </summary>    /// <returns>True if allocation accounts are configured to inherit from parent documents</returns>    procedure UseAllocationAccountNoField(): Boolean    var        AllocAccountDistribution: Record "Alloc. Account Distribution";    begin        AllocAccountDistribution.ReadIsolation := IsolationLevel::ReadCommitted;        AllocAccountDistribution.SetRange("Destination Account Type", AllocAccountDistribution."Destination Account Type"::"Inherit from Parent");        exit(not (AllocAccountDistribution.IsEmpty()));    end;    /// <summary>

All 269 lines

Events 4 in 29

[IntegrationEvent] OnGenerateFixedAllocationLinesOnAfterInsertAllocationLine(var AllocationLine: Record "Allocation Line"; var AllocAccountDistibution: Record "Alloc. Account Distribution")new in 23
[IntegrationEvent] OnGenerateVariableAllocationLinesOnAfterInsertAllocationLine(var AllocationLine: Record "Allocation Line"; var AllocAccountDistibution: Record "Alloc. Account Distribution")new in 23
[IntegrationEvent] OnBeforeGenerateVariableAllocationLines(var AllocationAccount: Record "Allocation Account"; var AllocationLine: Record "Allocation Line"; var ExistingDimensionSetId: Integer)new in 23
[IntegrationEvent] OnAfterGenerateVariableAllocationLines(var AllocationAccount: Record "Allocation Account"; var AllocationLine: Record "Allocation Line"; var ExistingDimensionSetId: Integer)new in 23

Public procedures 3 in 29

UseAllocationAccountNoField(): Booleannew in 23
GenerateAllocationLines(var AllocationAccount: Record "Allocation Account"; var AllocationLine: Record "Allocation Line"; AmountToDistribute: Decimal; PostingDate: Date; ExistingDimensionSetId: Integer; CurrencyCode: Code[10])new in 23changed in 24
VerifyNoInheritFromParentUsed(AccountNo: Code[20])new in 23changed in 25

All 9 procedures in 23-29

Changes 1 in 27

List17181920212223242526272829
Procedures111
internal GetCurrencyUnitAmountPrecision(CurrencyCode: Code[10]): Decimalnew in 27
added

All 3 changes in 23-29