Codeunit 131901 Library - Human Resource

Application Test Library

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

CreateAlternativeAddress line 17

  1. 20validatesTable 5201 Alternative Address Employee No.
  2. 21validatesTable 5201 Alternative Address Code
  3. 24callsCodeunit 131000 Library - Utility GenerateRandomCode
  4. 26callsCodeunit 131000 Library - Utility GetFieldLength
  5. 27writesTable 5201 Alternative Address Insert(true)

CreateEmployee line 30

  1. 33validatesTable 5200 Employee Employee Posting Group
  2. 33callsFindEmployeePostingGroup
  3. 34writesTable 5200 Employee Insert(true)
  4. 35callsUpdateEmployeeName
  5. 36writesTable 5200 Employee Modify(true)

CreateEmployeeNo line 39

  1. 43callsCreateEmployee

CreateEmployeeNoWithBankAccount line 47

  1. 51callsCreateEmployeeWithBankAccount

CreateEmployeeWithBankAccount line 55

  1. 59callsCreateEmployee
  2. 60callsCodeunit 131000 Library - Utility GenerateGUID
  3. 61callsCodeunit 131000 Library - Utility GenerateGUID
  4. 62callsCodeunit 131000 Library - Utility GenerateGUID
  5. 63callsCodeunit 131000 Library - Utility GenerateGUID
  6. 65validatesTable 5221 Employee Posting Group Code
  7. 65callsCodeunit 131000 Library - Utility GenerateGUID
  8. 66validatesTable 5221 Employee Posting Group Payables Account
  9. 66callsCodeunit 131300 Library - ERM CreateGLAccountNoWithDirectPosting
  10. 67writesTable 5221 Employee Posting Group Insert(true)
  11. 68validatesTable 5200 Employee Employee Posting Group
  12. 69writesTable 5200 Employee Modify(true)

CreateMiscArticle line 72

  1. 75validatesTable 5213 Misc. Article Code
  2. 78callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 80callsCodeunit 131000 Library - Utility GetFieldLength
  4. 81validatesTable 5213 Misc. Article Description
  5. 82writesTable 5213 Misc. Article Insert(true)

CreateMiscArticleInformation line 85

  1. 90validatesTable 5214 Misc. Article Information Employee No.
  2. 91validatesTable 5214 Misc. Article Information Misc. Article Code
  3. 93validatesTable 5214 Misc. Article Information Line No.
  4. 93callsCodeunit 131000 Library - Utility GetNewLineNo
  5. 94writesTable 5214 Misc. Article Information Insert(true)

CreateEmployeeQualification line 97

  1. 102validatesTable 5203 Employee Qualification Employee No.
  2. 104validatesTable 5203 Employee Qualification Line No.
  3. 104callsCodeunit 131000 Library - Utility GetNewLineNo
  4. 105writesTable 5203 Employee Qualification Insert(true)

CreateEmployeeAbsence line 108

  1. 111writesTable 5207 Employee Absence Insert(true)

CreateEmployeeRelative line 114

  1. 119validatesTable 5205 Employee Relative Employee No.
  2. 121validatesTable 5205 Employee Relative Line No.
  3. 121callsCodeunit 131000 Library - Utility GetNewLineNo
  4. 122writesTable 5205 Employee Relative Insert(true)

CreateEmployeeStatGroup line 125

  1. 128validatesTable 5212 Employee Statistics Group Code
  2. 131callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 133callsCodeunit 131000 Library - Utility GetFieldLength
  4. 134validatesTable 5212 Employee Statistics Group Description
  5. 135writesTable 5212 Employee Statistics Group Insert(true)

CreateEmploymentContract line 138

  1. 141validatesTable 5211 Employment Contract Code
  2. 144callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 146callsCodeunit 131000 Library - Utility GetFieldLength
  4. 147validatesTable 5211 Employment Contract Description
  5. 148writesTable 5211 Employment Contract Insert(true)

CreateConfidential line 151

  1. 154validatesTable 5215 Confidential Code
  2. 157callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 159callsCodeunit 131000 Library - Utility GetFieldLength
  4. 160validatesTable 5215 Confidential Description
  5. 161writesTable 5215 Confidential Insert(true)

CreateConfidentialInformation line 164

  1. 169validatesTable 5216 Confidential Information Employee No.
  2. 170validatesTable 5216 Confidential Information Confidential Code
  3. 172validatesTable 5216 Confidential Information Line No.
  4. 172callsCodeunit 131000 Library - Utility GetNewLineNo
  5. 173writesTable 5216 Confidential Information Insert(true)

CreateQualification line 176

  1. 179validatesTable 5202 Qualification Code
  2. 182callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 184callsCodeunit 131000 Library - Utility GetFieldLength
  4. 185validatesTable 5202 Qualification Description
  5. 186writesTable 5202 Qualification Insert(true)

CreateRelative line 189

  1. 192validatesTable 5204 Relative Code
  2. 195callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 197callsCodeunit 131000 Library - Utility GetFieldLength
  4. 198validatesTable 5204 Relative Description
  5. 199writesTable 5204 Relative Insert(true)

CreateUnion line 202

  1. 205validatesTable 5209 Union Code
  2. 208callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 210callsCodeunit 131000 Library - Utility GetFieldLength
  4. 211validatesTable 5209 Union Name
  5. 212writesTable 5209 Union Insert(true)

UpdateEmployeeName line 215, local

  1. 221callsCodeunit 131000 Library - Utility CheckFieldExistenceInTable
  2. 222callsCodeunit 131000 Library - Utility FindFieldNoInTable
  3. 224callsCodeunit 131000 Library - Utility FindFieldNoInTable

SetupEmployeeNumberSeries line 229

  1. 235validatesTable 5218 Human Resources Setup Employee Nos.
  2. 235callsCodeunit 131000 Library - Utility GetGlobalNoSeriesCode
  3. 236writesTable 5218 Human Resources Setup Modify(true)

CreateEmployeePostingGroup line 240

  1. 243validatesTable 5221 Employee Posting Group Code
  2. 244callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 245validatesTable 5221 Employee Posting Group Payables Account
  4. 245callsCodeunit 131300 Library - ERM CreateGLAccountNo
  5. 246validatesTable 5221 Employee Posting Group Debit Rounding Account
  6. 246callsCodeunit 131300 Library - ERM CreateGLAccountNo
  7. 247validatesTable 5221 Employee Posting Group Credit Rounding Account
  8. 247callsCodeunit 131300 Library - ERM CreateGLAccountNo
  9. 248validatesTable 5221 Employee Posting Group Debit Curr. Appln. Rndg. Acc.
  10. 248callsCodeunit 131300 Library - ERM CreateGLAccountNo
  11. 249validatesTable 5221 Employee Posting Group Credit Curr. Appln. Rndg. Acc.
  12. 249callsCodeunit 131300 Library - ERM CreateGLAccountNo
  13. 250writesTable 5221 Employee Posting Group Insert(true)

FindEmployeePostingGroup line 253

  1. 258callsCreateEmployeePostingGroup

CreateAltEmployeePostingGroup line 262

  1. 269writesTable 962 Alt. Employee Posting Group Insert