Codeunit 131340 Library - Cost Accounting

Application Test Library

Source AL, 983 lines

src/Layers/W1/Tests/ApplicationTestLibrary/LibraryCostAccounting.Codeunit.allines 4 to 19 of 983, Copyright (c) Microsoft Corporation. MIT

codeunit 131340 "Library - Cost Accounting"{    trigger OnRun()    begin    end;    var        Assert: Codeunit Assert;        LibraryUtility: Codeunit "Library - Utility";        LibraryERM: Codeunit "Library - ERM";        LibraryDimension: Codeunit "Library - Dimension";        LibraryRandom: Codeunit "Library - Random";        AllocSourceID: Label 'AS%1';        AllocValuesNotMatchingErr: Label 'Amount = %1, CostEntryAmount = %2, Percent = %3, TotalAmount = %4, AllocatedCost = %5, Percent * TotalAmount = %6.';        GetCostTypesFromGLErr: Label 'Mapping G/L Accounts to Chart of Cost Types Causes Inconsistency.';

All 983 lines

Public procedures 79 in 29

AllocateCostsFromTo(var CostAllocation: TestRequestPage "Cost Allocation"; FromLevel: Integer; ToLevel: Integer; AllocDate: Date; AllocGroup: Code[10]; CostBudgetName: Code[10])new in 28
CheckAllocTargetSharePercent(CostAllocationSource: Record "Cost Allocation Source")new in 28
CheckBlockedDimCombination()new in 28
CheckBlockedDimensionValues(AccountNo: Code[20])new in 28
CheckCostJnlLineConsistency(var CostJournalLine: Record "Cost Journal Line")new in 28
ClearCostJournalLines(CostJournalBatch: Record "Cost Journal Batch")new in 28

All 79 procedures