{"title":"Codeunit 20438 Qlty. Warehouse Integration, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/20438-qlty-warehouse-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":20438,"name":"Qlty. Warehouse Integration","app":"Quality Management","url":"https://jonas-paprotka.de/ref/codeunit/20438-qlty-warehouse-integration/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/20438-qlty-warehouse-integration/source/","path":"src/Apps/W1/Quality Management/app/src/Integration/Warehouse/QltyWarehouseIntegration.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/"},"table:336":{"name":"Tracking Specification","url":"https://jonas-paprotka.de/ref/table/336-tracking-specification/"},"codeunit:20456":{"name":"Qlty. Batch Notif. Helper","url":"https://jonas-paprotka.de/ref/codeunit/20456-qlty-batch-notif-helper/"},"codeunit:20404":{"name":"Qlty. Inspection - Create","url":"https://jonas-paprotka.de/ref/codeunit/20404-qlty-inspection-create/"},"codeunit:20599":{"name":"Qlty. Misc Helpers","url":"https://jonas-paprotka.de/ref/codeunit/20599-qlty-misc-helpers/"},"codeunit:99000834":{"name":"Purch. Line-Reserve","url":"https://jonas-paprotka.de/ref/codeunit/99000834-purch-line-reserve/"},"codeunit:99000836":{"name":"Transfer Line-Reserve","url":"https://jonas-paprotka.de/ref/codeunit/99000836-transfer-line-reserve/"},"codeunit:99000832":{"name":"Sales Line-Reserve","url":"https://jonas-paprotka.de/ref/codeunit/99000832-sales-line-reserve/"}},"procs":[{"name":"HandleOnAfterInsertWhseEntry","line":32,"kind":"procedure","access":"local","params":2,"steps":[[40,"ext","table",20400,"GetSetupRecord",0],[43,"call","HasWhseMovementRegisterGenRule",1],[46,"call","AttemptCreateInspectionWithWhseJournalLine",3]]},{"name":"AttemptCreateInspectionWithWhseJournalLine","line":68,"kind":"procedure","access":"local","params":3,"steps":[[79,"event","OnBeforeWarehouseAttemptCreateInspectionWithWhseJournalLine",1],[89,"write",336,"Insert"],[91,"call","GetOptionalSourceVariantForWarehouseJournalLine",2],[92,"call","CollectSourceItemTracking",2],[94,"ext","codeunit",20456,"BeginBatch",0],[95,"ext","codeunit",20456,"ConfigureForBatch",1],[100,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[102,"ext","codeunit",20404,"GetCreatedInspection",1],[103,"ext","codeunit",20456,"TrackCreatedInspection",2],[103,"ext","codeunit",20404,"IsLastInspectionNewlyCreated",0],[107,"ext","codeunit",20404,"CreateInspectionWithMultiVariants",6],[109,"ext","codeunit",20404,"GetCreatedInspection",1],[110,"ext","codeunit",20456,"TrackCreatedInspection",2],[110,"ext","codeunit",20404,"IsLastInspectionNewlyCreated",0],[112,"ext","codeunit",20456,"EndBatch",0],[114,"event","OnAfterWarehouseAttemptCreateInspectionWithWhseJournalLine",0]]},{"name":"GetOptionalSourceVariantForWarehouseJournalLine","line":123,"kind":"procedure","access":"internal","params":2,"steps":[[130,"event","OnBeforeGetOptionalSourceVariantForWarehouseJournalLine",1]]},{"name":"CollectSourceItemTracking","line":158,"kind":"procedure","access":"internal","params":2,"steps":[[170,"write",336,"DeleteAll"],[172,"ext","codeunit",20599,"GetRecordRefFromVariant",2],[177,"ext","codeunit",99000834,"FindReservEntry",2],[179,"ext","codeunit",99000836,"FindInboundReservEntry",2],[181,"ext","codeunit",99000832,"FindReservEntry",2],[193,"ext","table",336,"SetSourceFromReservEntry",1],[194,"ext","table",336,"CopyTrackingFromReservEntry",1],[195,"write",336,"Insert"]]}]}