Codeunit 130511 Library - Resource
src/Layers/W1/Tests/ApplicationTestLibrary/LibraryResource.Codeunit.al17 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
CreateResource line 16
- 24validatesTable 156 Resource No.
- 24callsCodeunit 131000 Library - Utility GenerateRandomCode
- 25writesTable 156 Resource Insert(true)
- 27callsCodeunit 132201 Library - Inventory FindUnitOfMeasure
- 34validatesTable 156 Resource Name
- 35validatesTable 156 Resource Base Unit of Measure
- 36validatesTable 156 Resource Direct Unit Cost
- 36callsCodeunit 130440 Library - Random RandInt
- 37validatesTable 156 Resource Unit Price
- 37callsCodeunit 130440 Library - Random RandInt
- 38validatesTable 156 Resource Gen. Prod. Posting Group
- 43validatesTable 156 Resource VAT Prod. Posting Group
- 44writesTable 156 Resource Modify(true)
CreateResourceNew line 47
- 54callsResNoSeriesSetup
- 55callsCodeunit 132201 Library - Inventory FindUnitOfMeasure
- 56callsCodeunit 131300 Library - ERM FindGeneralPostingSetupInvtFull
- 57callsCodeunit 131300 Library - ERM FindVATPostingSetupInvt
- 60writesTable 156 Resource Insert(true)
- 61validatesTable 156 Resource Name
- 62validatesTable 156 Resource Base Unit of Measure
- 63validatesTable 156 Resource Direct Unit Cost
- 63callsCodeunit 130440 Library - Random RandInt
- 64validatesTable 156 Resource Unit Price
- 64callsCodeunit 130440 Library - Random RandInt
- 65validatesTable 156 Resource Gen. Prod. Posting Group
- 66validatesTable 156 Resource VAT Prod. Posting Group
- 67writesTable 156 Resource Modify(true)
CreateResourceNo line 70
- 74callsCreateResourceNew
CreateResourceGroup line 78
- 81validatesTable 152 Resource Group No.
- 81callsCodeunit 131000 Library - Utility GenerateRandomCode
- 82validatesTable 152 Resource Group Name
- 83writesTable 152 Resource Group Insert(true)
CreateResourcePrice line 86
- 89validatesTable 201 Resource Price Type
- 90validatesTable 201 Resource Price Code
- 91validatesTable 201 Resource Price Work Type Code
- 92validatesTable 201 Resource Price Currency Code
- 93writesTable 201 Resource Price Insert(true)
CreateResJournalLine line 96
- 101validatesTable 207 Res. Journal Line Journal Template Name
- 102validatesTable 207 Res. Journal Line Journal Batch Name
- 104validatesTable 207 Res. Journal Line Line No.
- 104callsCodeunit 131000 Library - Utility GetNewLineNo
- 105writesTable 207 Res. Journal Line Insert(true)
CreateResourceSkill line 108
- 111validatesTable 5956 Resource Skill Type
- 112validatesTable 5956 Resource Skill No.
- 113validatesTable 5956 Resource Skill Skill Code
- 114writesTable 5956 Resource Skill Insert(true)
CreateResourceUnitOfMeasure line 117
- 120validatesTable 205 Resource Unit of Measure Resource No.
- 121validatesTable 205 Resource Unit of Measure Code
- 124validatesTable 205 Resource Unit of Measure Qty. per Unit of Measure
- 125writesTable 205 Resource Unit of Measure Insert(true)
CreateResourceWithUsers line 128
- 130callsCreateResource
- 133writesTable 156 Resource Modify
CreateSkillCode line 136
- 139validatesTable 5955 Skill Code Code
- 139callsCodeunit 131000 Library - Utility GenerateRandomCode
- 140writesTable 5955 Skill Code Insert(true)
- 141validatesTable 5955 Skill Code Description
- 142writesTable 5955 Skill Code Modify(true)
CreateResourceJournalTemplate line 145
- 148validatesTable 206 Res. Journal Template Name
- 150callsCodeunit 131000 Library - Utility GenerateRandomCode
- 152callsCodeunit 131000 Library - Utility GetFieldLength
- 153validatesTable 206 Res. Journal Template Description
- 154writesTable 206 Res. Journal Template Insert(true)
CreateResourceJournalBatch line 157
- 160validatesTable 236 Res. Journal Batch Journal Template Name
- 161validatesTable 236 Res. Journal Batch Name
- 163callsCodeunit 131000 Library - Utility GenerateRandomCode
- 165callsCodeunit 131000 Library - Utility GetFieldLength
- 167validatesTable 236 Res. Journal Batch Description
- 168writesTable 236 Res. Journal Batch Insert(true)
CreateWorkType line 171
- 176callsCodeunit 132201 Library - Inventory FindUnitOfMeasure
- 179validatesTable 200 Work Type Code
- 182callsCodeunit 131000 Library - Utility GenerateRandomCode
- 184callsCodeunit 131000 Library - Utility GetFieldLength
- 187validatesTable 200 Work Type Description
- 188validatesTable 200 Work Type Unit of Measure Code
- 189writesTable 200 Work Type Insert(true)
CreateWorkHourTemplate line 192
- 195validatesTable 5954 Work-Hour Template Code
- 198callsCodeunit 131000 Library - Utility GenerateRandomCode
- 199callsCodeunit 131000 Library - Utility GetFieldLength
- 200writesTable 5954 Work-Hour Template Insert(true)
PostResourceJournalLine line 230
ResNoSeriesSetup line 237, local
- 243callsCodeunit 131000 Library - Utility GetGlobalNoSeriesCode
- 245validatesTable 314 Resources Setup Resource Nos.
- 245callsCodeunit 131000 Library - Utility GetGlobalNoSeriesCode
- 246writesTable 314 Resources Setup Modify(true)
SetResourceBlocked line 250
- 252validatesTable 156 Resource Blocked
- 253writesTable 156 Resource Modify(true)