{"title":"Codeunit 20411 Qlty. Receiving Integration, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/points/","author":"JOP-AL","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/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":20411,"name":"Qlty. Receiving Integration","app":"Quality Management","url":"https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/20411-qlty-receiving-integration/source/","path":"src/Apps/W1/Quality Management/app/src/Integration/Receiving/QltyReceivingIntegration.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:20400":{"name":"Qlty. Management Setup","url":"https://jonas-paprotka.de/ref/table/20400-qlty-management-setup/"},"codeunit:20456":{"name":"Qlty. Batch Notif. Helper","url":"https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/"},"table:336":{"name":"Tracking Specification","url":"https://jonas-paprotka.de/ref/table/336-tracking-specification/"},"codeunit:20438":{"name":"Qlty. Warehouse Integration","url":"https://jonas-paprotka.de/ref/codeunit/20438-qlty-warehouse-integration/"},"codeunit:20404":{"name":"Qlty. Inspection - Create","url":"https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/"},"table:39":{"name":"Purchase Line","url":"https://jonas-paprotka.de/ref/table/39-purchase-line/"},"table:20404":{"name":"Qlty. Inspection Gen. Rule","url":"https://jonas-paprotka.de/ref/table/20404-qlty-inspection-gen-rule/"},"codeunit:19":{"name":"Gen. Jnl.-Post Preview","url":"https://jonas-paprotka.de/ref/codeunit/19-gen-jnl-post-preview/"}},"procs":[{"name":"HandleOnAfterPurchRcptLineInsert","line":56,"kind":"procedure","access":"local","params":12,"steps":[[65,"call","DetectIsPreviewPosting",0],[68,"ext","table",20400,"GetSetupRecord",0],[71,"call","HasPurchaseOrderPostReceiveGenRule",1],[83,"ext","codeunit",20456,"BeginBatch",0],[89,"write",336,"Insert"],[90,"call","AttemptCreateInspectionWithPurchaseLineAndTracking",3],[98,"write",336,"Insert"],[100,"call","AttemptCreateInspectionWithPurchaseLineAndTracking",3],[102,"ext","codeunit",20456,"EndBatch",0]]},{"name":"HandleOnPostWhseJnlLineOnBeforeWhseJnlRegisterLineRun","line":119,"kind":"procedure","access":"local","params":2,"steps":[[121,"call","DetectIsPreviewPosting",0],[124,"ext","table",20400,"GetSetupRecord",0],[127,"call","HasWarehouseReceiptPostGenRule",1],[130,"ext","codeunit",20456,"BeginBatch",0],[131,"call","AttemptCreateInspectionWithWhseJournalLine",2],[132,"ext","codeunit",20456,"EndBatch",0]]},{"name":"HandleOnAfterCreateRcptLineFromPurchLine","line":143,"kind":"procedure","access":"local","params":3,"steps":[[147,"call","DetectIsPreviewPosting",0],[150,"ext","table",20400,"GetSetupRecord",0],[153,"call","HasWarehouseReceiptCreateGenRule",1],[157,"ext","codeunit",20456,"BeginBatch",0],[158,"call","AttemptCreateInspectionWithReceiptLine",3],[159,"ext","codeunit",20456,"EndBatch",0]]},{"name":"HandleOnBeforePostItemTrackingLine","line":177,"kind":"procedure","access":"local","params":10,"steps":[[191,"call","DetectIsPreviewPosting",0],[194,"ext","table",20400,"GetSetupRecord",0],[197,"call","HasSalesReturnOrderPostReceiveGenRule",1],[200,"ext","codeunit",20438,"CollectSourceItemTracking",2],[202,"event","OnBeforeSalesReturnCreateInspectionWithSalesLine",1],[206,"ext","codeunit",20456,"BeginBatch",0],[207,"ext","codeunit",20456,"ConfigureForBatch",1],[211,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[213,"ext","codeunit",20404,"GetCreatedInspection",1],[214,"ext","codeunit",20456,"TrackCreatedInspection",2],[214,"ext","codeunit",20404,"IsLastInspectionNewlyCreated",0],[218,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[220,"ext","codeunit",20404,"GetCreatedInspection",1],[221,"ext","codeunit",20456,"TrackCreatedInspection",2],[221,"ext","codeunit",20404,"IsLastInspectionNewlyCreated",0],[223,"ext","codeunit",20456,"EndBatch",0],[226,"event","OnAfterSalesReturnCreateInspectionWithSalesLine",0]]},{"name":"HandleOnAfterInsertDirectTransLine","line":237,"kind":"procedure","access":"local","params":3,"steps":[[241,"call","DetectIsPreviewPosting",0],[244,"ext","table",20400,"GetSetupRecord",0],[247,"call","HasTransferOrderPostReceiveGenRule",1],[250,"ext","codeunit",20456,"BeginBatch",0],[251,"call","AttemptCreateInspectionWithReceiveTransferLine",3],[252,"ext","codeunit",20456,"EndBatch",0]]},{"name":"HandleOnAfterInsertTransRcptLine","line":264,"kind":"procedure","access":"local","params":4,"steps":[[268,"call","DetectIsPreviewPosting",0],[271,"ext","table",20400,"GetSetupRecord",0],[274,"call","HasTransferOrderPostReceiveGenRule",1],[277,"ext","codeunit",20456,"BeginBatch",0],[278,"call","AttemptCreateInspectionWithReceiveTransferLine",3],[279,"ext","codeunit",20456,"EndBatch",0]]},{"name":"HandleOnAfterReleasePurchDoc","line":291,"kind":"procedure","access":"local","params":4,"steps":[[301,"ext","table",20400,"GetSetupRecord",0],[304,"call","HasPurchaseOrderReleaseGenRule",1],[307,"ext","codeunit",20456,"BeginBatch",0],[316,"ext","table",39,"SetReservationFilters",1],[320,"write",336,"DeleteAll"],[321,"ext","table",336,"SetSourceFromReservEntry",1],[322,"ext","table",336,"CopyTrackingFromReservEntry",1],[324,"write",336,"Insert"],[325,"call","AttemptCreateInspectionWithPurchaseLineAndTracking",3],[329,"call","AttemptCreateInspectionWithPurchaseLineAndTracking",3],[333,"call","AttemptCreateInspectionWithPurchaseLineAndTracking",3],[336,"ext","codeunit",20456,"EndBatch",0]]},{"name":"AttemptCreateInspectionWithReceiptLine","line":345,"kind":"procedure","access":"local","params":3,"steps":[[356,"event","OnBeforeAttemptCreateInspectionWithReceiptLine",1],[360,"ext","codeunit",20456,"ConfigureForBatch",1],[362,"ext","codeunit",20438,"CollectSourceItemTracking",2],[367,"write",20404,"DeleteAll"],[369,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[371,"ext","codeunit",20404,"GetCreatedInspection",1],[372,"ext","codeunit",20456,"TrackCreatedInspection",2],[372,"ext","codeunit",20404,"IsLastInspectionNewlyCreated",0],[377,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[379,"ext","codeunit",20404,"GetCreatedInspection",1],[380,"ext","codeunit",20456,"TrackCreatedInspection",2],[380,"ext","codeunit",20404,"IsLastInspectionNewlyCreated",0],[384,"event","OnAfterAttemptCreateInspectionWithReceiptLine",0]]},{"name":"AttemptCreateInspectionWithWhseJournalLine","line":392,"kind":"procedure","access":"local","params":2,"steps":[[404,"event","OnBeforePurchaseAttemptCreateInspectionWithWhseJournalLine",1],[408,"ext","codeunit",20456,"ConfigureForBatch",1],[410,"ext","codeunit",20438,"GetOptionalSourceVariantForWarehouseJournalLine",2],[411,"ext","codeunit",20438,"CollectSourceItemTracking",2],[416,"write",20404,"DeleteAll"],[418,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[420,"ext","codeunit",20404,"GetCreatedInspection",1],[421,"ext","codeunit",20456,"TrackCreatedInspection",2],[421,"ext","codeunit",20404,"IsLastInspectionNewlyCreated",0],[426,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[428,"ext","codeunit",20404,"GetCreatedInspection",1],[429,"ext","codeunit",20456,"TrackCreatedInspection",2],[429,"ext","codeunit",20404,"IsLastInspectionNewlyCreated",0],[433,"event","OnAfterPurchaseAttemptCreateInspectionWithWhseJournalLine",0]]},{"name":"AttemptCreateInspectionWithPurchaseLineAndTracking","line":442,"kind":"procedure","access":"local","params":3,"steps":[[451,"event","OnBeforePurchaseAttemptCreateInspectionWithPurchaseLine",1],[455,"ext","codeunit",20456,"ConfigureForBatch",1],[458,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[460,"ext","codeunit",20404,"GetCreatedInspection",1],[461,"ext","codeunit",20456,"TrackCreatedInspection",2],[461,"ext","codeunit",20404,"IsLastInspectionNewlyCreated",0],[464,"event","OnAfterPurchaseAttemptCreateInspectionWithPurchaseLine",0]]},{"name":"AttemptCreateInspectionWithReceiveTransferLine","line":473,"kind":"procedure","access":"local","params":3,"steps":[[485,"event","OnBeforeAttemptCreateInspectionWithInboundTransferLine",1],[489,"ext","codeunit",20456,"ConfigureForBatch",1],[492,"ext","codeunit",20438,"CollectSourceItemTracking",2],[496,"write",20404,"DeleteAll"],[499,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[502,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[505,"ext","codeunit",20404,"GetCreatedInspection",1],[506,"ext","codeunit",20456,"TrackCreatedInspection",2],[506,"ext","codeunit",20404,"IsLastInspectionNewlyCreated",0],[512,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[515,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[518,"ext","codeunit",20404,"GetCreatedInspection",1],[519,"ext","codeunit",20456,"TrackCreatedInspection",2],[519,"ext","codeunit",20404,"IsLastInspectionNewlyCreated",0],[522,"event","OnAfterTransferAttemptCreateInspectionWithInboundTransferLine",0]]},{"name":"DetectIsPreviewPosting","line":529,"kind":"procedure","access":"local","params":0,"steps":[[533,"ext","codeunit",19,"IsActive",0]]}]}