Codeunit 131330 Library - Fixed Asset

Application Test Library

src/Layers/W1/Tests/ApplicationTestLibrary/LibraryFixedAsset.Codeunit.al36 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

CreateCommentLine line 21

  1. 26validatesTable 97 Comment Line Table Name
  2. 27validatesTable 97 Comment Line No.
  3. 29validatesTable 97 Comment Line Line No.
  4. 29callsCodeunit 131000 Library - Utility GetNewLineNo
  5. 30writesTable 97 Comment Line Insert(true)

CreateDepreciationBook line 33

  1. 36validatesTable 5611 Depreciation Book Code
  2. 39callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 40callsCodeunit 131000 Library - Utility GetFieldLength
  4. 41validatesTable 5611 Depreciation Book Description
  5. 42writesTable 5611 Depreciation Book Insert(true)

CreateFADepreciationBook line 45

  1. 48validatesTable 5612 FA Depreciation Book FA No.
  2. 49validatesTable 5612 FA Depreciation Book Depreciation Book Code
  3. 50writesTable 5612 FA Depreciation Book Insert(true)

CreateFAAllocation line 53

  1. 58validatesTable 5615 FA Allocation Code
  2. 59validatesTable 5615 FA Allocation Allocation Type
  3. 61validatesTable 5615 FA Allocation Line No.
  4. 61callsCodeunit 131000 Library - Utility GetNewLineNo
  5. 62writesTable 5615 FA Allocation Insert(true)

CreateFAJournalLine line 65

  1. 71validatesTable 5621 FA Journal Line Journal Template Name
  2. 72validatesTable 5621 FA Journal Line Journal Batch Name
  3. 74validatesTable 5621 FA Journal Line Line No.
  4. 74callsCodeunit 131000 Library - Utility GetNewLineNo
  5. 75writesTable 5621 FA Journal Line Insert(true)

CreateFAJournalSetup line 78

  1. 81validatesTable 5605 FA Journal Setup Depreciation Book Code
  2. 82validatesTable 5605 FA Journal Setup User ID
  3. 83writesTable 5605 FA Journal Setup Insert(true)

CreateFAPostingGroup line 86

  1. 89validatesTable 5606 FA Posting Group Code
  2. 92callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 93callsCodeunit 131000 Library - Utility GetFieldLength
  4. 94validatesTable 5606 FA Posting Group Acquisition Cost Account
  5. 94callsCodeunit 131300 Library - ERM CreateGLAccountWithPurchSetup
  6. 95validatesTable 5606 FA Posting Group Accum. Depreciation Account
  7. 95callsCodeunit 131300 Library - ERM CreateGLAccountNo
  8. 96validatesTable 5606 FA Posting Group Write-Down Account
  9. 96callsCodeunit 131300 Library - ERM CreateGLAccountNo
  10. 97validatesTable 5606 FA Posting Group Appreciation Account
  11. 97callsCodeunit 131300 Library - ERM CreateGLAccountWithPurchSetup
  12. 98validatesTable 5606 FA Posting Group Custom 1 Account
  13. 98callsCodeunit 131300 Library - ERM CreateGLAccountNo
  14. 99validatesTable 5606 FA Posting Group Custom 2 Account
  15. 99callsCodeunit 131300 Library - ERM CreateGLAccountNo
  16. 100validatesTable 5606 FA Posting Group Acq. Cost Acc. on Disposal
  17. 100callsCodeunit 131300 Library - ERM CreateGLAccountWithPurchSetup
  18. 101validatesTable 5606 FA Posting Group Accum. Depr. Acc. on Disposal
  19. 101callsCodeunit 131300 Library - ERM CreateGLAccountNo
  20. 102validatesTable 5606 FA Posting Group Write-Down Acc. on Disposal
  21. 102callsCodeunit 131300 Library - ERM CreateGLAccountNo
  22. 103validatesTable 5606 FA Posting Group Appreciation Acc. on Disposal
  23. 103callsCodeunit 131300 Library - ERM CreateGLAccountNo
  24. 104validatesTable 5606 FA Posting Group Custom 1 Account on Disposal
  25. 104callsCodeunit 131300 Library - ERM CreateGLAccountNo
  26. 105validatesTable 5606 FA Posting Group Custom 2 Account on Disposal
  27. 105callsCodeunit 131300 Library - ERM CreateGLAccountNo
  28. 106validatesTable 5606 FA Posting Group Gains Acc. on Disposal
  29. 106callsCodeunit 131300 Library - ERM CreateGLAccountNo
  30. 107validatesTable 5606 FA Posting Group Losses Acc. on Disposal
  31. 107callsCodeunit 131300 Library - ERM CreateGLAccountNo
  32. 108validatesTable 5606 FA Posting Group Book Val. Acc. on Disp. (Gain)
  33. 108callsCodeunit 131300 Library - ERM CreateGLAccountNo
  34. 109validatesTable 5606 FA Posting Group Sales Acc. on Disp. (Gain)
  35. 109callsCodeunit 131300 Library - ERM CreateGLAccountNo
  36. 110validatesTable 5606 FA Posting Group Write-Down Bal. Acc. on Disp.
  37. 110callsCodeunit 131300 Library - ERM CreateGLAccountNo
  38. 111validatesTable 5606 FA Posting Group Apprec. Bal. Acc. on Disp.
  39. 111callsCodeunit 131300 Library - ERM CreateGLAccountNo
  40. 112validatesTable 5606 FA Posting Group Custom 1 Bal. Acc. on Disposal
  41. 112callsCodeunit 131300 Library - ERM CreateGLAccountNo
  42. 113validatesTable 5606 FA Posting Group Custom 2 Bal. Acc. on Disposal
  43. 113callsCodeunit 131300 Library - ERM CreateGLAccountNo
  44. 114validatesTable 5606 FA Posting Group Maintenance Expense Account
  45. 114callsCodeunit 131300 Library - ERM CreateGLAccountWithPurchSetup
  46. 115validatesTable 5606 FA Posting Group Maintenance Bal. Acc.
  47. 115callsCodeunit 131300 Library - ERM CreateGLAccountNo
  48. 116validatesTable 5606 FA Posting Group Acquisition Cost Bal. Acc.
  49. 116callsCodeunit 131300 Library - ERM CreateGLAccountNo
  50. 117validatesTable 5606 FA Posting Group Depreciation Expense Acc.
  51. 117callsCodeunit 131300 Library - ERM CreateGLAccountNo
  52. 118validatesTable 5606 FA Posting Group Write-Down Expense Acc.
  53. 118callsCodeunit 131300 Library - ERM CreateGLAccountNo
  54. 119validatesTable 5606 FA Posting Group Appreciation Bal. Account
  55. 119callsCodeunit 131300 Library - ERM CreateGLAccountNo
  56. 120validatesTable 5606 FA Posting Group Custom 1 Expense Acc.
  57. 120callsCodeunit 131300 Library - ERM CreateGLAccountNo
  58. 121validatesTable 5606 FA Posting Group Custom 2 Expense Acc.
  59. 121callsCodeunit 131300 Library - ERM CreateGLAccountNo
  60. 122validatesTable 5606 FA Posting Group Sales Bal. Acc.
  61. 122callsCodeunit 131300 Library - ERM CreateGLAccountNo
  62. 123validatesTable 5606 FA Posting Group Sales Acc. on Disp. (Loss)
  63. 123callsCodeunit 131300 Library - ERM CreateGLAccountNo
  64. 124validatesTable 5606 FA Posting Group Book Val. Acc. on Disp. (Loss)
  65. 124callsCodeunit 131300 Library - ERM CreateGLAccountNo
  66. 126writesTable 5606 FA Posting Group Insert(true)

CreateFAReclassJournal line 129

  1. 135validatesTable 5624 FA Reclass. Journal Line Journal Template Name
  2. 136validatesTable 5624 FA Reclass. Journal Line Journal Batch Name
  3. 138validatesTable 5624 FA Reclass. Journal Line Line No.
  4. 138callsCodeunit 131000 Library - Utility GetNewLineNo
  5. 139writesTable 5624 FA Reclass. Journal Line Insert(true)

CreateFAReclassJournalTemplate line 143

  1. 146callsCodeunit 131000 Library - Utility GenerateGUID
  2. 147writesTable 5622 FA Reclass. Journal Template Insert

CreateFAReclassJournalBatch line 150

  1. 153validatesTable 5623 FA Reclass. Journal Batch Journal Template Name
  2. 154validatesTable 5623 FA Reclass. Journal Batch Name
  3. 157callsCodeunit 131000 Library - Utility GenerateRandomCode
  4. 159callsCodeunit 131000 Library - Utility GetFieldLength
  5. 162validatesTable 5623 FA Reclass. Journal Batch Description
  6. 163writesTable 5623 FA Reclass. Journal Batch Insert(true)

CreateFAJournalBatch line 166

  1. 172validatesTable 5620 FA Journal Batch Journal Template Name
  2. 173validatesTable 5620 FA Journal Batch Name
  3. 176callsCodeunit 131000 Library - Utility GenerateRandomCode
  4. 178callsCodeunit 131000 Library - Utility GetFieldLength
  5. 179validatesTable 5620 FA Journal Batch Description
  6. 180writesTable 5620 FA Journal Batch Insert(true)

CreateFixedAsset line 183

  1. 185callsCodeunit 131000 Library - Utility UpdateSetupNoSeriesCode
  2. 188writesTable 5600 Fixed Asset Insert(true)
  3. 189validatesTable 5600 Fixed Asset Description
  4. 190writesTable 5600 Fixed Asset Modify(true)

CreateFAWithPostingGroup line 193

  1. 197callsCreateFAPostingGroup
  2. 198callsCreateFixedAsset
  3. 199validatesTable 5600 Fixed Asset FA Posting Group
  4. 200writesTable 5600 Fixed Asset Modify(true)

CreateFixedAssetWithSetup line 203

  1. 209callsCreateFixedAsset
  2. 210callsCreateFAPostingGroup
  3. 211callsCodeunit 131300 Library - ERM FindVATPostingSetupInvt
  4. 212callsUpdateFAPostingGroupGLAccounts
  5. 213writesTable 5612 FA Depreciation Book ModifyAll
  6. 214writesTable 5612 FA Depreciation Book ModifyAll
  7. 214callsCodeunit 130440 Library - Random RandIntInRange

CreateFixedAssetNo line 217

  1. 221callsCreateFixedAssetWithSetup

CreateGLBudgetName line 225

  1. 228validatesTable 95 G/L Budget Name Name
  2. 231callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 233callsCodeunit 131000 Library - Utility GetFieldLength
  4. 236validatesTable 95 G/L Budget Name Description
  5. 237writesTable 95 G/L Budget Name Insert(true)

CreateInsurance line 240

  1. 242callsCodeunit 131000 Library - Utility UpdateSetupNoSeriesCode
  2. 245writesTable 5628 Insurance Insert(true)
  3. 246validatesTable 5628 Insurance Description
  4. 247writesTable 5628 Insurance Modify(true)

CreateInsuranceJournalTemplate line 251

  1. 254callsCodeunit 131000 Library - Utility GenerateGUID
  2. 255writesTable 5633 Insurance Journal Template Insert

CreateInsuranceJournalBatch line 258

  1. 261validatesTable 5634 Insurance Journal Batch Journal Template Name
  2. 262validatesTable 5634 Insurance Journal Batch Name
  3. 265callsCodeunit 131000 Library - Utility GenerateRandomCode
  4. 267callsCodeunit 131000 Library - Utility GetFieldLength
  5. 270validatesTable 5634 Insurance Journal Batch Description
  6. 271writesTable 5634 Insurance Journal Batch Insert(true)

CreateInsuranceJournalLine line 274

  1. 280validatesTable 5635 Insurance Journal Line Journal Template Name
  2. 281validatesTable 5635 Insurance Journal Line Journal Batch Name
  3. 283validatesTable 5635 Insurance Journal Line Line No.
  4. 283callsCodeunit 131000 Library - Utility GetNewLineNo
  5. 284writesTable 5635 Insurance Journal Line Insert(true)

CreateMaintenance line 287

  1. 290validatesTable 5626 Maintenance Code
  2. 293callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 295callsCodeunit 131000 Library - Utility GetFieldLength
  4. 298validatesTable 5626 Maintenance Description
  5. 299writesTable 5626 Maintenance Insert(true)

CreateInsuranceType line 302

  1. 305validatesTable 5630 Insurance Type Code
  2. 308callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 310callsCodeunit 131000 Library - Utility GetFieldLength
  4. 313validatesTable 5630 Insurance Type Description
  5. 314writesTable 5630 Insurance Type Insert(true)

CreateJournalTemplate line 317

  1. 320validatesTable 5619 FA Journal Template Name
  2. 323callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 325callsCodeunit 131000 Library - Utility GetFieldLength
  4. 328validatesTable 5619 FA Journal Template Description
  5. 329writesTable 5619 FA Journal Template Insert(true)

CreateDepreciationTableHeader line 332

  1. 335validatesTable 5642 Depreciation Table Header Code
  2. 338callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 340callsCodeunit 131000 Library - Utility GetFieldLength
  4. 343validatesTable 5642 Depreciation Table Header Description
  5. 344writesTable 5642 Depreciation Table Header Insert(true)

CreateDepreciationTableLine line 347

  1. 353validatesTable 5643 Depreciation Table Line Depreciation Table Code
  2. 354validatesTable 5643 Depreciation Table Line Period No.
  3. 355writesTable 5643 Depreciation Table Line Insert(true)

CreateMainAssetComponent line 358

  1. 361validatesTable 5640 Main Asset Component Main Asset No.
  2. 362validatesTable 5640 Main Asset Component FA No.
  3. 363writesTable 5640 Main Asset Component Insert(true)

CreateFAClass line 366

  1. 369validatesTable 5607 FA Class Code
  2. 372callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 374callsCodeunit 131000 Library - Utility GetFieldLength
  4. 376validatesTable 5607 FA Class Name
  5. 377writesTable 5607 FA Class Insert(true)

CreateFASubclass line 380

  1. 383validatesTable 5608 FA Subclass Code
  2. 386callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 388callsCodeunit 131000 Library - Utility GetFieldLength
  4. 390validatesTable 5608 FA Subclass Name
  5. 391writesTable 5608 FA Subclass Insert(true)

CreateFASubclassDetailed line 394

  1. 397validatesTable 5608 FA Subclass Code
  2. 400callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 402callsCodeunit 131000 Library - Utility GetFieldLength
  4. 404validatesTable 5608 FA Subclass Name
  5. 405validatesTable 5608 FA Subclass FA Class Code
  6. 406validatesTable 5608 FA Subclass Default FA Posting Group
  7. 407writesTable 5608 FA Subclass Insert(true)

PostFAJournalLine line 452

  1. 456runsCodeunit 5633 FA Jnl.-Post Batch

PostInsuranceJournal line 459

  1. 463runsCodeunit 5653 Insurance Jnl.-Post Batch

PostFAJournalLineBatch line 466

  1. 468runsCodeunit 5637 FA. Jnl.-B.Post

UpdateFAPostingGroupGLAccounts line 471

  1. 473validatesTable 5606 FA Posting Group Acquisition Cost Account
  2. 473callsCodeunit 131300 Library - ERM CreateGLAccountWithVATPostingSetup
  3. 474validatesTable 5606 FA Posting Group Acq. Cost Acc. on Disposal
  4. 475validatesTable 5606 FA Posting Group Accum. Depreciation Account
  5. 475callsCodeunit 131300 Library - ERM CreateGLAccountNo
  6. 476validatesTable 5606 FA Posting Group Accum. Depr. Acc. on Disposal
  7. 477validatesTable 5606 FA Posting Group Depreciation Expense Acc.
  8. 477callsCodeunit 131300 Library - ERM CreateGLAccountNo
  9. 478validatesTable 5606 FA Posting Group Gains Acc. on Disposal
  10. 478callsCodeunit 131300 Library - ERM CreateGLAccountNo
  11. 479validatesTable 5606 FA Posting Group Losses Acc. on Disposal
  12. 479callsCodeunit 131300 Library - ERM CreateGLAccountNo
  13. 480validatesTable 5606 FA Posting Group Sales Bal. Acc.
  14. 480callsCodeunit 131300 Library - ERM CreateGLAccountWithVATPostingSetup
  15. 481writesTable 5606 FA Posting Group Modify(true)

UpdateFASetupDefaultDeprBook line 484

  1. 489validatesTable 5603 FA Setup Default Depr. Book
  2. 490writesTable 5603 FA Setup Modify(true)

VerifyLastFARegisterGLRegisterOneToOneRelation line 493

  1. 501callsCodeunit 130000 Assert AreEqual
  2. 507callsCodeunit 130000 Assert IsTrue

VerifyMaintenanceLastFARegisterGLRegisterOneToOneRelation line 513

  1. 521callsCodeunit 130000 Assert AreEqual
  2. 527callsCodeunit 130000 Assert IsTrue