{"title":"Codeunit 7002 Price Calculation - V16, events","url":"https://jonas-paprotka.de/ref/codeunit/7002-price-calculation-v16/events/","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-23","object":{"type":"codeunit","id":7002,"name":"Price Calculation - V16","app":"Base Application","versions":"17-29","url":"https://jonas-paprotka.de/ref/codeunit/7002-price-calculation-v16/","json":"https://jonas-paprotka.de/ref/codeunit/7002-price-calculation-v16.json"},"aspect":"events","total":15,"rows":[{"name":"OnAfterIsBetterLine","sig":"(Record Price List Line, Enum Price Amount Type, Record Price List Line, var Boolean)","named":"(PriceListLine: Record \"Price List Line\"; AmountType: Enum \"Price Amount Type\"; BestPriceListLine: Record \"Price List Line\"; var Result: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(PriceListLine: Record \"Price List Line\"; AmountType: Enum \"Price Amount Type\"; BestPriceListLine: Record \"Price List Line\"; var Result: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterPickBestLine","sig":"(Enum Price Amount Type, Record Price List Line, var Record Price List Line, var Boolean)","named":"(AmountType: Enum \"Price Amount Type\"; PriceListLine: Record \"Price List Line\"; var BestPriceListLine: Record \"Price List Line\"; var FoundBestLine: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(AmountType: Enum \"Price Amount Type\"; PriceListLine: Record \"Price List Line\"; var BestPriceListLine: Record \"Price List Line\"; var FoundBestLine: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeCalcBestAmount","sig":"(Enum Price Amount Type, var Codeunit Price Calculation Buffer Mgt., var Record Price List Line)","named":"(AmountType: Enum \"Price Amount Type\"; var PriceCalculationBufferMgt: Codeunit \"Price Calculation Buffer Mgt.\"; var PriceListLine: Record \"Price List Line\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(AmountType: Enum \"Price Amount Type\"; var PriceCalculationBufferMgt: Codeunit \"Price Calculation Buffer Mgt.\"; var PriceListLine: Record \"Price List Line\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnIsDisabled","sig":"(var Boolean)","named":"(var Disabled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(var Disabled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterIsDegradedLine","sig":"(Record Price List Line, Record Price List Line, var Boolean)","named":"(PriceListLine: Record \"Price List Line\"; BestPriceListLine: Record \"Price List Line\"; var Result: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"18-29","first":18,"last":29,"obsoleteSince":null,"spans":[{"from":18,"to":29,"named":"(PriceListLine: Record \"Price List Line\"; BestPriceListLine: Record \"Price List Line\"; var Result: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterIsImprovedLine","sig":"(Record Price List Line, Record Price List Line, var Boolean)","named":"(PriceListLine: Record \"Price List Line\"; BestPriceListLine: Record \"Price List Line\"; var Result: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"18-29","first":18,"last":29,"obsoleteSince":null,"spans":[{"from":18,"to":29,"named":"(PriceListLine: Record \"Price List Line\"; BestPriceListLine: Record \"Price List Line\"; var Result: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforePickBestLine","sig":"(Enum Price Amount Type, Record Price List Line, var Record Price List Line, var Boolean, var Boolean)","named":"(AmountType: Enum \"Price Amount Type\"; PriceListLine: Record \"Price List Line\"; var BestPriceListLine: Record \"Price List Line\"; var FoundBestLine: Boolean; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"19-29","first":19,"last":29,"obsoleteSince":null,"spans":[{"from":19,"to":29,"named":"(AmountType: Enum \"Price Amount Type\"; PriceListLine: Record \"Price List Line\"; var BestPriceListLine: Record \"Price List Line\"; var FoundBestLine: Boolean; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnFindLinesOnBefoerPriceSourceListGetMinMaxLevel","sig":"(var Codeunit Price Asset List, var Codeunit Price Source List, Enum Price Amount Type, var Codeunit Price Calculation Buffer Mgt.)","named":"(var PriceAssetList: Codeunit \"Price Asset List\"; var PriceSourceList: Codeunit \"Price Source List\"; AmountType: Enum \"Price Amount Type\"; var PriceCalculationBufferMgt: Codeunit \"Price Calculation Buffer Mgt.\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"19-21","first":19,"last":21,"obsoleteSince":null,"spans":[{"from":19,"to":21,"named":"(var PriceAssetList: Codeunit \"Price Asset List\"; var PriceSourceList: Codeunit \"Price Source List\"; AmountType: Enum \"Price Amount Type\"; var PriceCalculationBufferMgt: Codeunit \"Price Calculation Buffer Mgt.\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterCalcBestAmount","sig":"(Enum Price Amount Type, var Codeunit Price Calculation Buffer Mgt., var Record Price List Line)","named":"(AmountType: Enum \"Price Amount Type\"; var PriceCalculationBufferMgt: Codeunit \"Price Calculation Buffer Mgt.\"; var PriceListLine: Record \"Price List Line\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"20","first":20,"last":20,"obsoleteSince":null,"spans":[{"from":20,"to":20,"named":"(AmountType: Enum \"Price Amount Type\"; var PriceCalculationBufferMgt: Codeunit \"Price Calculation Buffer Mgt.\"; var PriceListLine: Record \"Price List Line\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeFindLines","sig":"(Enum Price Amount Type, var Record Price List Line, var Codeunit Price Calculation Buffer Mgt., Boolean, var Boolean, var Boolean)","named":"(AmountType: Enum \"Price Amount Type\"; var TempPriceListLine: Record \"Price List Line\" temporary; var PriceCalculationBufferMgt: Codeunit \"Price Calculation Buffer Mgt.\"; ShowAll: Boolean; var FoundLines: Boolean; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"21-29","first":21,"last":29,"obsoleteSince":null,"spans":[{"from":21,"to":29,"named":"(AmountType: Enum \"Price Amount Type\"; var TempPriceListLine: Record \"Price List Line\" temporary; var PriceCalculationBufferMgt: Codeunit \"Price Calculation Buffer Mgt.\"; ShowAll: Boolean; var FoundLines: Boolean; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterCalcBestAmount","sig":"(Enum Price Amount Type, var Codeunit Price Calculation Buffer Mgt., var Record Price List Line, var Boolean)","named":"(AmountType: Enum \"Price Amount Type\"; var PriceCalculationBufferMgt: Codeunit \"Price Calculation Buffer Mgt.\"; var PriceListLine: Record \"Price List Line\"; var FoundBestPrice: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"21-29","first":21,"last":29,"obsoleteSince":null,"spans":[{"from":21,"to":29,"named":"(AmountType: Enum \"Price Amount Type\"; var PriceCalculationBufferMgt: Codeunit \"Price Calculation Buffer Mgt.\"; var PriceListLine: Record \"Price List Line\"; var FoundBestPrice: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnFindLinesOnBefoerPriceSourceListGetMinMaxLevel","sig":"(var Codeunit Price Asset List, var Codeunit Price Source List, Enum Price Amount Type, var Codeunit Price Calculation Buffer Mgt., Boolean)","named":"(var PriceAssetList: Codeunit \"Price Asset List\"; var PriceSourceList: Codeunit \"Price Source List\"; AmountType: Enum \"Price Amount Type\"; var PriceCalculationBufferMgt: Codeunit \"Price Calculation Buffer Mgt.\"; ShowAll: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"22-29","first":22,"last":29,"obsoleteSince":null,"spans":[{"from":22,"to":29,"named":"(var PriceAssetList: Codeunit \"Price Asset List\"; var PriceSourceList: Codeunit \"Price Source List\"; AmountType: Enum \"Price Amount Type\"; var PriceCalculationBufferMgt: Codeunit \"Price Calculation Buffer Mgt.\"; ShowAll: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterFindLines","sig":"(Enum Price Amount Type, var Record Price List Line, var Codeunit Price Calculation Buffer Mgt., Boolean, var Boolean)","named":"(AmountType: Enum \"Price Amount Type\"; var TempPriceListLine: Record \"Price List Line\" temporary; var PriceCalculationBufferMgt: Codeunit \"Price Calculation Buffer Mgt.\"; ShowAll: Boolean; var FoundLines: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"22-29","first":22,"last":29,"obsoleteSince":null,"spans":[{"from":22,"to":29,"named":"(AmountType: Enum \"Price Amount Type\"; var TempPriceListLine: Record \"Price List Line\" temporary; var PriceCalculationBufferMgt: Codeunit \"Price Calculation Buffer Mgt.\"; ShowAll: Boolean; var FoundLines: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeShowPrices","sig":"(var Record Price List Line, Interface Line With Price)","named":"(var TempPriceListLine: Record \"Price List Line\"; LineWithPrice: Interface \"Line With Price\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"22-29","first":22,"last":29,"obsoleteSince":null,"spans":[{"from":22,"to":29,"named":"(var TempPriceListLine: Record \"Price List Line\"; LineWithPrice: Interface \"Line With Price\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnApplyDiscountOnBeforeFillBestLine","sig":"(var Record Price List Line, var Codeunit Price Calculation Buffer Mgt.)","named":"(var TempPriceListLine: Record \"Price List Line\" temporary; var PriceCalculationBufferMgt: Codeunit \"Price Calculation Buffer Mgt.\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"25-29","first":25,"last":29,"obsoleteSince":null,"spans":[{"from":25,"to":29,"named":"(var TempPriceListLine: Record \"Price List Line\" temporary; var PriceCalculationBufferMgt: Codeunit \"Price Calculation Buffer Mgt.\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]}]}