Codeunit 131340 Library - Cost Accounting
src/Layers/W1/Tests/ApplicationTestLibrary/LibraryCostAccounting.Codeunit.al65 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
CheckBlockedDimCombination line 57
- 61callsCostCenterDimension
- 61callsCostObjectDimension
- 62callsDeleteBlockedDimCombinations
- 65callsCostCenterDimension
- 65callsCostObjectDimension
- 66callsDeleteBlockedDimCombinations
CheckBlockedDimensionValues line 69
- 76callsCodeunit 131001 Library - Dimension FindDefaultDimension
- 81validatesTable 349 Dimension Value Blocked
- 82writesTable 349 Dimension Value Modify(true)
CheckCostJnlLineConsistency line 87
- 93callsCreateCostCenter
- 94validatesTable 1101 Cost Journal Line Cost Center Code
- 99callsCreateCostCenter
- 100validatesTable 1101 Cost Journal Line Bal. Cost Center Code
- 105validatesTable 1101 Cost Journal Line Cost Object Code
- 109validatesTable 1101 Cost Journal Line Bal. Cost Object Code
- 111writesTable 1101 Cost Journal Line Modify(true)
ClearCostJournalLines line 114
- 120writesTable 1101 Cost Journal Line DeleteAll(true)
CreateAllocSource line 163
- 167callsFindCostType
- 171validatesTable 1106 Cost Allocation Source ID
- 171callsLastAllocSourceID
- 172validatesTable 1106 Cost Allocation Source Level
- 172callsCodeunit 130440 Library - Random RandInt
- 173validatesTable 1106 Cost Allocation Source Credit to Cost Type
- 174writesTable 1106 Cost Allocation Source Insert(true)
CreateAllocSourceWithCCenter line 177
CreateAllocSourceWithCObject line 183
CreateAllocTarget line 189
- 193callsLastAllocTargetID
- 196validatesTable 1107 Cost Allocation Target ID
- 197validatesTable 1107 Cost Allocation Target Line No.
- 198validatesTable 1107 Cost Allocation Target Target Cost Type
- 199validatesTable 1107 Cost Allocation Target Base
- 200validatesTable 1107 Cost Allocation Target Allocation Target Type
- 201writesTable 1107 Cost Allocation Target Insert(true)
- 206validatesTable 1107 Cost Allocation Target Share
- 207writesTable 1107 Cost Allocation Target Modify(true)
CreateAllocTargetWithCCenter line 210
CreateAllocTargetWithCObject line 216
CreateBalanceSheetGLAccount line 222
- 229validatesTable 1108 Cost Accounting Setup Align G/L Account
- 230writesTable 1108 Cost Accounting Setup Modify(true)
- 232callsCodeunit 131300 Library - ERM CreateGLAccount
- 234validatesTable 15 G/L Account Income/Balance
- 235writesTable 15 G/L Account Modify(true)
- 238validatesTable 1108 Cost Accounting Setup Align G/L Account
- 239writesTable 1108 Cost Accounting Setup Modify(true)
CreateCostBudgetEntry line 242
- 247callsFindCostType
- 248callsFindCostCenter
- 251validatesTable 1109 Cost Budget Entry Date
- 252validatesTable 1109 Cost Budget Entry Budget Name
- 253validatesTable 1109 Cost Budget Entry Cost Type No.
- 254validatesTable 1109 Cost Budget Entry Cost Center Code
- 255validatesTable 1109 Cost Budget Entry Amount
- 255callsCodeunit 130440 Library - Random RandDec
- 256writesTable 1109 Cost Budget Entry Insert(true)
CreateCostBudgetName line 259
- 262validatesTable 1110 Cost Budget Name Name
- 263callsCodeunit 131000 Library - Utility GenerateRandomCode
- 264validatesTable 1110 Cost Budget Name Description
- 265writesTable 1110 Cost Budget Name Insert(true)
CreateCostCenter line 268
- 271validatesTable 1112 Cost Center Code
- 271callsCodeunit 131000 Library - Utility GenerateRandomCode
- 272validatesTable 1112 Cost Center Line Type
- 273writesTable 1112 Cost Center Insert(true)
CreateCostCenterFromDimension line 276
- 282callsSetAlignment
- 284callsCodeunit 131001 Library - Dimension CreateDimensionValue
CreateCostJournalBatch line 288
CreateCostJournalTemplate line 293
- 296validatesTable 1100 Cost Journal Template Name
- 297callsCodeunit 131000 Library - Utility GenerateRandomCode
- 298writesTable 1100 Cost Journal Template Insert(true)
CreateCostJnlBatchWithDelOpt line 301
- 304validatesTable 1102 Cost Journal Batch Journal Template Name
- 305validatesTable 1102 Cost Journal Batch Delete after Posting
- 306validatesTable 1102 Cost Journal Batch Name
- 306callsCodeunit 131000 Library - Utility GenerateRandomCode
- 307validatesTable 1102 Cost Journal Batch Description
- 308writesTable 1102 Cost Journal Batch Insert(true)
CreateCostJournalLine line 311
CreateCostJournalLineBasic line 325
- 330validatesTable 1101 Cost Journal Line Journal Template Name
- 331validatesTable 1101 Cost Journal Line Journal Batch Name
- 333validatesTable 1101 Cost Journal Line Line No.
- 333callsCodeunit 131000 Library - Utility GetNewLineNo
- 334writesTable 1101 Cost Journal Line Insert(true)
- 336validatesTable 1101 Cost Journal Line Posting Date
- 337validatesTable 1101 Cost Journal Line Document No.
- 338validatesTable 1101 Cost Journal Line Cost Type No.
- 339validatesTable 1101 Cost Journal Line Bal. Cost Type No.
- 340validatesTable 1101 Cost Journal Line Amount
- 340callsCodeunit 130440 Library - Random RandInt
- 341writesTable 1101 Cost Journal Line Modify(true)
CreateCostObject line 344
- 347validatesTable 1113 Cost Object Code
- 347callsCodeunit 131000 Library - Utility GenerateRandomCode
- 348validatesTable 1113 Cost Object Line Type
- 349writesTable 1113 Cost Object Insert(true)
CreateCostObjectFromDimension line 352
- 358callsSetAlignment
- 360callsCodeunit 131001 Library - Dimension CreateDimensionValue
CreateCostType line 365
CreateCostTypeNoGLRange line 370
- 373validatesTable 1103 Cost Type No.
- 373callsCodeunit 131000 Library - Utility GenerateRandomCode
- 374validatesTable 1103 Cost Type Type
- 375validatesTable 1103 Cost Type Combine Entries
- 376writesTable 1103 Cost Type Insert(true)
CreateCostTypeWithCombine line 379
- 381callsCreateCostTypeWithGLRange
- 382validatesTable 1103 Cost Type Combine Entries
- 383writesTable 1103 Cost Type Modify(true)
CreateCostTypeWithGLRange line 386
- 393callsSetAlignment
- 394callsCreateIncomeStmtGLAccount
- 400callsSetAlignment
- 402callsCodeunit 130440 Library - Random RandInt
- 404callsCreateIncomeStmtGLAccount
- 408callsCodeunit 130000 Assert AreEqual
- 409validatesTable 1103 Cost Type G/L Account Range
- 410writesTable 1103 Cost Type Modify(true)
CreateIncomeStmtGLAccount line 414
- 418callsCodeunit 131300 Library - ERM CreateGLAccount
- 419validatesTable 15 G/L Account Income/Balance
- 420writesTable 15 G/L Account Modify(true)
- 425validatesTable 1103 Cost Type G/L Account Range
- 426writesTable 1103 Cost Type Modify(true)
CreateJnlLine line 431
- 435callsSetupGeneralJnlBatch
- 438callsCodeunit 131300 Library - ERM CreateGeneralJnlLine
- 440callsCodeunit 130440 Library - Random RandDec
- 443validatesTable 81 Gen. Journal Line Gen. Posting Type
- 444validatesTable 81 Gen. Journal Line Gen. Bus. Posting Group
- 445validatesTable 81 Gen. Journal Line Gen. Prod. Posting Group
- 446writesTable 81 Gen. Journal Line Modify(true)
DeleteAllCostTypeEntries line 449
- 456writesTable 1103 Cost Type DeleteAll(true)
DeleteCostBudgetRegEntries line 459
DeleteCostBudgetRegEntriesFrom line 467
- 473callsReport 1139 Delete Cost Budget Entries InitializeRequest
DeleteCostRegisterEntries line 479
DeleteCostRegisterEntriesFrom line 487
- 493callsReport 1130 Delete Cost Entries InitializeRequest
DeleteBlockedDimCombinations line 499
- 504writesTable 350 Dimension Combination Delete(true)
FindAllocSource line 508
- 521callsCodeunit 130440 Library - Random RandInt
FindCostType line 524
- 526callsGetAllCostTypes
- 530callsCodeunit 130440 Library - Random RandInt
FindCostTypeLinkedToGLAcc line 533
- 542callsCodeunit 130440 Library - Random RandInt
FindCostTypeWithCostCenter line 546
- 548callsGetAllCostTypes
- 554callsCodeunit 130440 Library - Random RandInt
FindCostCenter line 557
- 566callsCodeunit 130440 Library - Random RandInt
FindCostJournalBatch line 569
FindCostJnlBatchWithDelOption line 574
FindCostObject line 589
- 598callsCodeunit 130440 Library - Random RandInt
FindGLAccLinkedToCostType line 601
- 603callsCodeunit 131300 Library - ERM FindGLAccount
- 608callsCodeunit 130440 Library - Random RandInt
FindIncomeStmtGLAccount line 620
- 622callsGetAllIncomeStmtGLAccounts
- 623callsCodeunit 130440 Library - Random RandInt
GetAllIncomeStmtGLAccounts line 636
- 638callsCodeunit 131300 Library - ERM FindGLAccount
InitializeCASetup line 689
- 694validatesTable 1108 Cost Accounting Setup Align G/L Account
- 695validatesTable 1108 Cost Accounting Setup Align Cost Center Dimension
- 696validatesTable 1108 Cost Accounting Setup Align Cost Object Dimension
- 697validatesTable 1108 Cost Accounting Setup Auto Transfer from G/L
- 699validatesTable 1108 Cost Accounting Setup Last Allocation ID
- 701validatesTable 1108 Cost Accounting Setup Last Allocation Doc. No.
- 702writesTable 1108 Cost Accounting Setup Modify(true)
- 704callsInitializeCASourceCodes
InitializeCASourceCodes line 707
- 716callsCodeunit 131300 Library - ERM CreateSourceCode
- 717validatesTable 242 Source Code Setup G/L Entry to CA
- 721callsCodeunit 131300 Library - ERM CreateSourceCode
- 722validatesTable 242 Source Code Setup Cost Journal
- 726callsCodeunit 131300 Library - ERM CreateSourceCode
- 727validatesTable 242 Source Code Setup Cost Allocation
- 732writesTable 242 Source Code Setup Modify(true)
PostCostJournalLine line 754
PostGenJournalLine line 759
- 763callsCreateJnlLine
- 764callsCodeunit 131300 Library - ERM PostGeneralJnlLine
SetAutotransferFromGL line 784
- 789validatesTable 1108 Cost Accounting Setup Auto Transfer from G/L
- 790writesTable 1108 Cost Accounting Setup Modify(true)
SetDefaultDimension line 793
- 799callsCostCenterDimension
- 800callsCodeunit 131001 Library - Dimension FindDimensionValue
- 800callsCostCenterDimension
- 801callsCodeunit 131001 Library - Dimension CreateDefaultDimensionGLAcc
- 807validatesTable 1112 Cost Center Code
- 808validatesTable 1112 Cost Center Line Type
- 809writesTable 1112 Cost Center Insert(true)
- 812callsCheckBlockedDimensionValues
- 813callsCheckBlockedDimCombination
SetupGeneralJnlBatch line 816
- 820callsCodeunit 131300 Library - ERM SelectGenJnlBatch
- 821callsCreateBalanceSheetGLAccount
- 822validatesTable 232 Gen. Journal Batch Bal. Account No.
- 823writesTable 232 Gen. Journal Batch Modify(true)
- 825callsCodeunit 131300 Library - ERM ClearGenJournalLines
SetupGLAccount line 828
TransferGLEntries line 840
UpdateAllocSourceWithCCenter line 845
- 849callsFindCostCenter
- 850validatesTable 1106 Cost Allocation Source Cost Center Code
- 851writesTable 1106 Cost Allocation Source Modify(true)
UpdateAllocSourceWithCObject line 854
- 858callsFindCostObject
- 859validatesTable 1106 Cost Allocation Source Cost Object Code
- 860writesTable 1106 Cost Allocation Source Modify(true)
UpdateAllocTargetWithCCenter line 863
- 867callsFindCostCenter
- 868validatesTable 1107 Cost Allocation Target Target Cost Center
- 869writesTable 1107 Cost Allocation Target Modify(true)
UpdateAllocTargetWithCObject line 872
- 876callsFindCostObject
- 877validatesTable 1107 Cost Allocation Target Target Cost Object
- 878writesTable 1107 Cost Allocation Target Modify(true)
UpdateCostTypeWithCostCenter line 882
- 886callsFindCostCenter
- 887validatesTable 1103 Cost Type Cost Center Code
- 888writesTable 1103 Cost Type Modify(true)
UpdateCostTypeWithCostObject line 892
- 896callsFindCostObject
- 897validatesTable 1103 Cost Type Cost Object Code
- 898writesTable 1103 Cost Type Modify(true)
ValidateEntriesTransfered line 901
- 917callsCodeunit 130000 Assert AreEqual
- 919callsCodeunit 130000 Assert AreEqual
- 920callsCodeunit 130000 Assert AreEqual
- 924callsCodeunit 130000 Assert AreEqual
- 925callsCodeunit 130000 Assert AreEqual
- 927callsCodeunit 130000 Assert AreEqual
- 929callsCodeunit 130000 Assert AreEqual
- 931callsCodeunit 130000 Assert AreEqual
- 933callsCodeunit 130000 Assert AreEqual