Codeunit 131904 Library - Time Sheet

Application Test Library

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

Initialize line 28

  1. 37writesTable 314 Resources Setup Insert
  2. 41validatesTable 314 Resources Setup Time Sheet Nos.
  3. 41callsGetTimeSheetNoSeries
  4. 42writesTable 314 Resources Setup Modify
  5. 46callsCodeunit 131305 Library - ERM Country Data CreateVATData

CheckAssemblyTimeSheetLine line 51

  1. 61callsCodeunit 130000 Assert AreEqual
  2. 63callsCodeunit 130000 Assert IsTrue
  3. 64callsCodeunit 130000 Assert AreEqual
  4. 66callsCodeunit 130000 Assert IsTrue

CheckServiceTimeSheetLine line 71

  1. 75callsCodeunit 131902 Library - Service CheckServiceTimeSheetLine

CreateJobJournalLine line 79

  1. 84validatesTable 210 Job Journal Line Journal Template Name
  2. 85validatesTable 210 Job Journal Line Journal Batch Name
  3. 87validatesTable 210 Job Journal Line Line No.
  4. 87callsCodeunit 131000 Library - Utility GetNewLineNo
  5. 88writesTable 210 Job Journal Line Insert(true)

CreateJobPlanningLine line 91

  1. 107writesTable 1003 Job Planning Line Insert

CreateTimeSheet line 110

  1. 121callsCreateUserSetup
  2. 124callsCreateTimeSheetResource
  3. 125validatesTable 156 Resource Time Sheet Owner User ID
  4. 126validatesTable 156 Resource Time Sheet Approver User ID
  5. 127writesTable 156 Resource Modify
  6. 130callsGetAccountingPeriod
  7. 141callsReport 950 Create Time Sheets InitParameters
  8. 142callsReport 950 Create Time Sheets UseRequestPage

CreateTimeSheetLine line 150

  1. 154callsTable 950 Time Sheet Header GetLastLineNo
  2. 163validatesTable 951 Time Sheet Line Job No.
  3. 164validatesTable 951 Time Sheet Line Job Task No.
  4. 167validatesTable 951 Time Sheet Line Service Order No.
  5. 169validatesTable 951 Time Sheet Line Cause of Absence Code
  6. 171writesTable 951 Time Sheet Line Insert(true)

CreateTimeSheetDetail line 174

  1. 182callsTable 952 Time Sheet Detail CopyFromTimeSheetLine
  2. 184writesTable 952 Time Sheet Detail Insert

CreateTimeSheetResource line 187

  1. 193callsCodeunit 131300 Library - ERM FindVATPostingSetup
  2. 194callsCodeunit 130511 Library - Resource CreateResource
  3. 196callsFindHRUnitOfMeasure
  4. 198callsCodeunit 130511 Library - Resource CreateResourceUnitOfMeasure
  5. 200validatesTable 156 Resource Base Unit of Measure
  6. 202writesTable 156 Resource Modify

CreateServiceOrder line 207

  1. 211callsCodeunit 131902 Library - Service CreateServiceOrder

CreateUserSetup line 215

  1. 224callsCodeunit 131000 Library - Utility GenerateRandomCode
  2. 225writesTable 91 User Setup Insert

CreateWorkType line 228

  1. 231validatesTable 200 Work Type Code
  2. 232writesTable 200 Work Type Insert(true)
  3. 233validatesTable 200 Work Type Description
  4. 234validatesTable 200 Work Type Unit of Measure Code
  5. 235writesTable 200 Work Type Modify

CreateHRUnitOfMeasure line 238

  1. 242callsCodeunit 132201 Library - Inventory CreateUnitOfMeasureCode
  2. 244validatesTable 5220 Human Resource Unit of Measure Code
  3. 245validatesTable 5220 Human Resource Unit of Measure Qty. per Unit of Measure
  4. 246writesTable 5220 Human Resource Unit of Measure Insert(true)

CreateCauseOfAbsence line 249

  1. 253callsCreateHRUnitOfMeasure
  2. 256validatesTable 5206 Cause of Absence Code
  3. 256callsCodeunit 131000 Library - Utility GenerateGUID
  4. 257validatesTable 5206 Cause of Absence Description
  5. 257callsCodeunit 131000 Library - Utility GenerateGUID
  6. 258validatesTable 5206 Cause of Absence Unit of Measure Code
  7. 259writesTable 5206 Cause of Absence Insert(true)

FindCauseOfAbsence line 262

  1. 269validatesTable 5206 Cause of Absence Unit of Measure Code
  2. 270writesTable 5206 Cause of Absence Modify(true)

GetAccountingPeriod line 304

  1. 319writesTable 50 Accounting Period Insert

GetRandomDecimal line 323

  1. 325callsCodeunit 130440 Library - Random RandInt

GetTimeSheetNoSeries line 328

  1. 334callsCodeunit 131000 Library - Utility CreateNoSeries
  2. 335writesTable 308 No. Series Rename
  3. 336callsCodeunit 131000 Library - Utility CreateNoSeriesLine

GetTimeSheetLineBuffer line 343

  1. 348writesTable 951 Time Sheet Line Insert

InitAssemblyBackwayScenario line 352

  1. 368callsCreateTimeSheet
  2. 374callsCreateUserSetup
  3. 375callsCreateTimeSheetResource
  4. 376validatesTable 156 Resource Time Sheet Owner User ID
  5. 377validatesTable 156 Resource Time Sheet Approver User ID
  6. 380callsCodeunit 131300 Library - ERM FindGeneralPostingSetupInvtFull
  7. 381validatesTable 156 Resource Gen. Prod. Posting Group
  8. 382writesTable 156 Resource Modify
  9. 384callsCodeunit 132204 Library - Warehouse CreateLocationWithInventoryPostingSetup
  10. 387callsCodeunit 132201 Library - Inventory SelectItemJournalTemplateName
  11. 388callsCodeunit 132201 Library - Inventory SelectItemJournalBatchName
  12. 389callsCodeunit 132201 Library - Inventory ClearItemJournal
  13. 392callsCodeunit 132201 Library - Inventory CreateItem
  14. 393callsCodeunit 132201 Library - Inventory CreateItemJournalLine
  15. 395validatesTable 83 Item Journal Line Location Code
  16. 396writesTable 83 Item Journal Line Modify
  17. 399callsCodeunit 132201 Library - Inventory PostItemJournalLine
  18. 402callsCodeunit 132201 Library - Inventory CreateBOMComponent
  19. 405callsCodeunit 132207 Library - Assembly CreateAssemblyHeader
  20. 406validatesTable 900 Assembly Header Posting Date
  21. 407writesTable 900 Assembly Header Modify
  22. 408callsCodeunit 132207 Library - Assembly CreateAssemblyLine

InitBackwayScenario line 414

  1. 418callsCodeunit 131902 Library - Service InitBackwayScenario

InitJobScenario line 422

  1. 429callsCreateTimeSheet
  2. 433callsFindJob
  3. 434callsFindJobTask
  4. 438writesTable 156 Resource Modify
  5. 439callsCreateTimeSheetLine
  6. 443callsCreateTimeSheetDetail
  7. 443callsGetRandomDecimal
  8. 445callsCodeunit 951 Time Sheet Approval Management Submit
  9. 446callsCodeunit 951 Time Sheet Approval Management Approve

InitResourceScenario line 449

  1. 452callsCreateTimeSheet
  2. 455callsCreateTimeSheetLine
  3. 457writesTable 951 Time Sheet Line Modify
  4. 460callsCreateTimeSheetDetail
  5. 460callsGetRandomDecimal
  6. 462callsCodeunit 951 Time Sheet Approval Management Submit
  7. 463callsCodeunit 951 Time Sheet Approval Management Approve

InitScenarioWTForJob line 466

  1. 476callsCreateTimeSheet
  2. 481callsFindJob
  3. 482callsFindJobTask
  4. 486writesTable 156 Resource Modify
  5. 487callsCreateTimeSheetLine
  6. 493callsCreateWorkType
  7. 498callsCreateTimeSheetDetail
  8. 498callsGetRandomDecimal
  9. 499callsCreateTimeSheetDetail
  10. 499callsGetRandomDecimal
  11. 500callsCodeunit 951 Time Sheet Approval Management Submit

InitScenarioWTForServiceOrder line 506

  1. 510callsCodeunit 131902 Library - Service InitScenarioWTForServiceOrder

InitServiceScenario line 516

  1. 520callsCodeunit 131902 Library - Service InitServiceScenario

SubmitTimeSheetLine line 524

  1. 526callsCodeunit 951 Time Sheet Approval Management Submit

SubmitAndApproveTimeSheetLine line 529

  1. 531callsCodeunit 951 Time Sheet Approval Management Submit
  2. 532callsCodeunit 951 Time Sheet Approval Management Approve

RunSuggestJobJnlLinesReportForResourceInPeriod line 535

  1. 541callsReport 952 Suggest Job Jnl. Lines InitParameters

RunCreateTimeSheetsReport line 545

  1. 550callsReport 950 Create Time Sheets InitParameters
  2. 551callsReport 950 Create Time Sheets UseRequestPage

OnAfterProcessManagerTimeSheet line 556, local

  1. 560callsCodeunit 950 Time Sheet Management CopyFilteredTimeSheetLinesToBuffer

OnAfterProcessManagerTimeSheetByJob line 564, local

  1. 568callsCodeunit 950 Time Sheet Management CopyFilteredTimeSheetLinesToBuffer