---
title: "Table 20405 Qlty. Inspection Header, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/points/
object: https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/
app: "Quality Management"
major: 29
source: https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/
checked: 2026-11-20
changed: 2026-11-13
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/"
---

# Table 20405 Qlty. Inspection Header, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/points/

55 procedures and triggers with a step in src/Apps/W1/Quality Management/app/src/Document/QltyInspectionHeader.Table.al, in source order, read from the text, not from a run.

## Template Code.OnValidate

[Line 74](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L74), trigger.

- [76](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L76) calls `InitInspectionNumber`

## Status.OnValidate

[Line 91](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L91), trigger.

- [94](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L94) calls `ProcessFinishInspection`
- [96](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L96) calls `ProcessReopenInspection`

## Source Quantity (Base).OnValidate

[Line 106](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L106), trigger.

- [109](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L109) calls `GetIsCreating`
- [110](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L110) calls [Codeunit 20406 Qlty. Permission Mgmt.](https://jonas-paprotka.de/ref/codeunit/20406-qlty-permission-mgmt/) `VerifyCanChangeSourceQuantity`
- [115](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L115) calls `VerifyPassAndFailQuantities`
- [116](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L116) calls `UpdateSampleSize`
- [118](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L118) validates [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) `Sample Size`

## Pass Quantity.OnValidate

[Line 129](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L129), trigger.

- [134](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L134) calls `GetIsCreating`
- [135](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L135) calls [Codeunit 20406 Qlty. Permission Mgmt.](https://jonas-paprotka.de/ref/codeunit/20406-qlty-permission-mgmt/) `VerifyCanChangeSourceQuantity`
- [137](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L137) calls `VerifyPassAndFailQuantities`

## Fail Quantity.OnValidate

[Line 148](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L148), trigger.

- [153](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L153) calls `GetIsCreating`
- [154](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L154) calls [Codeunit 20406 Qlty. Permission Mgmt.](https://jonas-paprotka.de/ref/codeunit/20406-qlty-permission-mgmt/) `VerifyCanChangeSourceQuantity`
- [156](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L156) calls `VerifyPassAndFailQuantities`

## Sample Size.OnValidate

[Line 165](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L165), trigger.

- [170](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L170) calls `GetIsCreating`
- [171](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L171) calls [Codeunit 20406 Qlty. Permission Mgmt.](https://jonas-paprotka.de/ref/codeunit/20406-qlty-permission-mgmt/) `VerifyCanChangeSourceQuantity`
- [174](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L174) calls `GetIsCreating`
- [177](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L177) calls [Codeunit 710 Math](https://jonas-paprotka.de/ref/codeunit/710-math/) `Truncate`

## Assigned User ID.OnValidate

[Line 190](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L190), trigger.

- [195](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L195) calls [Codeunit 9843 User Selection](https://jonas-paprotka.de/ref/codeunit/9843-user-selection/) `ValidateUserName`
- [202](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L202) calls [Codeunit 20406 Qlty. Permission Mgmt.](https://jonas-paprotka.de/ref/codeunit/20406-qlty-permission-mgmt/) `CanChangeOtherInspections`

## Source Serial No..OnValidate

[Line 368](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L368), trigger.

- [373](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L373) calls `GetIsCreating`
- [374](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L374) calls [Codeunit 20406 Qlty. Permission Mgmt.](https://jonas-paprotka.de/ref/codeunit/20406-qlty-permission-mgmt/) `VerifyCanChangeItemTracking`

## Source Lot No..OnValidate

[Line 383](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L383), trigger.

- [388](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L388) calls `GetIsCreating`
- [389](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L389) calls [Codeunit 20406 Qlty. Permission Mgmt.](https://jonas-paprotka.de/ref/codeunit/20406-qlty-permission-mgmt/) `VerifyCanChangeItemTracking`

## Source Package No..OnValidate

[Line 398](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L398), trigger.

- [403](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L403) calls `GetIsCreating`
- [404](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L404) calls [Codeunit 20406 Qlty. Permission Mgmt.](https://jonas-paprotka.de/ref/codeunit/20406-qlty-permission-mgmt/) `VerifyCanChangeItemTracking`

## OnDelete

[Line 567](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L567), trigger.

- [574](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L574) calls [Codeunit 20406 Qlty. Permission Mgmt.](https://jonas-paprotka.de/ref/codeunit/20406-qlty-permission-mgmt/) `VerifyCanDeleteOpenInspection`
- [576](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L576) calls [Codeunit 20406 Qlty. Permission Mgmt.](https://jonas-paprotka.de/ref/codeunit/20406-qlty-permission-mgmt/) `VerifyCanDeleteFinishedInspection`
- [581](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L581) writes [Table 20406 Qlty. Inspection Line](https://jonas-paprotka.de/ref/table/20406-qlty-inspection-line/) DeleteAll
- [586](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L586) writes [Table 20412 Qlty. I. Result Condit. Conf.](https://jonas-paprotka.de/ref/table/20412-qlty-i-result-condit-conf/) DeleteAll

## OnInsert

[Line 589](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L589), trigger.

- [592](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L592) calls `InitInspectionNumber`
- [594](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L594) calls `UpdateMostRecentReinspection`

## OnModify

[Line 597](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L597), trigger.

- [607](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L607) calls `TestStatusOpen`
- [609](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L609) calls `GetPreventAutoAssignment`
- [624](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L624) calls [Codeunit 20406 Qlty. Permission Mgmt.](https://jonas-paprotka.de/ref/codeunit/20406-qlty-permission-mgmt/) `GetShouldAutoAssign`
- [626](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L626) calls [Codeunit 20437 Qlty. Notification Mgmt.](https://jonas-paprotka.de/ref/codeunit/20437-qlty-notification-mgmt/) `NotifyDoYouWantToAssignToYourself`
- [628](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L628) calls `AssignToSelf`
- [631](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L631) calls `UpdateResultFromLines`
- [636](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L636) calls [Codeunit 20426 Qlty. Start Workflow](https://jonas-paprotka.de/ref/codeunit/20426-qlty-start-workflow/) `StartWorkflowInspectionChanged`

## UpdateMostRecentReinspection

[Line 689](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L689), local.

- [693](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L693) calls `ClearMostRecentReinspectionForPrecedingInspections`

## ClearMostRecentReinspectionForPrecedingInspections

[Line 699](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L699), local.

- [709](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L709) writes [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) ModifyAll

## SetTestValue

[Line 717](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L717).

- [725](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L725) calls `GetFriendlyIdentifier`
- [727](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L727) validates [Table 20406 Qlty. Inspection Line](https://jonas-paprotka.de/ref/table/20406-qlty-inspection-line/) `Test Value`
- [728](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L728) writes [Table 20406 Qlty. Inspection Line](https://jonas-paprotka.de/ref/table/20406-qlty-inspection-line/) Modify(true)

## AssistEditTest

[Line 735](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L735).

- [744](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L744) calls `GetFriendlyIdentifier`
- [749](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L749) calls [Table 20406 Qlty. Inspection Line](https://jonas-paprotka.de/ref/table/20406-qlty-inspection-line/) `AssistEditTestValue`
- [750](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L750) writes [Table 20406 Qlty. Inspection Line](https://jonas-paprotka.de/ref/table/20406-qlty-inspection-line/) Modify(true)

## UpdateResultFromLines

[Line 756](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L756).

- [765](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L765) raises `OnBeforeFindLineUpdateResultFromLines`, IsHandled
- [774](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L774) validates [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) `Result Code`
- [778](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L778) raises `OnAfterFindLineUpdateResultFromLines`

## InitInspectionNumber

[Line 784](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L784), internal.

- [791](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L791) calls [Table 20400 Qlty. Management Setup](https://jonas-paprotka.de/ref/table/20400-qlty-management-setup/) `GetRecordOnce`
- [793](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L793) calls [Codeunit 310 No. Series](https://jonas-paprotka.de/ref/codeunit/310-no-series/) `GetNextNo`

## SetIsCreating

[Line 800](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L800), internal.

- [802](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L802) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `SetSessionValue`
- [802](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L802) calls `GetIsCreatingKey`

## GetIsCreating

[Line 809](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L809), internal.

- [811](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L811) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `GetSessionValue`
- [811](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L811) calls `GetIsCreatingKey`

## AssignToSelf

[Line 826](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L826).

- [832](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L832) calls [Codeunit 20406 Qlty. Permission Mgmt.](https://jonas-paprotka.de/ref/codeunit/20406-qlty-permission-mgmt/) `VerifyCanChangeOtherInspections`

## ReopenInspection

[Line 840](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L840).

- [846](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L846) calls [Codeunit 20406 Qlty. Permission Mgmt.](https://jonas-paprotka.de/ref/codeunit/20406-qlty-permission-mgmt/) `VerifyCanReopenInspection`
- [847](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L847) calls `HasMoreRecentReinspection`
- [852](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L852) calls `GetFriendlyIdentifier`
- [852](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L852) calls [Codeunit 20437 Qlty. Notification Mgmt.](https://jonas-paprotka.de/ref/codeunit/20437-qlty-notification-mgmt/) `GetSourceSummaryText`
- [858](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L858) raises `OnBeforeReopenInspection`, IsHandled
- [864](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L864) validates [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) `Status`
- [865](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L865) writes [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) Modify(true)

## FinishInspection

[Line 874](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L874).

- [878](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L878) calls [Codeunit 20458 Qlty. Mgmt. Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/20458-qlty-mgmt-feature-telemetry/) `LogFeatureUsage`
- [880](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L880) calls `FinishInspectionAndPrompt`

## FinishInspectionAndPrompt

[Line 887](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L887), local.

- [894](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L894) calls [Codeunit 20406 Qlty. Permission Mgmt.](https://jonas-paprotka.de/ref/codeunit/20406-qlty-permission-mgmt/) `VerifyCanFinishInspection`
- [895](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L895) calls [Codeunit 20437 Qlty. Notification Mgmt.](https://jonas-paprotka.de/ref/codeunit/20437-qlty-notification-mgmt/) `GetSourceSummaryText`
- [897](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L897) calls `VerifyTrackingBeforeFinish`
- [901](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L901) calls `GetFriendlyIdentifier`
- [901](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L901) calls [Codeunit 20437 Qlty. Notification Mgmt.](https://jonas-paprotka.de/ref/codeunit/20437-qlty-notification-mgmt/) `GetSourceSummaryText`
- [907](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L907) raises `OnBeforeFinishInspection`, IsHandled
- [913](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L913) validates [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) `Status`
- [916](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L916) writes [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) Modify(true)

## VerifyTrackingBeforeFinish

[Line 925](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L925), internal.

- [938](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L938) calls `IsItemTrackingUsed`
- [951](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L951) calls `GetPostedInventory`
- [966](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L966) calls `GetReservedInventory`

## GetPostedInventory

[Line 985](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L985), internal.

- [993](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L993) calls `IsItemTrackingUsed`

## GetReservedInventory

[Line 1012](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1012), internal.

- [1020](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1020) calls `IsItemTrackingUsed`

## CreateReinspection

[Line 1049](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1049).

- [1055](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1055) calls [Codeunit 20406 Qlty. Permission Mgmt.](https://jonas-paprotka.de/ref/codeunit/20406-qlty-permission-mgmt/) `VerifyCanCreateReinspection`
- [1058](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1058) calls [Codeunit 20406 Qlty. Permission Mgmt.](https://jonas-paprotka.de/ref/codeunit/20406-qlty-permission-mgmt/) `CanFinishInspection`
- [1060](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1060) calls `GetFriendlyIdentifier`
- [1063](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1063) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`
- [1067](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1067) calls `FinishInspectionAndPrompt`
- [1069](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1069) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateReinspection`

## IsItemTrackingUsed

[Line 1089](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1089), internal.

- [1093](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1093) calls [Codeunit 20428 Qlty. Item Tracking](https://jonas-paprotka.de/ref/codeunit/20428-qlty-item-tracking/) `IsItemTrackingUsed`

## IsItemTrackingUsed

[Line 1101](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1101), internal.

- [1105](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1105) calls [Codeunit 20428 Qlty. Item Tracking](https://jonas-paprotka.de/ref/codeunit/20428-qlty-item-tracking/) `IsItemTrackingUsed`

## GetControlCaptionClass

[Line 1113](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1113), internal.

- [1115](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1115) calls [Codeunit 20408 Qlty. Traversal](https://jonas-paprotka.de/ref/codeunit/20408-qlty-traversal/) `GetControlCaptionClass`

## GetControlVisibleState

[Line 1123](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1123), internal.

- [1125](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1125) calls [Codeunit 20408 Qlty. Traversal](https://jonas-paprotka.de/ref/codeunit/20408-qlty-traversal/) `GetControlVisibleState`

## DetermineControlInformation

[Line 1132](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1132), internal.

- [1134](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1134) calls [Codeunit 20408 Qlty. Traversal](https://jonas-paprotka.de/ref/codeunit/20408-qlty-traversal/) `DetermineControlInformation`

## AssistEditLotNo

[Line 1140](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1140).

- [1153](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1153) calls [Codeunit 20428 Qlty. Item Tracking](https://jonas-paprotka.de/ref/codeunit/20428-qlty-item-tracking/) `IsItemTrackingUsed`
- [1157](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1157) calls [Codeunit 20406 Qlty. Permission Mgmt.](https://jonas-paprotka.de/ref/codeunit/20406-qlty-permission-mgmt/) `VerifyCanChangeItemTracking`
- [1165](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1165) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `SetTrackingFormModeFlag`
- [1180](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1180) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `SetStartingFromQualityManagementFlag`
- [1182](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1182) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `SetTrackingFormModeFlag`
- [1183](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1183) calls [Codeunit 6501 Item Tracking Data Collection](https://jonas-paprotka.de/ref/codeunit/6501-item-tracking-data-collection/) `AssistEditTrackingNo`
- [1184](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1184) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `GetTrackingFormModeFlag`
- [1185](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1185) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `GetTrackingFormFlagValueAllDocs`
- [1192](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1192) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `GetTrackingFormFlagValueSourceDoc`
- [1200](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1200) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `SetTrackingFormModeFlag`
- [1206](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1206) writes [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) Modify

## AssistEditPackageNo

[Line 1213](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1213).

- [1226](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1226) calls [Codeunit 20428 Qlty. Item Tracking](https://jonas-paprotka.de/ref/codeunit/20428-qlty-item-tracking/) `IsItemTrackingUsed`
- [1230](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1230) calls [Codeunit 20406 Qlty. Permission Mgmt.](https://jonas-paprotka.de/ref/codeunit/20406-qlty-permission-mgmt/) `VerifyCanChangeItemTracking`
- [1238](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1238) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `SetTrackingFormModeFlag`
- [1252](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1252) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `SetStartingFromQualityManagementFlag`
- [1253](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1253) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `SetTrackingFormModeFlag`
- [1254](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1254) calls [Codeunit 6501 Item Tracking Data Collection](https://jonas-paprotka.de/ref/codeunit/6501-item-tracking-data-collection/) `AssistEditTrackingNo`
- [1255](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1255) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `GetTrackingFormModeFlag`
- [1256](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1256) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `GetTrackingFormFlagValueAllDocs`
- [1263](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1263) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `GetTrackingFormFlagValueSourceDoc`
- [1271](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1271) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `SetTrackingFormModeFlag`
- [1277](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1277) writes [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) Modify

## AssistEditSerialNo

[Line 1284](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1284).

- [1297](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1297) calls [Codeunit 20428 Qlty. Item Tracking](https://jonas-paprotka.de/ref/codeunit/20428-qlty-item-tracking/) `IsItemTrackingUsed`
- [1301](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1301) calls [Codeunit 20406 Qlty. Permission Mgmt.](https://jonas-paprotka.de/ref/codeunit/20406-qlty-permission-mgmt/) `VerifyCanChangeItemTracking`
- [1309](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1309) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `SetTrackingFormModeFlag`
- [1320](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1320) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `SetStartingFromQualityManagementFlag`
- [1322](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1322) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `SetTrackingFormModeFlag`
- [1323](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1323) calls [Codeunit 6501 Item Tracking Data Collection](https://jonas-paprotka.de/ref/codeunit/6501-item-tracking-data-collection/) `AssistEditTrackingNo`
- [1324](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1324) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `GetTrackingFormModeFlag`
- [1325](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1325) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `GetTrackingFormFlagValueAllDocs`
- [1331](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1331) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `GetTrackingFormFlagValueSourceDoc`
- [1338](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1338) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `SetTrackingFormModeFlag`
- [1344](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1344) writes [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) Modify

## ProcessFinishInspection

[Line 1359](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1359), local.

- [1371](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1371) calls `CalculatePassFailQuantities`
- [1375](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1375) writes [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) Modify
- [1377](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1377) raises `OnInspectionFinished`
- [1379](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1379) calls [Codeunit 20426 Qlty. Start Workflow](https://jonas-paprotka.de/ref/codeunit/20426-qlty-start-workflow/) `StartWorkflowInspectionFinished`

## ProcessReopenInspection

[Line 1385](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1385), local.

- [1395](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1395) calls `ClearPassFailQuantities`
- [1397](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1397) writes [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) Modify
- [1399](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1399) raises `OnInspectionReopen`
- [1401](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1401) calls [Codeunit 20426 Qlty. Start Workflow](https://jonas-paprotka.de/ref/codeunit/20426-qlty-start-workflow/) `StartWorkflowInspectionReopens`

## SetRecordFiltersToFindInspectionFor

[Line 1412](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1412).

- [1419](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1419) raises `OnBeforeSetRecordFiltersToFindInspectionFor`, IsHandled
- [1423](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1423) calls [Codeunit 20599 Qlty. Misc Helpers](https://jonas-paprotka.de/ref/codeunit/20599-qlty-misc-helpers/) `GetRecordRefFromVariant`
- [1426](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1426) calls [Codeunit 20408 Qlty. Traversal](https://jonas-paprotka.de/ref/codeunit/20408-qlty-traversal/) `ApplySourceFields`
- [1457](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1457) raises `OnAfterSetRecordFiltersToFindInspectionFor`

## GetMostRecentInspectionFor

[Line 1465](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1465), internal.

- [1467](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1467) calls `SetRecordFiltersToFindInspectionFor`

## PrintCertificateOfAnalysis

[Line 1476](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1476), internal.

- [1480](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1480) calls [Codeunit 20440 Qlty. Report Mgmt.](https://jonas-paprotka.de/ref/codeunit/20440-qlty-report-mgmt/) `PrintCertificateOfAnalysis`

## PrintNonConformance

[Line 1486](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1486), internal.

- [1490](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1490) calls [Codeunit 20440 Qlty. Report Mgmt.](https://jonas-paprotka.de/ref/codeunit/20440-qlty-report-mgmt/) `PrintNonConformance`

## PrintGeneralPurposeInspection

[Line 1496](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1496), internal.

- [1500](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1500) calls [Codeunit 20440 Qlty. Report Mgmt.](https://jonas-paprotka.de/ref/codeunit/20440-qlty-report-mgmt/) `PrintGeneralPurposeInspection`

## SetPreventAutoAssignment

[Line 1570](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1570), internal.

- [1572](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1572) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `SetSessionValue`
- [1572](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1572) calls `GetPreventAutoAssignmentKey`

## GetPreventAutoAssignment

[Line 1579](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1579).

- [1583](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1583) calls [Codeunit 20430 Qlty. Session Helper](https://jonas-paprotka.de/ref/codeunit/20430-qlty-session-helper/) `GetSessionValue`
- [1583](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1583) calls `GetPreventAutoAssignmentKey`

## UpdateSampleSize

[Line 1600](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1600), local.

- [1615](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1615) calls [Codeunit 710 Math](https://jonas-paprotka.de/ref/codeunit/710-math/) `Truncate`
- [1620](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1620) validates [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) `Sample Size`
- [1622](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1622) validates [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) `Sample Size`
- [1627](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1627) calls `GetIsCreating`
- [1631](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1631) calls [Codeunit 710 Math](https://jonas-paprotka.de/ref/codeunit/710-math/) `Truncate`
- [1634](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1634) validates [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) `Sample Size`

## GetRelatedItem

[Line 1644](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1644).

- [1656](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1656) calls [Codeunit 20599 Qlty. Misc Helpers](https://jonas-paprotka.de/ref/codeunit/20599-qlty-misc-helpers/) `GetRecordRefFromVariant`
- [1659](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1659) calls [Codeunit 20408 Qlty. Traversal](https://jonas-paprotka.de/ref/codeunit/20408-qlty-traversal/) `FindRelatedItem`

## RunModalRelatedTransfers

[Line 1690](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1690), internal.

- [1694](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1694) calls [Page 20480 Qlty. Related Transfer Orders](https://jonas-paprotka.de/ref/page/20480-qlty-related-transfer-orders/) `InitializeWithInspection`

## GetResultStyle

[Line 1791](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1791), internal.

- [1800](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1800) calls [Table 20411 Qlty. Inspection Result](https://jonas-paprotka.de/ref/table/20411-qlty-inspection-result/) `GetResultStyle`

## TakeNewMostRecentPicture

[Line 1807](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1807), internal.

- [1813](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1813) calls `TestStatusOpen`
- [1815](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1815) calls [Table 20400 Qlty. Management Setup](https://jonas-paprotka.de/ref/table/20400-qlty-management-setup/) `GetRecordOnce`
- [1816](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1816) calls [Table 20400 Qlty. Management Setup](https://jonas-paprotka.de/ref/table/20400-qlty-management-setup/) `SanityCheckPictureAndCameraSettings`
- [1818](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1818) calls [Codeunit 1907 Camera](https://jonas-paprotka.de/ref/codeunit/1907-camera/) `IsAvailable`
- [1821](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1821) calls [Codeunit 1907 Camera](https://jonas-paprotka.de/ref/codeunit/1907-camera/) `GetPicture`
- [1831](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1831) calls `AddMostRecentPicture`
- [1832](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1832) calls `ProcessAdditionalPictureHandling`

## ImportMostRecentPicture

[Line 1838](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1838), internal.

- [1845](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1845) calls `TestStatusOpen`
- [1847](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1847) calls [Codeunit 20433 Qlty. File Import](https://jonas-paprotka.de/ref/codeunit/20433-qlty-file-import/) `PromptAndImportIntoInStream`
- [1851](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1851) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `GetFileName`
- [1855](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1855) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `GetFileName`
- [1856](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1856) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `GetExtension`
- [1859](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1859) calls `AddMostRecentPicture`
- [1860](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1860) calls `ProcessAdditionalPictureHandling`

## DeleteMostRecentPicture

[Line 1866](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1866), internal.

- [1869](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1869) writes [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) Modify(true)

## AddMostRecentPicture

[Line 1878](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1878), local.

- [1885](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1885) writes [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) Modify

## ProcessAdditionalPictureHandling

[Line 1895](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1895), local.

- [1901](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1901) calls [Table 20400 Qlty. Management Setup](https://jonas-paprotka.de/ref/table/20400-qlty-management-setup/) `GetRecordOnce`
- [1904](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1904) calls [Table 1173 Document Attachment](https://jonas-paprotka.de/ref/table/1173-document-attachment/) `SaveAttachmentFromStream`
- [1908](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1908) calls [Codeunit 9510 Document Service Management](https://jonas-paprotka.de/ref/codeunit/9510-document-service-management/) `IsConfigured`
- [1909](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/#L1909) calls [Codeunit 9510 Document Service Management](https://jonas-paprotka.de/ref/codeunit/9510-document-service-management/) `ShareWithOneDrive`

## Source

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

JOP-AL, 2026-11-20.
