{"title":"Codeunit 20516 Subc. Req. Wksh. Make Ord., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/20516-subc-req-wksh-make-ord/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-22","object":{"type":"codeunit","id":20516,"name":"Subc. Req. Wksh. Make Ord.","app":"Subcontracting","url":"https://jonas-paprotka.de/ref/codeunit/20516-subc-req-wksh-make-ord/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/20516-subc-req-wksh-make-ord/source/","path":"src/Apps/W1/Subcontracting/App/src/Manufacturing/SubcReqWkshMakeOrd.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":{"codeunit:20569":{"name":"Subc. Feature Flag Handler","url":"https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/"},"codeunit:20508":{"name":"Subc. Price Management","url":"https://jonas-paprotka.de/ref/codeunit/20508-subc-price-management/"},"table:39":{"name":"Purchase Line","url":"https://jonas-paprotka.de/ref/table/39-purchase-line/"},"codeunit:20557":{"name":"Subc. Purchase Order Creator","url":"https://jonas-paprotka.de/ref/codeunit/20557-subc-purchase-order-creator/"}},"procs":[{"name":"OnAfterInsertPurchOrderLine","line":21,"kind":"procedure","access":"local","params":3,"steps":[[25,"ext","codeunit",20569,"IsSubcontractingEnabled",0],[29,"call","HandleSubcontractingAfterPurchOrderLineInsert",3]]},{"name":"OnAfterInitPurchOrderLine","line":33,"kind":"procedure","access":"local","params":2,"steps":[[37,"ext","codeunit",20569,"IsSubcontractingEnabled",0],[44,"call","SetSubcontractingPurchaseDates",2]]},{"name":"OnBeforeCopyOrderDateFromPurchHeader","line":48,"kind":"procedure","access":"local","params":4,"steps":[[52,"ext","codeunit",20569,"IsSubcontractingEnabled",0]]},{"name":"OnInsertPurchOrderLineOnAfterTransferFromReqLineToPurchLine","line":63,"kind":"procedure","access":"local","params":2,"steps":[[70,"ext","codeunit",20569,"IsSubcontractingEnabled",0],[77,"ext","codeunit",20508,"IsAutomaticSubcCostForReqLine",2],[80,"ext","codeunit",20508,"GetSubcPriceForPurchLine",1]]},{"name":"OnPurchOrderChgAndResheduleOnBeforePurchLineModify","line":84,"kind":"procedure","access":"local","params":2,"steps":[[88,"ext","codeunit",20569,"IsSubcontractingEnabled",0],[95,"call","SetSubcontractingPurchaseDates",2]]},{"name":"SetSubcontractingPurchaseDates","line":98,"kind":"procedure","access":"local","params":2,"steps":[[100,"validate",39,"Order Date"]]},{"name":"OnInsertPurchOrderLineOnAfterCheckInsertFinalizePurchaseOrderHeader","line":106,"kind":"procedure","access":"local","params":3,"steps":[[113,"ext","codeunit",20569,"IsSubcontractingEnabled",0],[121,"ext","codeunit",20557,"TransferSubcontractingProdOrderComp",3]]},{"name":"OnPurchOrderChgAndResheduleOnAfterGetPurchHeader","line":125,"kind":"procedure","access":"local","params":3,"steps":[[131,"ext","codeunit",20569,"IsSubcontractingEnabled",0],[135,"ext","codeunit",20557,"TransferSubcontractingProdOrderLineAttachments",2],[136,"call","UpdateSubcontractingComponentPurchLines",2]]},{"name":"HandleSubcontractingAfterPurchOrderLineInsert","line":139,"kind":"procedure","access":"local","params":3,"steps":[[144,"ext","codeunit",20557,"InsertProdDescriptionOnAfterInsertPurchOrderLine",2],[145,"ext","codeunit",20557,"TransferSubcontractingProdOrderLineAttachments",2],[146,"ext","codeunit",20557,"InsertSubcontractingProdOrderComments",3],[157,"write",39,"Modify"]]},{"name":"UpdateSubcontractingComponentPurchLines","line":162,"kind":"procedure","access":"local","params":2,"steps":[[197,"validate",39,"Quantity"],[198,"write",39,"Modify",1]]}]}