{"title":"Codeunit 7002 Price Calculation - V16, procedures","url":"https://jonas-paprotka.de/ref/codeunit/7002-price-calculation-v16/procedures/","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":"procedures","total":21,"rows":[{"name":"GetLine","sig":"(var Variant)","named":"(var Line: Variant)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(var Line: Variant)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"Init","sig":"(Interface Line With Price, Record Price Calculation Setup)","named":"(NewLineWithPrice: Interface \"Line With Price\"; PriceCalculationSetup: Record \"Price Calculation Setup\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(NewLineWithPrice: Interface \"Line With Price\"; PriceCalculationSetup: Record \"Price Calculation Setup\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"ApplyDiscount","sig":"()","named":"()","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"()","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"ApplyPrice","sig":"(Integer)","named":"(CalledByFieldNo: Integer)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(CalledByFieldNo: Integer)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"CountDiscount","sig":"(Boolean)","named":"(ShowAll: Boolean)","returns":"Integer","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(ShowAll: Boolean)","returns":"Integer","kind":"procedure","access":"public","obsolete":null}]},{"name":"CountPrice","sig":"(Boolean)","named":"(ShowAll: Boolean)","returns":"Integer","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(ShowAll: Boolean)","returns":"Integer","kind":"procedure","access":"public","obsolete":null}]},{"name":"FindDiscount","sig":"(var Record Price List Line, Boolean)","named":"(var TempPriceListLine: Record \"Price List Line\"; ShowAll: Boolean)","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(var TempPriceListLine: Record \"Price List Line\"; ShowAll: Boolean)","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"FindPrice","sig":"(var Record Price List Line, Boolean)","named":"(var TempPriceListLine: Record \"Price List Line\"; ShowAll: Boolean)","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(var TempPriceListLine: Record \"Price List Line\"; ShowAll: Boolean)","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"IsDiscountExists","sig":"(Boolean)","named":"(ShowAll: Boolean)","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(ShowAll: Boolean)","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"IsPriceExists","sig":"(Boolean)","named":"(ShowAll: Boolean)","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(ShowAll: Boolean)","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"PickDiscount","sig":"()","named":"()","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"()","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"PickPrice","sig":"()","named":"()","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"()","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"ShowPrices","sig":"(var Record Price List Line)","named":"(var TempPriceListLine: Record \"Price List Line\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(var TempPriceListLine: Record \"Price List Line\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"IsBetterLine","sig":"(var Record Price List Line, Enum Price Amount Type, Record Price List Line)","named":"(var PriceListLine: Record \"Price List Line\"; AmountType: Enum \"Price Amount Type\"; BestPriceListLine: Record \"Price List Line\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(var PriceListLine: Record \"Price List Line\"; AmountType: Enum \"Price Amount Type\"; BestPriceListLine: Record \"Price List Line\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"AmountTypeFromPriceType","sig":"(Enum Price Type)","named":"(PriceType: Enum \"Price Type\")","returns":"Enum Price Amount Type","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"AmountType::Cost is replaced by the combination of AmountType::Price with PriceType::Purchase.","tag":"17.0"},"range":"17-24","first":17,"last":24,"obsoleteSince":17,"spans":[{"from":17,"to":24,"named":"(PriceType: Enum \"Price Type\")","returns":"Enum Price Amount Type","kind":"procedure","access":"public","obsolete":{"state":"Pending","reason":"AmountType::Cost is replaced by the combination of AmountType::Price with PriceType::Purchase.","tag":"17.0"}}]},{"name":"FindLines","sig":"(Enum Price Amount Type, var Record Price List Line, var Codeunit Price Calculation Buffer Mgt., Boolean)","named":"(AmountType: Enum \"Price Amount Type\"; var TempPriceListLine: Record \"Price List Line\" temporary; var PriceCalculationBufferMgt: Codeunit \"Price Calculation Buffer Mgt.\"; ShowAll: Boolean)","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(AmountType: Enum \"Price Amount Type\"; var TempPriceListLine: Record \"Price List Line\" temporary; var PriceCalculationBufferMgt: Codeunit \"Price Calculation Buffer Mgt.\"; ShowAll: Boolean)","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"CopyLinesBySource","sig":"(var Record Price List Line, Record Price Source, var Codeunit Price Asset List, var Record Price List Line)","named":"(var PriceListLine: Record \"Price List Line\"; PriceSource: Record \"Price Source\"; var PriceAssetList: Codeunit \"Price Asset List\"; var TempPriceListLine: Record \"Price List Line\" temporary)","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(var PriceListLine: Record \"Price List Line\"; PriceSource: Record \"Price Source\"; var PriceAssetList: Codeunit \"Price Asset List\"; var TempPriceListLine: Record \"Price List Line\" temporary)","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"CopyLinesBySource","sig":"(var Record Price List Line, Record Price Source, Record Price Asset, var Record Price List Line)","named":"(var PriceListLine: Record \"Price List Line\"; PriceSource: Record \"Price Source\"; PriceAsset: Record \"Price Asset\"; var TempPriceListLine: Record \"Price List Line\" temporary)","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(var PriceListLine: Record \"Price List Line\"; PriceSource: Record \"Price Source\"; PriceAsset: Record \"Price Asset\"; var TempPriceListLine: Record \"Price List Line\" temporary)","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcBestAmount","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":"Boolean","kind":"procedure","access":"public","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":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"IsDegradedLine","sig":"(Record Price List Line, Record Price List Line)","named":"(PriceListLine: Record \"Price List Line\"; BestPriceListLine: Record \"Price List Line\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"22-29","first":22,"last":29,"obsoleteSince":null,"spans":[{"from":22,"to":29,"named":"(PriceListLine: Record \"Price List Line\"; BestPriceListLine: Record \"Price List Line\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"IsImprovedLine","sig":"(Record Price List Line, Record Price List Line)","named":"(PriceListLine: Record \"Price List Line\"; BestPriceListLine: Record \"Price List Line\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"22-29","first":22,"last":29,"obsoleteSince":null,"spans":[{"from":22,"to":29,"named":"(PriceListLine: Record \"Price List Line\"; BestPriceListLine: Record \"Price List Line\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]}]}