{"title":"Codeunit 20407 Qlty. Manufactur. Integration, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-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":20407,"name":"Qlty. Manufactur. Integration","app":"Quality Management","url":"https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/20407-qlty-manufactur-integration/source/","path":"src/Apps/W1/Quality Management/app/src/Integration/Manufacturing/QltyManufacturIntegration.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:20408":{"name":"Qlty. Traversal","url":"https://jonas-paprotka.de/ref/codeunit/20408-qlty-traversal/"},"table:20405":{"name":"Qlty. Inspection Header","url":"https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/"},"codeunit:20456":{"name":"Qlty. Batch Notif. Helper","url":"https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/"},"codeunit:99000837":{"name":"Prod. Order Line-Reserve","url":"https://jonas-paprotka.de/ref/codeunit/99000837-prod-order-line-reserve/"},"table:336":{"name":"Tracking Specification","url":"https://jonas-paprotka.de/ref/table/336-tracking-specification/"},"codeunit:20404":{"name":"Qlty. Inspection - Create","url":"https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/"}},"procs":[{"name":"HandleOnAfterPostOutput","line":42,"kind":"procedure","access":"local","params":3,"steps":[[50,"ext","table",20400,"GetSetupRecord",0],[75,"event","OnBeforeProductionHandleOnAfterPostOutput",1],[88,"call","HasProductionOutputPostGenRule",1],[91,"call","AttemptCreateInspectionPosting",5]]},{"name":"HandleOnAfterChangeStatusOnProdOrder","line":106,"kind":"procedure","access":"local","params":7,"steps":[[112,"ext","table",20400,"GetSetupRecord",0],[115,"event","OnBeforeProductionHandleOnAfterChangeStatusOnProdOrder",1],[120,"call","UpdateReferencesForProductionOrder",2],[125,"call","HasProductionOrderReleaseGenRule",1],[128,"call","AttemptCreateInspectionReleased",2]]},{"name":"HandleOnAfterToProdOrderLineModify","line":139,"kind":"procedure","access":"local","params":3,"steps":[[143,"ext","table",20400,"GetSetupRecord",0],[149,"call","UpdateReferencesForProductionOrderLine",2]]},{"name":"HandleOnAfterToProdOrderRtngLineInsert","line":159,"kind":"procedure","access":"local","params":2,"steps":[[163,"ext","table",20400,"GetSetupRecord",0],[169,"call","UpdateReferencesForProductionOrderRoutingLine",2]]},{"name":"HandleOnAfterRefreshProdOrder","line":179,"kind":"procedure","access":"local","params":2,"steps":[[190,"ext","table",20400,"GetSetupRecord",0],[193,"call","HasReleasedProductionOrderRefreshGenRule",1],[196,"call","AttemptCreateInspectionReleased",2]]},{"name":"UpdateReferencesForProductionOrder","line":205,"kind":"procedure","access":"local","params":2,"steps":[[233,"call","UpdateSourceDocumentForSpecificInspectionOnOrder",4]]},{"name":"UpdateReferencesForProductionOrderLine","line":243,"kind":"procedure","access":"local","params":2,"steps":[[271,"call","UpdateSourceDocumentForSpecificInspectionOnLine",4]]},{"name":"UpdateReferencesForProductionOrderRoutingLine","line":281,"kind":"procedure","access":"local","params":2,"steps":[[309,"call","UpdateSourceDocumentForSpecificInspectionOnOperation",4]]},{"name":"UpdateSourceDocumentForSpecificInspectionOnOrder","line":320,"kind":"procedure","access":"local","params":4,"steps":[[327,"ext","codeunit",20408,"ApplySourceFields",4],[335,"write",20405,"Modify"]]},{"name":"UpdateSourceDocumentForSpecificInspectionOnLine","line":345,"kind":"procedure","access":"local","params":4,"steps":[[352,"ext","codeunit",20408,"ApplySourceFields",4],[362,"write",20405,"Modify"]]},{"name":"UpdateSourceDocumentForSpecificInspectionOnOperation","line":372,"kind":"procedure","access":"local","params":4,"steps":[[379,"ext","codeunit",20408,"ApplySourceFields",4],[389,"write",20405,"Modify"]]},{"name":"AttemptCreateInspectionReleased","line":397,"kind":"procedure","access":"local","params":2,"steps":[[416,"event","OnBeforeProductionAttemptCreateReleaseAutomaticInspection",1],[420,"ext","codeunit",20456,"BeginBatch",0],[421,"ext","codeunit",20456,"ConfigureForBatch",1],[426,"ext","codeunit",99000837,"FindReservEntry",2],[438,"write",336,"DeleteAll"],[439,"ext","table",336,"SetSourceFromReservEntry",1],[440,"ext","table",336,"CopyTrackingFromReservEntry",1],[441,"write",336,"Insert"],[443,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[446,"ext","codeunit",20404,"GetCreatedInspection",1],[448,"ext","codeunit",20456,"TrackCreatedInspection",2],[448,"ext","codeunit",20404,"IsLastInspectionNewlyCreated",0],[453,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[456,"ext","codeunit",20404,"GetCreatedInspection",1],[458,"ext","codeunit",20456,"TrackCreatedInspection",2],[458,"ext","codeunit",20404,"IsLastInspectionNewlyCreated",0],[469,"write",336,"DeleteAll"],[470,"ext","table",336,"SetSourceFromReservEntry",1],[471,"ext","table",336,"CopyTrackingFromReservEntry",1],[472,"write",336,"Insert"],[474,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[477,"ext","codeunit",20404,"GetCreatedInspection",1],[479,"ext","codeunit",20456,"TrackCreatedInspection",2],[479,"ext","codeunit",20404,"IsLastInspectionNewlyCreated",0],[485,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[487,"ext","codeunit",20404,"GetCreatedInspection",1],[489,"ext","codeunit",20456,"TrackCreatedInspection",2],[489,"ext","codeunit",20404,"IsLastInspectionNewlyCreated",0],[496,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[498,"ext","codeunit",20404,"GetCreatedInspection",1],[500,"ext","codeunit",20456,"TrackCreatedInspection",2],[500,"ext","codeunit",20404,"IsLastInspectionNewlyCreated",0],[504,"ext","codeunit",20456,"EndBatch",0],[506,"event","OnAfterProductionAttemptCreateReleaseAutomaticInspection",0]]},{"name":"AttemptCreateInspectionPosting","line":517,"kind":"procedure","access":"local","params":5,"steps":[[525,"event","OnBeforeProductionAttemptCreatePostAutomaticInspection",1],[530,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[534,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[536,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[539,"ext","codeunit",20404,"GetCreatedInspection",1],[541,"event","OnAfterProductionAttemptCreateAutomaticInspection",0]]}]}