{"title":"Codeunit 8013 Process Price Update, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/8013-process-price-update/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":8013,"name":"Process Price Update","app":"Subscription Billing","url":"https://jonas-paprotka.de/ref/codeunit/8013-process-price-update/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/8013-process-price-update/source/","path":"src/Apps/W1/Subscription Billing/App/Contract Price Update/Codeunits/ProcessPriceUpdate.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:8059":{"name":"Subscription Line","url":"https://jonas-paprotka.de/ref/table/8059-subscription-line/"},"table:8002":{"name":"Planned Subscription Line","url":"https://jonas-paprotka.de/ref/table/8002-planned-subscription-line/"}},"procs":[{"name":"OnRun","line":8,"kind":"trigger","steps":[[11,"call","UpdateServiceCommitmentPrices",0]]},{"name":"UpdateServiceCommitmentPrices","line":15,"kind":"procedure","access":"local","params":0,"steps":[[23,"call","ShouldPlannedServiceCommitmentBeCreated",1],[24,"call","CreatePlannedServiceCommitment",1],[26,"ext","table",8059,"UpdateServiceCommitmentFromContractPriceUpdateLine",1]]},{"name":"CreatePlannedServiceCommitment","line":29,"kind":"procedure","access":"local","params":1,"steps":[[35,"validate",8002,"Calculation Base %"],[36,"validate",8002,"Calculation Base Amount"],[37,"validate",8002,"Price"],[38,"validate",8002,"Amount"],[39,"validate",8002,"Discount %"],[40,"validate",8002,"Discount Amount"],[46,"write",8002,"Insert"]]},{"name":"ShouldPlannedServiceCommitmentBeCreated","line":49,"kind":"procedure","access":"local","params":1,"steps":[[53,"ext","table",8059,"UnpostedDocumentExists",0]]}]}