Codeunit 130511 Library - Resource

Application Test Library

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

CreateResource line 16

  1. 24validatesTable 156 Resource No.
  2. 24callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 25writesTable 156 Resource Insert(true)
  4. 27callsCodeunit 132201 Library - Inventory FindUnitOfMeasure
  5. 34validatesTable 156 Resource Name
  6. 35validatesTable 156 Resource Base Unit of Measure
  7. 36validatesTable 156 Resource Direct Unit Cost
  8. 36callsCodeunit 130440 Library - Random RandInt
  9. 37validatesTable 156 Resource Unit Price
  10. 37callsCodeunit 130440 Library - Random RandInt
  11. 38validatesTable 156 Resource Gen. Prod. Posting Group
  12. 43validatesTable 156 Resource VAT Prod. Posting Group
  13. 44writesTable 156 Resource Modify(true)

CreateResourceNew line 47

  1. 54callsResNoSeriesSetup
  2. 55callsCodeunit 132201 Library - Inventory FindUnitOfMeasure
  3. 56callsCodeunit 131300 Library - ERM FindGeneralPostingSetupInvtFull
  4. 57callsCodeunit 131300 Library - ERM FindVATPostingSetupInvt
  5. 60writesTable 156 Resource Insert(true)
  6. 61validatesTable 156 Resource Name
  7. 62validatesTable 156 Resource Base Unit of Measure
  8. 63validatesTable 156 Resource Direct Unit Cost
  9. 63callsCodeunit 130440 Library - Random RandInt
  10. 64validatesTable 156 Resource Unit Price
  11. 64callsCodeunit 130440 Library - Random RandInt
  12. 65validatesTable 156 Resource Gen. Prod. Posting Group
  13. 66validatesTable 156 Resource VAT Prod. Posting Group
  14. 67writesTable 156 Resource Modify(true)

CreateResourceNo line 70

  1. 74callsCreateResourceNew

CreateResourceGroup line 78

  1. 81validatesTable 152 Resource Group No.
  2. 81callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 82validatesTable 152 Resource Group Name
  4. 83writesTable 152 Resource Group Insert(true)

CreateResourcePrice line 86

  1. 89validatesTable 201 Resource Price Type
  2. 90validatesTable 201 Resource Price Code
  3. 91validatesTable 201 Resource Price Work Type Code
  4. 92validatesTable 201 Resource Price Currency Code
  5. 93writesTable 201 Resource Price Insert(true)

CreateResJournalLine line 96

  1. 101validatesTable 207 Res. Journal Line Journal Template Name
  2. 102validatesTable 207 Res. Journal Line Journal Batch Name
  3. 104validatesTable 207 Res. Journal Line Line No.
  4. 104callsCodeunit 131000 Library - Utility GetNewLineNo
  5. 105writesTable 207 Res. Journal Line Insert(true)

CreateResourceSkill line 108

  1. 111validatesTable 5956 Resource Skill Type
  2. 112validatesTable 5956 Resource Skill No.
  3. 113validatesTable 5956 Resource Skill Skill Code
  4. 114writesTable 5956 Resource Skill Insert(true)

CreateResourceUnitOfMeasure line 117

  1. 120validatesTable 205 Resource Unit of Measure Resource No.
  2. 121validatesTable 205 Resource Unit of Measure Code
  3. 124validatesTable 205 Resource Unit of Measure Qty. per Unit of Measure
  4. 125writesTable 205 Resource Unit of Measure Insert(true)

CreateResourceWithUsers line 128

  1. 130callsCreateResource
  2. 133writesTable 156 Resource Modify

CreateSkillCode line 136

  1. 139validatesTable 5955 Skill Code Code
  2. 139callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 140writesTable 5955 Skill Code Insert(true)
  4. 141validatesTable 5955 Skill Code Description
  5. 142writesTable 5955 Skill Code Modify(true)

CreateResourceJournalTemplate line 145

  1. 148validatesTable 206 Res. Journal Template Name
  2. 150callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 152callsCodeunit 131000 Library - Utility GetFieldLength
  4. 153validatesTable 206 Res. Journal Template Description
  5. 154writesTable 206 Res. Journal Template Insert(true)

CreateResourceJournalBatch line 157

  1. 160validatesTable 236 Res. Journal Batch Journal Template Name
  2. 161validatesTable 236 Res. Journal Batch Name
  3. 163callsCodeunit 131000 Library - Utility GenerateRandomCode
  4. 165callsCodeunit 131000 Library - Utility GetFieldLength
  5. 167validatesTable 236 Res. Journal Batch Description
  6. 168writesTable 236 Res. Journal Batch Insert(true)

CreateWorkType line 171

  1. 176callsCodeunit 132201 Library - Inventory FindUnitOfMeasure
  2. 179validatesTable 200 Work Type Code
  3. 182callsCodeunit 131000 Library - Utility GenerateRandomCode
  4. 184callsCodeunit 131000 Library - Utility GetFieldLength
  5. 187validatesTable 200 Work Type Description
  6. 188validatesTable 200 Work Type Unit of Measure Code
  7. 189writesTable 200 Work Type Insert(true)

CreateWorkHourTemplate line 192

  1. 195validatesTable 5954 Work-Hour Template Code
  2. 198callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 199callsCodeunit 131000 Library - Utility GetFieldLength
  4. 200writesTable 5954 Work-Hour Template Insert(true)

PostResourceJournalLine line 230

  1. 234runsCodeunit 271 Res. Jnl.-Post

ResNoSeriesSetup line 237, local

  1. 243callsCodeunit 131000 Library - Utility GetGlobalNoSeriesCode
  2. 245validatesTable 314 Resources Setup Resource Nos.
  3. 245callsCodeunit 131000 Library - Utility GetGlobalNoSeriesCode
  4. 246writesTable 314 Resources Setup Modify(true)

SetResourceBlocked line 250

  1. 252validatesTable 156 Resource Blocked
  2. 253writesTable 156 Resource Modify(true)