{"title":"Codeunit 20549 Subc. Change Prod.Order Status, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/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":20549,"name":"Subc. Change Prod.Order Status","app":"Subcontracting","url":"https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/","path":"src/Apps/W1/Subcontracting/App/src/WIPItem/SubcChangeProdOrderStatus.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/"},"page:99000882":{"name":"Change Status on Prod. Order","url":"https://jonas-paprotka.de/ref/page/99000882-change-status-on-prod-order/"},"codeunit:20541":{"name":"Subc. Transfer WIP Posting","url":"https://jonas-paprotka.de/ref/codeunit/20541-subc-transfer-wip-posting/"},"table:20560":{"name":"Subcontractor WIP Ledger Entry","url":"https://jonas-paprotka.de/ref/table/20560-subcontractor-wip-ledger-entry/"}},"procs":[{"name":"SetSubcontractingProductionOrderOnAfterSetSubcontractingWIPEntriesAffected","line":22,"kind":"procedure","access":"local","params":8,"steps":[[26,"ext","codeunit",20569,"IsSubcontractingEnabled",0],[30,"ext","page",99000882,"SubcSetOrder",1]]},{"name":"ChangeProdOrderStatusOnRunOnAfterChangeStatusFormRun","line":34,"kind":"procedure","access":"local","params":2,"steps":[[44,"ext","codeunit",20569,"IsSubcontractingEnabled",0],[48,"ext","page",99000882,"ReturnSubWIPQuantityCleanUp",0],[49,"ext","page",99000882,"ReturnPostingInfo",4],[50,"ext","codeunit",20541,"CreateAdjustmentWIPEntriesOnFinishProdOrder",2],[50,"ext","page",99000882,"SubcGetOrder",0]]},{"name":"ReopenWIPEntriesOnAfterTransferRelatedTablesToReleasedProdOrder","line":55,"kind":"procedure","access":"local","params":1,"steps":[[59,"ext","codeunit",20569,"IsSubcontractingEnabled",0],[63,"call","ReopenWIPEntries",1]]},{"name":"CheckForOpenTransferOrdersOnBeforeChangeStatusOnProdOrder","line":67,"kind":"procedure","access":"local","params":5,"steps":[[71,"ext","codeunit",20569,"IsSubcontractingEnabled",0],[76,"call","CheckForOpenTransferOrders",1]]},{"name":"UpdateWIPLedgerEntryProdOrderRelationOnAfterChangeStatus","line":80,"kind":"procedure","access":"local","params":7,"steps":[[84,"ext","codeunit",20569,"IsSubcontractingEnabled",0],[88,"call","UpdateWIPLedgerEntryProdOrderRelation",3]]},{"name":"ReopenWIPEntries","line":91,"kind":"procedure","access":"local","params":1,"steps":[[98,"write",20560,"ModifyAll"]]},{"name":"UpdateWIPLedgerEntryProdOrderRelation","line":115,"kind":"procedure","access":"local","params":3,"steps":[[119,"ext","table",20560,"SetProductionOrderFilter",2],[120,"write",20560,"ModifyAll"],[122,"write",20560,"ModifyAll"]]}]}