Codeunit 2675 "Allocation Account Mgt."
Base Application · Microsoft.Finance.AllocationAccount
Across versions
- BC23present
- BC241 procedures changed
- BC251 procedures changed
- BC26unchanged
- BC271 procedures added
- BC28-30unchanged
Neighbourhood 22 connected objects and pages
Base Application · Microsoft.Finance.AllocationAccount · BC23-30 · source at ea08af5e · facts from BC29
Events published
OnGenerateFixedAllocationLinesOnAfterInsertAllocationLine(var AllocationLine: Record "Allocation Line"; var AllocAccountDistibution: Record "Alloc. Account Distribution")(integration): Integration event raised after inserting allocation line for fixed allocation methods.OnGenerateVariableAllocationLinesOnAfterInsertAllocationLine(var AllocationLine: Record "Allocation Line"; var AllocAccountDistibution: Record "Alloc. Account Distribution")(integration): Integration event raised after inserting allocation line for variable allocation methods.OnBeforeGenerateVariableAllocationLines(var AllocationAccount: Record "Allocation Account"; var AllocationLine: Record "Allocation Line"; var ExistingDimensionSetId: Integer)(integration): Integration event raised before generating variable allocation lines for preprocessing.OnAfterGenerateVariableAllocationLines(var AllocationAccount: Record "Allocation Account"; var AllocationLine: Record "Allocation Line"; var ExistingDimensionSetId: Integer)(integration): Integration event raised after generating variable allocation lines for postprocessing.
Procedures
UseAllocationAccountNoField(): BooleanGenerateAllocationLines(var AllocationAccount: Record "Allocation Account"; var AllocationLine: Record "Allocation Line"; AmountToDistribute: Decimal; PostingDate: Date; ExistingDimensionSetId: Integer; CurrencyCode: Code[10])Δ BC24: Generates allocation lines based on the allocation account configuration and distribution rules.GenerateVariableAllocationLines(var AllocationAccount: Record "Allocation Account"; var AllocationLine: Record "Allocation Line"; AmountToDistribute: Decimal; PostingDate: Date; ExistingDimensionSetId: Integer; CurrencyCode: Code[10])(internal)GenerateFixedAllocationLines(var AllocationAccount: Record "Allocation Account"; var AllocationLine: Record "Allocation Line"; AmountToDistribute: Decimal; ExistingDimensionSetId: Integer; CurrencyCode: Code[10])(internal)VerifyNoInheritFromParentUsed(AccountNo: Code[20])Δ BC25: Validates that allocation account does not use parent inheritance for standalone usage scenarios.GetDefaultAmountForPreview(): Decimal(internal)GetCurrencyRoundingPrecision(CurrencyCode: Code[10]): Decimal(internal)GetCurrencyUnitAmountPrecision(CurrencyCode: Code[10]): Decimal+ BC27 (internal)SplitQuantitiesIfNeeded(OriginalQuantity: Decimal; var AllocationLine: Record "Allocation Line"; var AllocationAccount: Record "Allocation Account")(internal)
Plus 1 local procedures.
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 408 “DimensionManagement” (2 calls:
CombineDimensionSetIds → GetCombinedDimensionSetID,CombineDimensionSetIds → UpdateGlobalDimFromDimSetID) - Codeunit 2670 “Variable Allocation Mgt.” (1 call:
GenerateVariableAllocationLines → CalculateAmountDistributions)
Called by
- Codeunit 2679 “Purchase Alloc. Acc. Mgt.” (4 calls:
GetAmount → GetCurrencyRoundingPrecision,GetUnitPrice → GetCurrencyRoundingPrecision,MoveAmounts → GetCurrencyRoundingPrecision, …) - Codeunit 2678 “Sales Alloc. Acc. Mgt.” (3 calls:
GetAmount → GetCurrencyRoundingPrecision,GetUnitPrice → GetCurrencyUnitAmountPrecision,VerifySalesLine → VerifyNoInheritFromParentUsed) - Page 2674 “Allocation Account Preview” (3 calls:
OnOpenPage → GetDefaultAmountForPreview,UpdateData → GenerateFixedAllocationLines,UpdateData → GenerateVariableAllocationLines) - Codeunit 1620 “PEPPOL Validation” (1 call:
CheckAllocationAccountExpandedLines → GenerateAllocationLines) - Codeunit 2670 “Variable Allocation Mgt.” (1 call:
CalculateAmountDistributions → GetCurrencyRoundingPrecision) - Codeunit 2677 “Gen. Journal Alloc. Acc. Mgt.” (1 call:
VerifyGeneralJournalLine → VerifyNoInheritFromParentUsed) - Page 253 “Sales Journal” (1 call:
OnOpenPage → UseAllocationAccountNoField) - Page 254 “Purchase Journal” (1 call:
OnOpenPage → UseAllocationAccountNoField) - Page 255 “Cash Receipt Journal” (1 call:
OnOpenPage → UseAllocationAccountNoField) - Page 256 “Payment Journal” (1 call:
OnOpenPage → UseAllocationAccountNoField) - Page 39 “General Journal” (1 call:
OnOpenPage → UseAllocationAccountNoField) - Page 46 “Sales Order Subform” (1 call:
OnOpenPage → UseAllocationAccountNoField) - Page 47 “Sales Invoice Subform” (1 call:
OnOpenPage → UseAllocationAccountNoField) - Page 516 “Sales Lines” (1 call:
OnOpenPage → UseAllocationAccountNoField) - Page 518 “Purchase Lines” (1 call:
OnOpenPage → UseAllocationAccountNoField) - Page 54 “Purchase Order Subform” (1 call:
OnOpenPage → UseAllocationAccountNoField) - Page 55 “Purch. Invoice Subform” (1 call:
OnOpenPage → UseAllocationAccountNoField) - Page 95 “Sales Quote Subform” (1 call:
OnOpenPage → UseAllocationAccountNoField) - Page 96 “Sales Cr. Memo Subform” (1 call:
OnOpenPage → UseAllocationAccountNoField) - Page 97 “Purchase Quote Subform” (1 call:
OnOpenPage → UseAllocationAccountNoField) - Page 98 “Purch. Cr. Memo Subform” (1 call:
OnOpenPage → UseAllocationAccountNoField)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Allocation Account Mgt."), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.