Codeunit 131330 Library - Fixed Asset
src/Layers/W1/Tests/ApplicationTestLibrary/LibraryFixedAsset.Codeunit.al36 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
CreateCommentLine line 21
- 26validatesTable 97 Comment Line Table Name
- 27validatesTable 97 Comment Line No.
- 29validatesTable 97 Comment Line Line No.
- 29callsCodeunit 131000 Library - Utility GetNewLineNo
- 30writesTable 97 Comment Line Insert(true)
CreateDepreciationBook line 33
- 36validatesTable 5611 Depreciation Book Code
- 39callsCodeunit 131000 Library - Utility GenerateRandomCode
- 40callsCodeunit 131000 Library - Utility GetFieldLength
- 41validatesTable 5611 Depreciation Book Description
- 42writesTable 5611 Depreciation Book Insert(true)
CreateFADepreciationBook line 45
- 48validatesTable 5612 FA Depreciation Book FA No.
- 49validatesTable 5612 FA Depreciation Book Depreciation Book Code
- 50writesTable 5612 FA Depreciation Book Insert(true)
CreateFAAllocation line 53
- 58validatesTable 5615 FA Allocation Code
- 59validatesTable 5615 FA Allocation Allocation Type
- 61validatesTable 5615 FA Allocation Line No.
- 61callsCodeunit 131000 Library - Utility GetNewLineNo
- 62writesTable 5615 FA Allocation Insert(true)
CreateFAJournalLine line 65
- 71validatesTable 5621 FA Journal Line Journal Template Name
- 72validatesTable 5621 FA Journal Line Journal Batch Name
- 74validatesTable 5621 FA Journal Line Line No.
- 74callsCodeunit 131000 Library - Utility GetNewLineNo
- 75writesTable 5621 FA Journal Line Insert(true)
CreateFAJournalSetup line 78
- 81validatesTable 5605 FA Journal Setup Depreciation Book Code
- 82validatesTable 5605 FA Journal Setup User ID
- 83writesTable 5605 FA Journal Setup Insert(true)
CreateFAPostingGroup line 86
- 89validatesTable 5606 FA Posting Group Code
- 92callsCodeunit 131000 Library - Utility GenerateRandomCode
- 93callsCodeunit 131000 Library - Utility GetFieldLength
- 94validatesTable 5606 FA Posting Group Acquisition Cost Account
- 94callsCodeunit 131300 Library - ERM CreateGLAccountWithPurchSetup
- 95validatesTable 5606 FA Posting Group Accum. Depreciation Account
- 95callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 96validatesTable 5606 FA Posting Group Write-Down Account
- 96callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 97validatesTable 5606 FA Posting Group Appreciation Account
- 97callsCodeunit 131300 Library - ERM CreateGLAccountWithPurchSetup
- 98validatesTable 5606 FA Posting Group Custom 1 Account
- 98callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 99validatesTable 5606 FA Posting Group Custom 2 Account
- 99callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 100validatesTable 5606 FA Posting Group Acq. Cost Acc. on Disposal
- 100callsCodeunit 131300 Library - ERM CreateGLAccountWithPurchSetup
- 101validatesTable 5606 FA Posting Group Accum. Depr. Acc. on Disposal
- 101callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 102validatesTable 5606 FA Posting Group Write-Down Acc. on Disposal
- 102callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 103validatesTable 5606 FA Posting Group Appreciation Acc. on Disposal
- 103callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 104validatesTable 5606 FA Posting Group Custom 1 Account on Disposal
- 104callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 105validatesTable 5606 FA Posting Group Custom 2 Account on Disposal
- 105callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 106validatesTable 5606 FA Posting Group Gains Acc. on Disposal
- 106callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 107validatesTable 5606 FA Posting Group Losses Acc. on Disposal
- 107callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 108validatesTable 5606 FA Posting Group Book Val. Acc. on Disp. (Gain)
- 108callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 109validatesTable 5606 FA Posting Group Sales Acc. on Disp. (Gain)
- 109callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 110validatesTable 5606 FA Posting Group Write-Down Bal. Acc. on Disp.
- 110callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 111validatesTable 5606 FA Posting Group Apprec. Bal. Acc. on Disp.
- 111callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 112validatesTable 5606 FA Posting Group Custom 1 Bal. Acc. on Disposal
- 112callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 113validatesTable 5606 FA Posting Group Custom 2 Bal. Acc. on Disposal
- 113callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 114validatesTable 5606 FA Posting Group Maintenance Expense Account
- 114callsCodeunit 131300 Library - ERM CreateGLAccountWithPurchSetup
- 115validatesTable 5606 FA Posting Group Maintenance Bal. Acc.
- 115callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 116validatesTable 5606 FA Posting Group Acquisition Cost Bal. Acc.
- 116callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 117validatesTable 5606 FA Posting Group Depreciation Expense Acc.
- 117callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 118validatesTable 5606 FA Posting Group Write-Down Expense Acc.
- 118callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 119validatesTable 5606 FA Posting Group Appreciation Bal. Account
- 119callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 120validatesTable 5606 FA Posting Group Custom 1 Expense Acc.
- 120callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 121validatesTable 5606 FA Posting Group Custom 2 Expense Acc.
- 121callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 122validatesTable 5606 FA Posting Group Sales Bal. Acc.
- 122callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 123validatesTable 5606 FA Posting Group Sales Acc. on Disp. (Loss)
- 123callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 124validatesTable 5606 FA Posting Group Book Val. Acc. on Disp. (Loss)
- 124callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 126writesTable 5606 FA Posting Group Insert(true)
CreateFAReclassJournal line 129
- 135validatesTable 5624 FA Reclass. Journal Line Journal Template Name
- 136validatesTable 5624 FA Reclass. Journal Line Journal Batch Name
- 138validatesTable 5624 FA Reclass. Journal Line Line No.
- 138callsCodeunit 131000 Library - Utility GetNewLineNo
- 139writesTable 5624 FA Reclass. Journal Line Insert(true)
CreateFAReclassJournalTemplate line 143
- 146callsCodeunit 131000 Library - Utility GenerateGUID
- 147writesTable 5622 FA Reclass. Journal Template Insert
CreateFAReclassJournalBatch line 150
- 153validatesTable 5623 FA Reclass. Journal Batch Journal Template Name
- 154validatesTable 5623 FA Reclass. Journal Batch Name
- 157callsCodeunit 131000 Library - Utility GenerateRandomCode
- 159callsCodeunit 131000 Library - Utility GetFieldLength
- 162validatesTable 5623 FA Reclass. Journal Batch Description
- 163writesTable 5623 FA Reclass. Journal Batch Insert(true)
CreateFAJournalBatch line 166
- 172validatesTable 5620 FA Journal Batch Journal Template Name
- 173validatesTable 5620 FA Journal Batch Name
- 176callsCodeunit 131000 Library - Utility GenerateRandomCode
- 178callsCodeunit 131000 Library - Utility GetFieldLength
- 179validatesTable 5620 FA Journal Batch Description
- 180writesTable 5620 FA Journal Batch Insert(true)
CreateFixedAsset line 183
- 185callsCodeunit 131000 Library - Utility UpdateSetupNoSeriesCode
- 188writesTable 5600 Fixed Asset Insert(true)
- 189validatesTable 5600 Fixed Asset Description
- 190writesTable 5600 Fixed Asset Modify(true)
CreateFAWithPostingGroup line 193
- 197callsCreateFAPostingGroup
- 198callsCreateFixedAsset
- 199validatesTable 5600 Fixed Asset FA Posting Group
- 200writesTable 5600 Fixed Asset Modify(true)
CreateFixedAssetWithSetup line 203
- 209callsCreateFixedAsset
- 210callsCreateFAPostingGroup
- 211callsCodeunit 131300 Library - ERM FindVATPostingSetupInvt
- 212callsUpdateFAPostingGroupGLAccounts
- 213writesTable 5612 FA Depreciation Book ModifyAll
- 214writesTable 5612 FA Depreciation Book ModifyAll
- 214callsCodeunit 130440 Library - Random RandIntInRange
CreateFixedAssetNo line 217
CreateGLBudgetName line 225
- 228validatesTable 95 G/L Budget Name Name
- 231callsCodeunit 131000 Library - Utility GenerateRandomCode
- 233callsCodeunit 131000 Library - Utility GetFieldLength
- 236validatesTable 95 G/L Budget Name Description
- 237writesTable 95 G/L Budget Name Insert(true)
CreateInsurance line 240
- 242callsCodeunit 131000 Library - Utility UpdateSetupNoSeriesCode
- 245writesTable 5628 Insurance Insert(true)
- 246validatesTable 5628 Insurance Description
- 247writesTable 5628 Insurance Modify(true)
CreateInsuranceJournalTemplate line 251
- 254callsCodeunit 131000 Library - Utility GenerateGUID
- 255writesTable 5633 Insurance Journal Template Insert
CreateInsuranceJournalBatch line 258
- 261validatesTable 5634 Insurance Journal Batch Journal Template Name
- 262validatesTable 5634 Insurance Journal Batch Name
- 265callsCodeunit 131000 Library - Utility GenerateRandomCode
- 267callsCodeunit 131000 Library - Utility GetFieldLength
- 270validatesTable 5634 Insurance Journal Batch Description
- 271writesTable 5634 Insurance Journal Batch Insert(true)
CreateInsuranceJournalLine line 274
- 280validatesTable 5635 Insurance Journal Line Journal Template Name
- 281validatesTable 5635 Insurance Journal Line Journal Batch Name
- 283validatesTable 5635 Insurance Journal Line Line No.
- 283callsCodeunit 131000 Library - Utility GetNewLineNo
- 284writesTable 5635 Insurance Journal Line Insert(true)
CreateMaintenance line 287
- 290validatesTable 5626 Maintenance Code
- 293callsCodeunit 131000 Library - Utility GenerateRandomCode
- 295callsCodeunit 131000 Library - Utility GetFieldLength
- 298validatesTable 5626 Maintenance Description
- 299writesTable 5626 Maintenance Insert(true)
CreateInsuranceType line 302
- 305validatesTable 5630 Insurance Type Code
- 308callsCodeunit 131000 Library - Utility GenerateRandomCode
- 310callsCodeunit 131000 Library - Utility GetFieldLength
- 313validatesTable 5630 Insurance Type Description
- 314writesTable 5630 Insurance Type Insert(true)
CreateJournalTemplate line 317
- 320validatesTable 5619 FA Journal Template Name
- 323callsCodeunit 131000 Library - Utility GenerateRandomCode
- 325callsCodeunit 131000 Library - Utility GetFieldLength
- 328validatesTable 5619 FA Journal Template Description
- 329writesTable 5619 FA Journal Template Insert(true)
CreateDepreciationTableHeader line 332
- 335validatesTable 5642 Depreciation Table Header Code
- 338callsCodeunit 131000 Library - Utility GenerateRandomCode
- 340callsCodeunit 131000 Library - Utility GetFieldLength
- 343validatesTable 5642 Depreciation Table Header Description
- 344writesTable 5642 Depreciation Table Header Insert(true)
CreateDepreciationTableLine line 347
- 353validatesTable 5643 Depreciation Table Line Depreciation Table Code
- 354validatesTable 5643 Depreciation Table Line Period No.
- 355writesTable 5643 Depreciation Table Line Insert(true)
CreateMainAssetComponent line 358
- 361validatesTable 5640 Main Asset Component Main Asset No.
- 362validatesTable 5640 Main Asset Component FA No.
- 363writesTable 5640 Main Asset Component Insert(true)
CreateFAClass line 366
- 369validatesTable 5607 FA Class Code
- 372callsCodeunit 131000 Library - Utility GenerateRandomCode
- 374callsCodeunit 131000 Library - Utility GetFieldLength
- 376validatesTable 5607 FA Class Name
- 377writesTable 5607 FA Class Insert(true)
CreateFASubclass line 380
- 383validatesTable 5608 FA Subclass Code
- 386callsCodeunit 131000 Library - Utility GenerateRandomCode
- 388callsCodeunit 131000 Library - Utility GetFieldLength
- 390validatesTable 5608 FA Subclass Name
- 391writesTable 5608 FA Subclass Insert(true)
CreateFASubclassDetailed line 394
- 397validatesTable 5608 FA Subclass Code
- 400callsCodeunit 131000 Library - Utility GenerateRandomCode
- 402callsCodeunit 131000 Library - Utility GetFieldLength
- 404validatesTable 5608 FA Subclass Name
- 405validatesTable 5608 FA Subclass FA Class Code
- 406validatesTable 5608 FA Subclass Default FA Posting Group
- 407writesTable 5608 FA Subclass Insert(true)
PostFAJournalLine line 452
PostInsuranceJournal line 459
PostFAJournalLineBatch line 466
UpdateFAPostingGroupGLAccounts line 471
- 473validatesTable 5606 FA Posting Group Acquisition Cost Account
- 473callsCodeunit 131300 Library - ERM CreateGLAccountWithVATPostingSetup
- 474validatesTable 5606 FA Posting Group Acq. Cost Acc. on Disposal
- 475validatesTable 5606 FA Posting Group Accum. Depreciation Account
- 475callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 476validatesTable 5606 FA Posting Group Accum. Depr. Acc. on Disposal
- 477validatesTable 5606 FA Posting Group Depreciation Expense Acc.
- 477callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 478validatesTable 5606 FA Posting Group Gains Acc. on Disposal
- 478callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 479validatesTable 5606 FA Posting Group Losses Acc. on Disposal
- 479callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 480validatesTable 5606 FA Posting Group Sales Bal. Acc.
- 480callsCodeunit 131300 Library - ERM CreateGLAccountWithVATPostingSetup
- 481writesTable 5606 FA Posting Group Modify(true)
UpdateFASetupDefaultDeprBook line 484
- 489validatesTable 5603 FA Setup Default Depr. Book
- 490writesTable 5603 FA Setup Modify(true)
VerifyLastFARegisterGLRegisterOneToOneRelation line 493
- 501callsCodeunit 130000 Assert AreEqual
- 507callsCodeunit 130000 Assert IsTrue
VerifyMaintenanceLastFARegisterGLRegisterOneToOneRelation line 513
- 521callsCodeunit 130000 Assert AreEqual
- 527callsCodeunit 130000 Assert IsTrue