---
title: "Codeunit 20407 Qlty. Manufactur. Integration, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/points/
object: https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/
app: "Quality Management"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/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 20407 Qlty. Manufactur. Integration, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/points/

13 procedures and triggers with a step in src/Apps/W1/Quality Management/app/src/Integration/Manufacturing/QltyManufacturIntegration.Codeunit.al, in source order, read from the text, not from a run.

## HandleOnAfterPostOutput

[Line 42](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L42), local.

- [50](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L50) calls [Table 20400 Qlty. Management Setup](https://jonas-paprotka.de/ref/table/20400-qlty-management-setup/) `GetSetupRecord`
- [75](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L75) raises `OnBeforeProductionHandleOnAfterPostOutput`, IsHandled
- [88](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L88) calls `HasProductionOutputPostGenRule`
- [91](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L91) calls `AttemptCreateInspectionPosting`

## HandleOnAfterChangeStatusOnProdOrder

[Line 106](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L106), local.

- [112](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L112) calls [Table 20400 Qlty. Management Setup](https://jonas-paprotka.de/ref/table/20400-qlty-management-setup/) `GetSetupRecord`
- [115](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L115) raises `OnBeforeProductionHandleOnAfterChangeStatusOnProdOrder`, IsHandled
- [120](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L120) calls `UpdateReferencesForProductionOrder`
- [125](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L125) calls `HasProductionOrderReleaseGenRule`
- [128](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L128) calls `AttemptCreateInspectionReleased`

## HandleOnAfterToProdOrderLineModify

[Line 139](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L139), local.

- [143](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L143) calls [Table 20400 Qlty. Management Setup](https://jonas-paprotka.de/ref/table/20400-qlty-management-setup/) `GetSetupRecord`
- [149](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L149) calls `UpdateReferencesForProductionOrderLine`

## HandleOnAfterToProdOrderRtngLineInsert

[Line 159](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L159), local.

- [163](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L163) calls [Table 20400 Qlty. Management Setup](https://jonas-paprotka.de/ref/table/20400-qlty-management-setup/) `GetSetupRecord`
- [169](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L169) calls `UpdateReferencesForProductionOrderRoutingLine`

## HandleOnAfterRefreshProdOrder

[Line 179](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L179), local.

- [190](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L190) calls [Table 20400 Qlty. Management Setup](https://jonas-paprotka.de/ref/table/20400-qlty-management-setup/) `GetSetupRecord`
- [193](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L193) calls `HasReleasedProductionOrderRefreshGenRule`
- [196](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L196) calls `AttemptCreateInspectionReleased`

## UpdateReferencesForProductionOrder

[Line 205](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L205), local.

- [233](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L233) calls `UpdateSourceDocumentForSpecificInspectionOnOrder`

## UpdateReferencesForProductionOrderLine

[Line 243](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L243), local.

- [271](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L271) calls `UpdateSourceDocumentForSpecificInspectionOnLine`

## UpdateReferencesForProductionOrderRoutingLine

[Line 281](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L281), local.

- [309](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L309) calls `UpdateSourceDocumentForSpecificInspectionOnOperation`

## UpdateSourceDocumentForSpecificInspectionOnOrder

[Line 320](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L320), local.

- [327](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L327) calls [Codeunit 20408 Qlty. Traversal](https://jonas-paprotka.de/ref/codeunit/20408-qlty-traversal/) `ApplySourceFields`
- [335](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L335) writes [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) Modify

## UpdateSourceDocumentForSpecificInspectionOnLine

[Line 345](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L345), local.

- [352](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L352) calls [Codeunit 20408 Qlty. Traversal](https://jonas-paprotka.de/ref/codeunit/20408-qlty-traversal/) `ApplySourceFields`
- [362](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L362) writes [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) Modify

## UpdateSourceDocumentForSpecificInspectionOnOperation

[Line 372](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L372), local.

- [379](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L379) calls [Codeunit 20408 Qlty. Traversal](https://jonas-paprotka.de/ref/codeunit/20408-qlty-traversal/) `ApplySourceFields`
- [389](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L389) writes [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) Modify

## AttemptCreateInspectionReleased

[Line 397](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L397), local.

- [416](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L416) raises `OnBeforeProductionAttemptCreateReleaseAutomaticInspection`, IsHandled
- [420](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L420) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `BeginBatch`
- [421](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L421) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `ConfigureForBatch`
- [426](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L426) calls [Codeunit 99000837 Prod. Order Line-Reserve](https://jonas-paprotka.de/ref/codeunit/99000837-prod-order-line-reserve/) `FindReservEntry`
- [438](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L438) writes [Table 336 Tracking Specification](https://jonas-paprotka.de/ref/table/336-tracking-specification/) DeleteAll
- [439](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L439) calls [Table 336 Tracking Specification](https://jonas-paprotka.de/ref/table/336-tracking-specification/) `SetSourceFromReservEntry`
- [440](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L440) calls [Table 336 Tracking Specification](https://jonas-paprotka.de/ref/table/336-tracking-specification/) `CopyTrackingFromReservEntry`
- [441](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L441) writes [Table 336 Tracking Specification](https://jonas-paprotka.de/ref/table/336-tracking-specification/) Insert
- [443](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L443) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateInspectionWithMultiVariants`
- [446](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L446) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `GetCreatedInspection`
- [448](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L448) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `TrackCreatedInspection`
- [448](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L448) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `IsLastInspectionNewlyCreated`
- [453](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L453) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateInspectionWithMultiVariants`
- [456](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L456) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `GetCreatedInspection`
- [458](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L458) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `TrackCreatedInspection`
- [458](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L458) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `IsLastInspectionNewlyCreated`
- [469](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L469) writes [Table 336 Tracking Specification](https://jonas-paprotka.de/ref/table/336-tracking-specification/) DeleteAll
- [470](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L470) calls [Table 336 Tracking Specification](https://jonas-paprotka.de/ref/table/336-tracking-specification/) `SetSourceFromReservEntry`
- [471](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L471) calls [Table 336 Tracking Specification](https://jonas-paprotka.de/ref/table/336-tracking-specification/) `CopyTrackingFromReservEntry`
- [472](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L472) writes [Table 336 Tracking Specification](https://jonas-paprotka.de/ref/table/336-tracking-specification/) Insert
- [474](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L474) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateInspectionWithMultiVariants`
- [477](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L477) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `GetCreatedInspection`
- [479](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L479) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `TrackCreatedInspection`
- [479](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L479) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `IsLastInspectionNewlyCreated`
- [485](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L485) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateInspectionWithMultiVariants`
- [487](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L487) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `GetCreatedInspection`
- [489](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L489) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `TrackCreatedInspection`
- [489](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L489) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `IsLastInspectionNewlyCreated`
- [496](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L496) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateInspectionWithMultiVariants`
- [498](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L498) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `GetCreatedInspection`
- [500](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L500) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `TrackCreatedInspection`
- [500](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L500) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `IsLastInspectionNewlyCreated`
- [504](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L504) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `EndBatch`
- [506](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L506) raises `OnAfterProductionAttemptCreateReleaseAutomaticInspection`

## AttemptCreateInspectionPosting

[Line 517](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L517), local.

- [525](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L525) raises `OnBeforeProductionAttemptCreatePostAutomaticInspection`, IsHandled
- [530](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L530) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateInspectionWithMultiVariants`
- [534](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L534) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateInspectionWithMultiVariants`
- [536](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L536) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateInspectionWithMultiVariants`
- [539](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L539) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `GetCreatedInspection`
- [541](https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/#L541) raises `OnAfterProductionAttemptCreateAutomaticInspection`

## Source

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

JOP-AL, 2026-11-20.
