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

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

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

## HandleOnAfterPurchRcptLineInsert

[Line 56](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L56), local.

- [65](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L65) calls `DetectIsPreviewPosting`
- [68](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L68) calls [Table 20400 Qlty. Management Setup](https://jonas-paprotka.de/ref/table/20400-qlty-management-setup/) `GetSetupRecord`
- [71](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L71) calls `HasPurchaseOrderPostReceiveGenRule`
- [83](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L83) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `BeginBatch`
- [89](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L89) writes [Table 336 Tracking Specification](https://jonas-paprotka.de/ref/table/336-tracking-specification/) Insert
- [90](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L90) calls `AttemptCreateInspectionWithPurchaseLineAndTracking`
- [98](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L98) writes [Table 336 Tracking Specification](https://jonas-paprotka.de/ref/table/336-tracking-specification/) Insert
- [100](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L100) calls `AttemptCreateInspectionWithPurchaseLineAndTracking`
- [102](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L102) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `EndBatch`

## HandleOnPostWhseJnlLineOnBeforeWhseJnlRegisterLineRun

[Line 119](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L119), local.

- [121](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L121) calls `DetectIsPreviewPosting`
- [124](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L124) calls [Table 20400 Qlty. Management Setup](https://jonas-paprotka.de/ref/table/20400-qlty-management-setup/) `GetSetupRecord`
- [127](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L127) calls `HasWarehouseReceiptPostGenRule`
- [130](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L130) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `BeginBatch`
- [131](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L131) calls `AttemptCreateInspectionWithWhseJournalLine`
- [132](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L132) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `EndBatch`

## HandleOnAfterCreateRcptLineFromPurchLine

[Line 143](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L143), local.

- [147](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L147) calls `DetectIsPreviewPosting`
- [150](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L150) calls [Table 20400 Qlty. Management Setup](https://jonas-paprotka.de/ref/table/20400-qlty-management-setup/) `GetSetupRecord`
- [153](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L153) calls `HasWarehouseReceiptCreateGenRule`
- [157](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L157) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `BeginBatch`
- [158](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L158) calls `AttemptCreateInspectionWithReceiptLine`
- [159](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L159) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `EndBatch`

## HandleOnBeforePostItemTrackingLine

[Line 177](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L177), local.

- [191](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L191) calls `DetectIsPreviewPosting`
- [194](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L194) calls [Table 20400 Qlty. Management Setup](https://jonas-paprotka.de/ref/table/20400-qlty-management-setup/) `GetSetupRecord`
- [197](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L197) calls `HasSalesReturnOrderPostReceiveGenRule`
- [200](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L200) calls [Codeunit 20438 Qlty. Warehouse Integration](https://jonas-paprotka.de/ref/codeunit/20438-qlty-warehouse-integration/) `CollectSourceItemTracking`
- [202](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L202) raises `OnBeforeSalesReturnCreateInspectionWithSalesLine`, IsHandled
- [206](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L206) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `BeginBatch`
- [207](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L207) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `ConfigureForBatch`
- [211](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L211) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateInspectionWithMultiVariants`
- [213](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L213) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `GetCreatedInspection`
- [214](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L214) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `TrackCreatedInspection`
- [214](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L214) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `IsLastInspectionNewlyCreated`
- [218](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L218) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateInspectionWithMultiVariants`
- [220](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L220) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `GetCreatedInspection`
- [221](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L221) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `TrackCreatedInspection`
- [221](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L221) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `IsLastInspectionNewlyCreated`
- [223](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L223) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `EndBatch`
- [226](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L226) raises `OnAfterSalesReturnCreateInspectionWithSalesLine`

## HandleOnAfterInsertDirectTransLine

[Line 237](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L237), local.

- [241](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L241) calls `DetectIsPreviewPosting`
- [244](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L244) calls [Table 20400 Qlty. Management Setup](https://jonas-paprotka.de/ref/table/20400-qlty-management-setup/) `GetSetupRecord`
- [247](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L247) calls `HasTransferOrderPostReceiveGenRule`
- [250](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L250) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `BeginBatch`
- [251](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L251) calls `AttemptCreateInspectionWithReceiveTransferLine`
- [252](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L252) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `EndBatch`

## HandleOnAfterInsertTransRcptLine

[Line 264](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L264), local.

- [268](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L268) calls `DetectIsPreviewPosting`
- [271](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L271) calls [Table 20400 Qlty. Management Setup](https://jonas-paprotka.de/ref/table/20400-qlty-management-setup/) `GetSetupRecord`
- [274](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L274) calls `HasTransferOrderPostReceiveGenRule`
- [277](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L277) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `BeginBatch`
- [278](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L278) calls `AttemptCreateInspectionWithReceiveTransferLine`
- [279](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L279) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `EndBatch`

## HandleOnAfterReleasePurchDoc

[Line 291](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L291), local.

- [301](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L301) calls [Table 20400 Qlty. Management Setup](https://jonas-paprotka.de/ref/table/20400-qlty-management-setup/) `GetSetupRecord`
- [304](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L304) calls `HasPurchaseOrderReleaseGenRule`
- [307](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L307) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `BeginBatch`
- [316](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L316) calls [Table 39 Purchase Line](https://jonas-paprotka.de/ref/table/39-purchase-line/) `SetReservationFilters`
- [320](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L320) writes [Table 336 Tracking Specification](https://jonas-paprotka.de/ref/table/336-tracking-specification/) DeleteAll
- [321](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L321) calls [Table 336 Tracking Specification](https://jonas-paprotka.de/ref/table/336-tracking-specification/) `SetSourceFromReservEntry`
- [322](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L322) calls [Table 336 Tracking Specification](https://jonas-paprotka.de/ref/table/336-tracking-specification/) `CopyTrackingFromReservEntry`
- [324](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L324) writes [Table 336 Tracking Specification](https://jonas-paprotka.de/ref/table/336-tracking-specification/) Insert
- [325](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L325) calls `AttemptCreateInspectionWithPurchaseLineAndTracking`
- [329](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L329) calls `AttemptCreateInspectionWithPurchaseLineAndTracking`
- [333](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L333) calls `AttemptCreateInspectionWithPurchaseLineAndTracking`
- [336](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L336) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `EndBatch`

## AttemptCreateInspectionWithReceiptLine

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

- [356](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L356) raises `OnBeforeAttemptCreateInspectionWithReceiptLine`, IsHandled
- [360](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L360) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `ConfigureForBatch`
- [362](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L362) calls [Codeunit 20438 Qlty. Warehouse Integration](https://jonas-paprotka.de/ref/codeunit/20438-qlty-warehouse-integration/) `CollectSourceItemTracking`
- [367](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L367) writes [Table 20404 Qlty. Inspection Gen. Rule](https://jonas-paprotka.de/ref/table/20404-qlty-inspection-gen-rule/) DeleteAll
- [369](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L369) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateInspectionWithMultiVariants`
- [371](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L371) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `GetCreatedInspection`
- [372](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L372) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `TrackCreatedInspection`
- [372](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L372) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `IsLastInspectionNewlyCreated`
- [377](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L377) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateInspectionWithMultiVariants`
- [379](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L379) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `GetCreatedInspection`
- [380](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L380) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `TrackCreatedInspection`
- [380](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L380) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `IsLastInspectionNewlyCreated`
- [384](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L384) raises `OnAfterAttemptCreateInspectionWithReceiptLine`

## AttemptCreateInspectionWithWhseJournalLine

[Line 392](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L392), local.

- [404](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L404) raises `OnBeforePurchaseAttemptCreateInspectionWithWhseJournalLine`, IsHandled
- [408](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L408) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `ConfigureForBatch`
- [410](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L410) calls [Codeunit 20438 Qlty. Warehouse Integration](https://jonas-paprotka.de/ref/codeunit/20438-qlty-warehouse-integration/) `GetOptionalSourceVariantForWarehouseJournalLine`
- [411](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L411) calls [Codeunit 20438 Qlty. Warehouse Integration](https://jonas-paprotka.de/ref/codeunit/20438-qlty-warehouse-integration/) `CollectSourceItemTracking`
- [416](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L416) writes [Table 20404 Qlty. Inspection Gen. Rule](https://jonas-paprotka.de/ref/table/20404-qlty-inspection-gen-rule/) DeleteAll
- [418](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L418) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateInspectionWithMultiVariants`
- [420](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L420) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `GetCreatedInspection`
- [421](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L421) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `TrackCreatedInspection`
- [421](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L421) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `IsLastInspectionNewlyCreated`
- [426](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L426) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateInspectionWithMultiVariants`
- [428](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L428) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `GetCreatedInspection`
- [429](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L429) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `TrackCreatedInspection`
- [429](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L429) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `IsLastInspectionNewlyCreated`
- [433](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L433) raises `OnAfterPurchaseAttemptCreateInspectionWithWhseJournalLine`

## AttemptCreateInspectionWithPurchaseLineAndTracking

[Line 442](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L442), local.

- [451](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L451) raises `OnBeforePurchaseAttemptCreateInspectionWithPurchaseLine`, IsHandled
- [455](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L455) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `ConfigureForBatch`
- [458](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L458) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateInspectionWithMultiVariants`
- [460](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L460) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `GetCreatedInspection`
- [461](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L461) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `TrackCreatedInspection`
- [461](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L461) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `IsLastInspectionNewlyCreated`
- [464](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L464) raises `OnAfterPurchaseAttemptCreateInspectionWithPurchaseLine`

## AttemptCreateInspectionWithReceiveTransferLine

[Line 473](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L473), local.

- [485](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L485) raises `OnBeforeAttemptCreateInspectionWithInboundTransferLine`, IsHandled
- [489](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L489) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `ConfigureForBatch`
- [492](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L492) calls [Codeunit 20438 Qlty. Warehouse Integration](https://jonas-paprotka.de/ref/codeunit/20438-qlty-warehouse-integration/) `CollectSourceItemTracking`
- [496](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L496) writes [Table 20404 Qlty. Inspection Gen. Rule](https://jonas-paprotka.de/ref/table/20404-qlty-inspection-gen-rule/) DeleteAll
- [499](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L499) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateInspectionWithMultiVariants`
- [502](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L502) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateInspectionWithMultiVariants`
- [505](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L505) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `GetCreatedInspection`
- [506](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L506) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `TrackCreatedInspection`
- [506](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L506) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `IsLastInspectionNewlyCreated`
- [512](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L512) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateInspectionWithMultiVariants`
- [515](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L515) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `CreateInspectionWithMultiVariants`
- [518](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L518) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `GetCreatedInspection`
- [519](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L519) calls [Codeunit 20456 Qlty. Batch Notif. Helper](https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/) `TrackCreatedInspection`
- [519](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L519) calls [Codeunit 20404 Qlty. Inspection - Create](https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/) `IsLastInspectionNewlyCreated`
- [522](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L522) raises `OnAfterTransferAttemptCreateInspectionWithInboundTransferLine`

## DetectIsPreviewPosting

[Line 529](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L529), local.

- [533](https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/#L533) calls [Codeunit 19 Gen. Jnl.-Post Preview](https://jonas-paprotka.de/ref/codeunit/19-gen-jnl-post-preview/) `IsActive`

## Source

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

JOP-AL, 2026-11-20.
