{"title":"Codeunit 8012 Price By Percent","url":"https://jonas-paprotka.de/ref/codeunit/8012-price-by-percent/","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","changedSince":"2026-09-22","source":{"feed":"https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json","package":"Microsoft.SubscriptionBilling.symbols.3099ffc7-4cf7-4df6-9b96-7e4bc2bb587c","build":"29.0.54011.55644","builds":{"26":"26.5.38752.40541","27":"27.5.46862.47359","28":"28.5.54151.54365","29":"29.0.54011.55644"},"code":{"28":{"url":"https://jonas-paprotka.de/ref/codeunit/8012-price-by-percent/source/?v=28","repo":"https://github.com/microsoft/BCApps","branch":"releases/28.x","commit":"408a4cc8d3a4c54b60464cc14c964479facb9ba0","path":"src/Apps/W1/Subscription Billing/App/Contract Price Update/Codeunits/PriceByPercent.Codeunit.al","license":"MIT"},"29":{"url":"https://jonas-paprotka.de/ref/codeunit/8012-price-by-percent/source/","repo":"https://github.com/microsoft/BCApps","branch":"releases/29.x","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","path":"src/Apps/W1/Subscription Billing/App/Contract Price Update/Codeunits/PriceByPercent.Codeunit.al","license":"MIT"}},"note":"Presence per major, highest build of each; 17 is the oldest major on the feed. Local procedures are not listed."},"object":{"type":"codeunit","id":8012,"name":"Price By Percent","app":"Subscription Billing","appByVersion":[{"app":"Subscription Billing","from":26}],"nameByVersion":[{"name":"Price By Percent","from":26}],"namespace":"Microsoft.SubscriptionBilling","versions":"26-29","majors":[26,27,28,29],"countries":["W1","DE","US"],"minors":{"W1":"26.0-29.0","DE":"26.0-29.0","US":"26.0-29.0"},"minorsUrl":"https://jonas-paprotka.de/ref/codeunit/8012-price-by-percent/editions.json","extends":null,"extendsUrl":null,"sourceTable":null,"properties":{"implements":["Contract Price Update"]},"extendedBy":[],"implementedBy":[],"sourceFile":"Contract Price Update/Codeunits/PriceByPercent.Codeunit.al","obsolete":null,"obsoleteSeenFrom":null,"byVersion":{"26":{"app":"Subscription Billing","name":"Price By Percent","ns":"Microsoft.SubscriptionBilling","obsolete":null,"target":"","sourceTable":"","props":{"access":"Internal","implements":["Contract Price Update"]},"counts":{"fields":0,"keys":0,"methods":4,"values":0},"stub":false},"27":{"app":"Subscription Billing","name":"Price By Percent","ns":"Microsoft.SubscriptionBilling","obsolete":null,"target":"","sourceTable":"","props":{"implements":["Contract Price Update"]},"counts":{"fields":0,"keys":0,"methods":5,"values":0},"stub":false},"28":{"app":"Subscription Billing","name":"Price By Percent","ns":"Microsoft.SubscriptionBilling","obsolete":null,"target":"","sourceTable":"","props":{"implements":["Contract Price Update"]},"counts":{"fields":0,"keys":0,"methods":5,"values":0},"stub":false},"29":{"app":"Subscription Billing","name":"Price By Percent","ns":"Microsoft.SubscriptionBilling","obsolete":null,"target":"","sourceTable":"","props":{"implements":["Contract Price Update"]},"counts":{"fields":0,"keys":0,"methods":5,"values":0},"stub":false}},"fields":[],"keys":[],"procedures":[{"name":"SetPriceUpdateParameters","sig":"(Record Price Update Template, Date, Date)","named":"(NewPriceUpdateTemplate: Record \"Price Update Template\"; NewIncludeServiceCommitmentUpToDate: Date; NewPerformUpdateOnDate: Date)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(NewPriceUpdateTemplate: Record \"Price Update Template\"; NewIncludeServiceCommitmentUpToDate: Date; NewPerformUpdateOnDate: Date)","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"ApplyFilterOnServiceCommitments","sig":"()","named":"()","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"()","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"CreatePriceUpdateProposal","sig":"()","named":"()","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"()","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"CalculateNewPrice","sig":"(Decimal, var Record Sub. Contr. Price Update Line)","named":"(UpdatePercentValue: Decimal; var NewContractPriceUpdateLine: Record \"Sub. Contr. Price Update Line\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(UpdatePercentValue: Decimal; var NewContractPriceUpdateLine: Record \"Sub. Contr. Price Update Line\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]}],"events":[{"name":"OnAfterCalculateNewPriceForSubscriptionLine","sig":"(Record Subscription Line, var Record Sub. Contr. Price Update Line, Record Price Update Template, Date)","named":"(SubscriptionLine: Record \"Subscription Line\"; var SubContrPriceUpdateLine: Record \"Sub. Contr. Price Update Line\"; PriceUpdateTemplate: Record \"Price Update Template\"; PerformUpdateOnDate: Date)","returns":"","kind":"integrationevent","access":"internal","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(SubscriptionLine: Record \"Subscription Line\"; var SubContrPriceUpdateLine: Record \"Sub. Contr. Price Update Line\"; PriceUpdateTemplate: Record \"Price Update Template\"; PerformUpdateOnDate: Date)","returns":"","kind":"integrationevent","access":"internal","obsolete":null}]}],"values":[],"controls":[],"actions":[]}}