{"title":"Codeunit 1026 Job Link Usage, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/1026-job-link-usage/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":1026,"name":"Job Link Usage","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/1026-job-link-usage/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/1026-job-link-usage/source/","path":"src/Layers/W1/BaseApp/Projects/Project/Job/JobLinkUsage.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:5402":{"name":"Unit of Measure Management","url":"https://jonas-paprotka.de/ref/codeunit/5402-unit-of-measure-management/"},"table:1020":{"name":"Job Usage Link","url":"https://jonas-paprotka.de/ref/table/1020-job-usage-link/"},"table:1003":{"name":"Job Planning Line","url":"https://jonas-paprotka.de/ref/table/1003-job-planning-line/"},"table:156":{"name":"Resource","url":"https://jonas-paprotka.de/ref/table/156-resource/"},"codeunit:1001":{"name":"Job Post-Line","url":"https://jonas-paprotka.de/ref/codeunit/1001-job-post-line/"}},"procs":[{"name":"ApplyUsage","line":40,"kind":"procedure","params":2,"steps":[[43,"call","MatchUsageUnspecified",2],[45,"call","MatchUsageSpecified",2],[47,"event","OnAfterApplyUsage",0]]},{"name":"MatchUsageUnspecified","line":50,"kind":"procedure","access":"local","params":2,"steps":[[62,"call","FindMatchingJobPlanningLine",2],[64,"event","OnMatchUsageUnspecifiedOnBeforeConfirm",0],[71,"call","CreateJobPlanningLine",3],[74,"event","OnMatchUsageUnspecifiedOnBeforeCheckPostedQty",1],[76,"ext","codeunit",5402,"CalcQtyFromBase",2],[82,"ext","table",1020,"Create",2],[87,"event","OnMatchUsageUnspecifiedOnAfterCalcMatchedQty",0],[91,"event","OnBeforeJobPlanningLineUse",0],[92,"ext","table",1003,"Use",5],[93,"ext","codeunit",5402,"CalcQtyFromBase",5],[98,"event","OnMatchUsageUnspecifiedOnAfterUpdateRemainingQtyToMatch",0]]},{"name":"MatchUsageSpecified","line":103,"kind":"procedure","access":"local","params":2,"steps":[[109,"event","OnBeforeMatchUsageSpecified",1],[117,"call","HandleMatchUsageSpecifiedJobPlanningLine",3],[119,"event","OnAfterMatchUsageSpecified",0]]},{"name":"HandleMatchUsageSpecifiedJobPlanningLine","line":122,"kind":"procedure","params":3,"steps":[[131,"call","AssembledQtyBase",1],[132,"call","AssembledQtyBase",1],[138,"event","OnBeforeHandleMatchUsageSpecifiedJobPlanningLine",0],[139,"ext","table",1003,"SetBypassQtyValidation",1],[141,"ext","codeunit",5402,"CalcQtyFromBase",5],[143,"event","HandleMatchUsageSpecifiedJobPlanningLineOnAfterCalcPartialJobPlanningLineQuantityPosting",0],[147,"event","OnHandleMatchUsageSpecifiedJobPlanningLineOnBeforeUpdateQuantity",0],[150,"validate",1003,"Quantity"],[151,"ext","codeunit",5402,"CalcQtyFromBase",5],[155,"ext","table",1003,"CopyTrackingFromJobLedgEntry",1],[156,"event","OnHandleMatchUsageSpecifiedJobPlanningLineOnBeforeJobPlanningLineUse",0],[157,"ext","table",1003,"Use",5],[158,"ext","codeunit",5402,"CalcQtyFromBase",5],[162,"event","OnHandleMatchUsageSpecifiedJobPlanningLineOnAfterJobPlanningLineUse",0],[163,"ext","table",1020,"Create",2]]},{"name":"FindMatchingJobPlanningLine","line":166,"kind":"procedure","params":2,"steps":[[183,"ext","table",156,"GetUnitOfMeasureFilter",2],[205,"event","OnFindMatchingJobPlanningLineOnBeforeMatchSpecificJobPlanningLine",0],[213,"event","OnFindMatchingJobPlanningLineOnBeforeMatchJobPlanningLineLocation",0],[238,"event","OnAfterFindMatchingJobPlanningLine",0]]},{"name":"CreateJobPlanningLine","line":242,"kind":"procedure","access":"local","params":3,"steps":[[248,"ext","codeunit",5402,"CalcQtyFromBase",5],[259,"ext","codeunit",1001,"InsertPlLineFromLedgEntry",1],[265,"validate",1003,"Usage Link"],[266,"validate",1003,"Quantity"],[267,"event","OnBeforeModifyJobPlanningLine",0],[268,"write",1003,"Modify"],[278,"validate",1003,"Quantity"],[279,"write",1003,"Modify"]]}]}