{"title":"Codeunit 7024 Job Planning Line - Price, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/7024-job-planning-line-price/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":7024,"name":"Job Planning Line - Price","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/7024-job-planning-line-price/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/7024-job-planning-line-price/source/","path":"src/Layers/W1/BaseApp/Projects/Project/Planning/JobPlanningLinePrice.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:7011":{"name":"Price Source List","url":"https://jonas-paprotka.de/ref/codeunit/7011-price-source-list/"},"codeunit:7008":{"name":"Price Calculation Buffer Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/7008-price-calculation-buffer-mgt/"},"table:7007":{"name":"Price Calculation Buffer","url":"https://jonas-paprotka.de/ref/table/7007-price-calculation-buffer/"},"table:7001":{"name":"Price List Line","url":"https://jonas-paprotka.de/ref/table/7001-price-list-line/"},"table:1003":{"name":"Job Planning Line","url":"https://jonas-paprotka.de/ref/table/1003-job-planning-line/"}},"procs":[{"name":"SetLine","line":31,"kind":"procedure","params":2,"steps":[[42,"call","AddSources",0]]},{"name":"SetSources","line":50,"kind":"procedure","params":1,"steps":[[52,"ext","codeunit",7011,"Copy",1]]},{"name":"IsPriceUpdateNeeded","line":71,"kind":"procedure","params":3,"steps":[[88,"event","OnAfterIsPriceUpdateNeeded",0]]},{"name":"SetAssetSourceForSetup","line":103,"kind":"procedure","params":1,"steps":[[113,"call","GetAssetType",0],[115,"ext","codeunit",7011,"GetSourceGroup",1]]},{"name":"SetAssetSource","line":118,"kind":"procedure","access":"local","params":1,"steps":[[121,"call","GetAssetType",0]]},{"name":"GetAssetType","line":126,"kind":"procedure","params":0,"steps":[[138,"event","OnAfterGetAssetType",0]]},{"name":"CopyToBuffer","line":141,"kind":"procedure","params":1,"steps":[[146,"call","SetAssetSource",1],[149,"call","FillBuffer",1],[150,"ext","codeunit",7008,"Set",2]]},{"name":"FillBuffer","line":154,"kind":"procedure","access":"local","params":1,"steps":[[180,"validate",7007,"Currency Code"],[190,"call","IsDiscountAllowed",0],[192,"event","OnAfterFillBuffer",0]]},{"name":"AddSources","line":195,"kind":"procedure","access":"local","params":0,"steps":[[202,"ext","codeunit",7011,"Init",0],[206,"ext","codeunit",7011,"Add",1],[208,"ext","codeunit",7011,"Add",2],[209,"ext","codeunit",7011,"Add",2],[212,"ext","codeunit",7011,"Add",2],[213,"ext","codeunit",7011,"Add",2],[215,"ext","codeunit",7011,"Add",2],[216,"ext","codeunit",7011,"Add",2],[219,"ext","codeunit",7011,"Add",1],[221,"ext","codeunit",7011,"AddJobAsSources",2],[223,"event","OnAfterAddSources",0]]},{"name":"SetPrice","line":226,"kind":"procedure","params":2,"steps":[[231,"event","OnBeforeSetPrice",1],[243,"ext","table",7001,"IsRealLine",0],[264,"event","OnAfterSetPrice",0]]},{"name":"ValidatePrice","line":267,"kind":"procedure","params":1,"steps":[[270,"validate",1003,"Line Discount %"],[274,"validate",1003,"Unit Price"],[278,"validate",1003,"Direct Unit Cost (LCY)"],[281,"validate",1003,"Direct Unit Cost (LCY)"],[282,"validate",1003,"Unit Cost (LCY)"],[285,"validate",1003,"Unit Cost"]]}]}