---
title: "Codeunit 131904 Library - Time Sheet, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/points/
object: https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/
app: "Application Test Library"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 131904 Library - Time Sheet, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/points/

32 procedures and triggers with a step in src/Layers/W1/Tests/ApplicationTestLibrary/LibraryTimeSheet.Codeunit.al, in source order, read from the text, not from a run.

## Initialize

[Line 28](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L28).

- [37](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L37) writes [Table 314 Resources Setup](https://jonas-paprotka.de/ref/table/314-resources-setup/) Insert
- [41](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L41) validates [Table 314 Resources Setup](https://jonas-paprotka.de/ref/table/314-resources-setup/) `Time Sheet Nos.`
- [41](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L41) calls `GetTimeSheetNoSeries`
- [42](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L42) writes [Table 314 Resources Setup](https://jonas-paprotka.de/ref/table/314-resources-setup/) Modify
- [46](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L46) calls [Codeunit 131305 Library - ERM Country Data](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/) `CreateVATData`

## CheckAssemblyTimeSheetLine

[Line 51](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L51).

- [61](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L61) calls [Codeunit 130000 Assert](https://jonas-paprotka.de/ref/codeunit/130000-assert/) `AreEqual`
- [63](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L63) calls [Codeunit 130000 Assert](https://jonas-paprotka.de/ref/codeunit/130000-assert/) `IsTrue`
- [64](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L64) calls [Codeunit 130000 Assert](https://jonas-paprotka.de/ref/codeunit/130000-assert/) `AreEqual`
- [66](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L66) calls [Codeunit 130000 Assert](https://jonas-paprotka.de/ref/codeunit/130000-assert/) `IsTrue`

## CheckServiceTimeSheetLine

[Line 71](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L71).

- [75](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L75) calls [Codeunit 131902 Library - Service](https://jonas-paprotka.de/ref/codeunit/131902-library-service/) `CheckServiceTimeSheetLine`

## CreateJobJournalLine

[Line 79](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L79).

- [84](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L84) validates [Table 210 Job Journal Line](https://jonas-paprotka.de/ref/table/210-job-journal-line/) `Journal Template Name`
- [85](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L85) validates [Table 210 Job Journal Line](https://jonas-paprotka.de/ref/table/210-job-journal-line/) `Journal Batch Name`
- [87](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L87) validates [Table 210 Job Journal Line](https://jonas-paprotka.de/ref/table/210-job-journal-line/) `Line No.`
- [87](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L87) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [88](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L88) writes [Table 210 Job Journal Line](https://jonas-paprotka.de/ref/table/210-job-journal-line/) Insert(true)

## CreateJobPlanningLine

[Line 91](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L91).

- [107](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L107) writes [Table 1003 Job Planning Line](https://jonas-paprotka.de/ref/table/1003-job-planning-line/) Insert

## CreateTimeSheet

[Line 110](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L110).

- [121](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L121) calls `CreateUserSetup`
- [124](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L124) calls `CreateTimeSheetResource`
- [125](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L125) validates [Table 156 Resource](https://jonas-paprotka.de/ref/table/156-resource/) `Time Sheet Owner User ID`
- [126](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L126) validates [Table 156 Resource](https://jonas-paprotka.de/ref/table/156-resource/) `Time Sheet Approver User ID`
- [127](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L127) writes [Table 156 Resource](https://jonas-paprotka.de/ref/table/156-resource/) Modify
- [130](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L130) calls `GetAccountingPeriod`
- [141](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L141) calls [Report 950 Create Time Sheets](https://jonas-paprotka.de/ref/report/950-create-time-sheets/) `InitParameters`
- [142](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L142) calls [Report 950 Create Time Sheets](https://jonas-paprotka.de/ref/report/950-create-time-sheets/) `UseRequestPage`

## CreateTimeSheetLine

[Line 150](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L150).

- [154](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L154) calls [Table 950 Time Sheet Header](https://jonas-paprotka.de/ref/table/950-time-sheet-header/) `GetLastLineNo`
- [163](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L163) validates [Table 951 Time Sheet Line](https://jonas-paprotka.de/ref/table/951-time-sheet-line/) `Job No.`
- [164](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L164) validates [Table 951 Time Sheet Line](https://jonas-paprotka.de/ref/table/951-time-sheet-line/) `Job Task No.`
- [167](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L167) validates [Table 951 Time Sheet Line](https://jonas-paprotka.de/ref/table/951-time-sheet-line/) `Service Order No.`
- [169](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L169) validates [Table 951 Time Sheet Line](https://jonas-paprotka.de/ref/table/951-time-sheet-line/) `Cause of Absence Code`
- [171](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L171) writes [Table 951 Time Sheet Line](https://jonas-paprotka.de/ref/table/951-time-sheet-line/) Insert(true)

## CreateTimeSheetDetail

[Line 174](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L174).

- [182](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L182) calls [Table 952 Time Sheet Detail](https://jonas-paprotka.de/ref/table/952-time-sheet-detail/) `CopyFromTimeSheetLine`
- [184](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L184) writes [Table 952 Time Sheet Detail](https://jonas-paprotka.de/ref/table/952-time-sheet-detail/) Insert

## CreateTimeSheetResource

[Line 187](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L187).

- [193](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L193) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `FindVATPostingSetup`
- [194](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L194) calls [Codeunit 130511 Library - Resource](https://jonas-paprotka.de/ref/codeunit/130511-library-resource/) `CreateResource`
- [196](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L196) calls `FindHRUnitOfMeasure`
- [198](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L198) calls [Codeunit 130511 Library - Resource](https://jonas-paprotka.de/ref/codeunit/130511-library-resource/) `CreateResourceUnitOfMeasure`
- [200](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L200) validates [Table 156 Resource](https://jonas-paprotka.de/ref/table/156-resource/) `Base Unit of Measure`
- [202](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L202) writes [Table 156 Resource](https://jonas-paprotka.de/ref/table/156-resource/) Modify

## CreateServiceOrder

[Line 207](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L207).

- [211](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L211) calls [Codeunit 131902 Library - Service](https://jonas-paprotka.de/ref/codeunit/131902-library-service/) `CreateServiceOrder`

## CreateUserSetup

[Line 215](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L215).

- [224](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L224) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [225](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L225) writes [Table 91 User Setup](https://jonas-paprotka.de/ref/table/91-user-setup/) Insert

## CreateWorkType

[Line 228](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L228).

- [231](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L231) validates [Table 200 Work Type](https://jonas-paprotka.de/ref/table/200-work-type/) `Code`
- [232](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L232) writes [Table 200 Work Type](https://jonas-paprotka.de/ref/table/200-work-type/) Insert(true)
- [233](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L233) validates [Table 200 Work Type](https://jonas-paprotka.de/ref/table/200-work-type/) `Description`
- [234](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L234) validates [Table 200 Work Type](https://jonas-paprotka.de/ref/table/200-work-type/) `Unit of Measure Code`
- [235](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L235) writes [Table 200 Work Type](https://jonas-paprotka.de/ref/table/200-work-type/) Modify

## CreateHRUnitOfMeasure

[Line 238](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L238).

- [242](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L242) calls [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) `CreateUnitOfMeasureCode`
- [244](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L244) validates [Table 5220 Human Resource Unit of Measure](https://jonas-paprotka.de/ref/table/5220-human-resource-unit-of-measure/) `Code`
- [245](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L245) validates [Table 5220 Human Resource Unit of Measure](https://jonas-paprotka.de/ref/table/5220-human-resource-unit-of-measure/) `Qty. per Unit of Measure`
- [246](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L246) writes [Table 5220 Human Resource Unit of Measure](https://jonas-paprotka.de/ref/table/5220-human-resource-unit-of-measure/) Insert(true)

## CreateCauseOfAbsence

[Line 249](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L249).

- [253](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L253) calls `CreateHRUnitOfMeasure`
- [256](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L256) validates [Table 5206 Cause of Absence](https://jonas-paprotka.de/ref/table/5206-cause-of-absence/) `Code`
- [256](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L256) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateGUID`
- [257](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L257) validates [Table 5206 Cause of Absence](https://jonas-paprotka.de/ref/table/5206-cause-of-absence/) `Description`
- [257](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L257) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateGUID`
- [258](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L258) validates [Table 5206 Cause of Absence](https://jonas-paprotka.de/ref/table/5206-cause-of-absence/) `Unit of Measure Code`
- [259](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L259) writes [Table 5206 Cause of Absence](https://jonas-paprotka.de/ref/table/5206-cause-of-absence/) Insert(true)

## FindCauseOfAbsence

[Line 262](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L262).

- [269](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L269) validates [Table 5206 Cause of Absence](https://jonas-paprotka.de/ref/table/5206-cause-of-absence/) `Unit of Measure Code`
- [270](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L270) writes [Table 5206 Cause of Absence](https://jonas-paprotka.de/ref/table/5206-cause-of-absence/) Modify(true)

## GetAccountingPeriod

[Line 304](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L304).

- [319](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L319) writes [Table 50 Accounting Period](https://jonas-paprotka.de/ref/table/50-accounting-period/) Insert

## GetRandomDecimal

[Line 323](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L323).

- [325](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L325) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`

## GetTimeSheetNoSeries

[Line 328](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L328).

- [334](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L334) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `CreateNoSeries`
- [335](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L335) writes [Table 308 No. Series](https://jonas-paprotka.de/ref/table/308-no-series/) Rename
- [336](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L336) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `CreateNoSeriesLine`

## GetTimeSheetLineBuffer

[Line 343](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L343).

- [348](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L348) writes [Table 951 Time Sheet Line](https://jonas-paprotka.de/ref/table/951-time-sheet-line/) Insert

## InitAssemblyBackwayScenario

[Line 352](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L352).

- [368](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L368) calls `CreateTimeSheet`
- [374](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L374) calls `CreateUserSetup`
- [375](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L375) calls `CreateTimeSheetResource`
- [376](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L376) validates [Table 156 Resource](https://jonas-paprotka.de/ref/table/156-resource/) `Time Sheet Owner User ID`
- [377](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L377) validates [Table 156 Resource](https://jonas-paprotka.de/ref/table/156-resource/) `Time Sheet Approver User ID`
- [380](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L380) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `FindGeneralPostingSetupInvtFull`
- [381](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L381) validates [Table 156 Resource](https://jonas-paprotka.de/ref/table/156-resource/) `Gen. Prod. Posting Group`
- [382](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L382) writes [Table 156 Resource](https://jonas-paprotka.de/ref/table/156-resource/) Modify
- [384](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L384) calls [Codeunit 132204 Library - Warehouse](https://jonas-paprotka.de/ref/codeunit/132204-library-warehouse/) `CreateLocationWithInventoryPostingSetup`
- [387](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L387) calls [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) `SelectItemJournalTemplateName`
- [388](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L388) calls [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) `SelectItemJournalBatchName`
- [389](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L389) calls [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) `ClearItemJournal`
- [392](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L392) calls [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) `CreateItem`
- [393](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L393) calls [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) `CreateItemJournalLine`
- [395](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L395) validates [Table 83 Item Journal Line](https://jonas-paprotka.de/ref/table/83-item-journal-line/) `Location Code`
- [396](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L396) writes [Table 83 Item Journal Line](https://jonas-paprotka.de/ref/table/83-item-journal-line/) Modify
- [399](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L399) calls [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) `PostItemJournalLine`
- [402](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L402) calls [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) `CreateBOMComponent`
- [405](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L405) calls [Codeunit 132207 Library - Assembly](https://jonas-paprotka.de/ref/codeunit/132207-library-assembly/) `CreateAssemblyHeader`
- [406](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L406) validates [Table 900 Assembly Header](https://jonas-paprotka.de/ref/table/900-assembly-header/) `Posting Date`
- [407](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L407) writes [Table 900 Assembly Header](https://jonas-paprotka.de/ref/table/900-assembly-header/) Modify
- [408](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L408) calls [Codeunit 132207 Library - Assembly](https://jonas-paprotka.de/ref/codeunit/132207-library-assembly/) `CreateAssemblyLine`

## InitBackwayScenario

[Line 414](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L414).

- [418](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L418) calls [Codeunit 131902 Library - Service](https://jonas-paprotka.de/ref/codeunit/131902-library-service/) `InitBackwayScenario`

## InitJobScenario

[Line 422](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L422).

- [429](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L429) calls `CreateTimeSheet`
- [433](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L433) calls `FindJob`
- [434](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L434) calls `FindJobTask`
- [438](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L438) writes [Table 156 Resource](https://jonas-paprotka.de/ref/table/156-resource/) Modify
- [439](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L439) calls `CreateTimeSheetLine`
- [443](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L443) calls `CreateTimeSheetDetail`
- [443](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L443) calls `GetRandomDecimal`
- [445](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L445) calls [Codeunit 951 Time Sheet Approval Management](https://jonas-paprotka.de/ref/codeunit/951-time-sheet-approval-management/) `Submit`
- [446](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L446) calls [Codeunit 951 Time Sheet Approval Management](https://jonas-paprotka.de/ref/codeunit/951-time-sheet-approval-management/) `Approve`

## InitResourceScenario

[Line 449](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L449).

- [452](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L452) calls `CreateTimeSheet`
- [455](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L455) calls `CreateTimeSheetLine`
- [457](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L457) writes [Table 951 Time Sheet Line](https://jonas-paprotka.de/ref/table/951-time-sheet-line/) Modify
- [460](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L460) calls `CreateTimeSheetDetail`
- [460](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L460) calls `GetRandomDecimal`
- [462](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L462) calls [Codeunit 951 Time Sheet Approval Management](https://jonas-paprotka.de/ref/codeunit/951-time-sheet-approval-management/) `Submit`
- [463](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L463) calls [Codeunit 951 Time Sheet Approval Management](https://jonas-paprotka.de/ref/codeunit/951-time-sheet-approval-management/) `Approve`

## InitScenarioWTForJob

[Line 466](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L466).

- [476](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L476) calls `CreateTimeSheet`
- [481](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L481) calls `FindJob`
- [482](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L482) calls `FindJobTask`
- [486](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L486) writes [Table 156 Resource](https://jonas-paprotka.de/ref/table/156-resource/) Modify
- [487](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L487) calls `CreateTimeSheetLine`
- [493](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L493) calls `CreateWorkType`
- [498](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L498) calls `CreateTimeSheetDetail`
- [498](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L498) calls `GetRandomDecimal`
- [499](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L499) calls `CreateTimeSheetDetail`
- [499](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L499) calls `GetRandomDecimal`
- [500](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L500) calls [Codeunit 951 Time Sheet Approval Management](https://jonas-paprotka.de/ref/codeunit/951-time-sheet-approval-management/) `Submit`

## InitScenarioWTForServiceOrder

[Line 506](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L506).

- [510](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L510) calls [Codeunit 131902 Library - Service](https://jonas-paprotka.de/ref/codeunit/131902-library-service/) `InitScenarioWTForServiceOrder`

## InitServiceScenario

[Line 516](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L516).

- [520](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L520) calls [Codeunit 131902 Library - Service](https://jonas-paprotka.de/ref/codeunit/131902-library-service/) `InitServiceScenario`

## SubmitTimeSheetLine

[Line 524](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L524).

- [526](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L526) calls [Codeunit 951 Time Sheet Approval Management](https://jonas-paprotka.de/ref/codeunit/951-time-sheet-approval-management/) `Submit`

## SubmitAndApproveTimeSheetLine

[Line 529](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L529).

- [531](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L531) calls [Codeunit 951 Time Sheet Approval Management](https://jonas-paprotka.de/ref/codeunit/951-time-sheet-approval-management/) `Submit`
- [532](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L532) calls [Codeunit 951 Time Sheet Approval Management](https://jonas-paprotka.de/ref/codeunit/951-time-sheet-approval-management/) `Approve`

## RunSuggestJobJnlLinesReportForResourceInPeriod

[Line 535](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L535).

- [541](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L541) calls [Report 952 Suggest Job Jnl. Lines](https://jonas-paprotka.de/ref/report/952-suggest-job-jnl-lines/) `InitParameters`

## RunCreateTimeSheetsReport

[Line 545](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L545).

- [550](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L550) calls [Report 950 Create Time Sheets](https://jonas-paprotka.de/ref/report/950-create-time-sheets/) `InitParameters`
- [551](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L551) calls [Report 950 Create Time Sheets](https://jonas-paprotka.de/ref/report/950-create-time-sheets/) `UseRequestPage`

## OnAfterProcessManagerTimeSheet

[Line 556](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L556), local.

- [560](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L560) calls [Codeunit 950 Time Sheet Management](https://jonas-paprotka.de/ref/codeunit/950-time-sheet-management/) `CopyFilteredTimeSheetLinesToBuffer`

## OnAfterProcessManagerTimeSheetByJob

[Line 564](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L564), local.

- [568](https://jonas-paprotka.de/ref/codeunit/131904-library-time-sheet/source/#L568) calls [Codeunit 950 Time Sheet Management](https://jonas-paprotka.de/ref/codeunit/950-time-sheet-management/) `CopyFilteredTimeSheetLinesToBuffer`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
