---
title: "Codeunit 7008 Price Calculation Buffer Mgt."
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/7008-price-calculation-buffer-mgt/
type: codeunit
id: 7008
name: "Price Calculation Buffer Mgt."
app: "Base Application"
namespace: Microsoft.Pricing.Calculation
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/7008-price-calculation-buffer-mgt/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 7008 Price Calculation Buffer Mgt.

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/7008-price-calculation-buffer-mgt/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Pricing.Calculation |
| Versions | 17-28 |
| Source file | Pricing/Calculation/PriceCalculationBufferMgt.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| AddAsset | (Enum Price Asset Type, Code[20]) | - | public | 17-28 | - | - |
| AddSource | (Enum Price Source Type, Code[20], Code[20]) | - | public | 17-28 | - | - |
| AddSource | (Enum Price Source Type, Code[20]) | - | public | 17-28 | - | - |
| AddSource | (Enum Price Source Type) | - | public | 17-28 | - | - |
| GetAsset | (var Record Price Asset) | - | public | 17-28 | - | - |
| GetAssets | (var Codeunit Price Asset List) | - | public | 17-28 | - | - |
| GetBuffer | (var Record Price Calculation Buffer) | - | public | 17-28 | - | - |
| GetSource | (Enum Price Source Type) | Code[20] | public | 17-28 | - | - |
| GetSources | (var Record Price Source) | Boolean | public | 17-28 | - | - |
| GetSources | (var Codeunit Price Source List) | - | public | 17-28 | - | - |
| SetAssets | (var Codeunit Price Asset List) | - | public | 17-28 | - | - |
| SetSources | (var Codeunit Price Source List) | - | public | 17-28 | - | - |
| Set | (Record Price Calculation Buffer, var Codeunit Price Source List) | - | public | 17-28 | - | - |
| RoundPrice | (var Decimal) | - | public | 17-28 | - | - |
| IsInMinQty | (Record Price List Line) | Boolean | public | 17-28 | - | - |
| ConvertAmount | (Enum Price Amount Type, var Record Price List Line) | - | public | 17-28 | - | - |
| ConvertAmountByTax | (var Record Price List Line, var Decimal) | - | public | 17-28 | - | - |
| ConvertAmountByUnitOfMeasure | (var Record Price List Line, var Decimal) | - | public | 17-28 | - | - |
| ConvertAmountByCurrency | (var Record Price List Line, var Decimal) | - | public | 17-28 | - | - |
| SetLineDiscountPctForPickBestLine | (var Record Price List Line) | - | public | 17-28 | - | - |
| FillBestLine | (Enum Price Amount Type, var Record Price List Line) | - | public | 17-28 | - | - |
| SetFiltersOnPriceListLine | (var Record Price List Line, Enum Price Amount Type, Boolean) | - | public | 17-28 | - | - |
| RestoreFilters | (var Record Price List Line) | - | public | 17-28 | - | - |
| VerifySelectedLine | (Record Price List Line) | - | public | 17-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterCalcUnitAmountRoundingPrecision | (Record Price Calculation Buffer, var Decimal) | 17-28 | - | - |
| Integration event | OnAfterGetAssets | (Record Price Calculation Buffer, var Codeunit Price Asset List) | 17-28 | - | - |
| Integration event | OnAfterGetSources | (Record Price Calculation Buffer, var Record Price Source, var Boolean) | 17-28 | - | - |
| Integration event | OnAfterGetSourcesNewPriceSourceList | (var Record Price Calculation Buffer, var Codeunit Price Source List) | 17-28 | - | - |
| Integration event | OnAfterSetFilters | (var Record Price List Line, Enum Price Amount Type, var Record Price Calculation Buffer, Boolean) | 17-28 | - | - |
| Integration event | OnAfterSetLineDiscountPctForPickBestLine | (Record Price Calculation Buffer, var Record Price List Line) | 17-28 | - | - |
| Integration event | OnBeforeConvertAmount | (Enum Price Amount Type, var Record Price List Line, Record Price Calculation Buffer, var Boolean) | 17-28 | - | - |
| Integration event | OnConvertAmountByTaxOnAfterVATPostingSetupGet | (var Record VAT Posting Setup) | 17-23 | - | - |
| Integration event | OnBeforeIsInMinQty | (Record Price List Line, Record Price Calculation Buffer, var Boolean, var Boolean) | 18-28 | - | - |
| Integration event | OnBeforeSet | (var Record Price Calculation Buffer) | 20-28 | - | - |
| Integration event | OnBeforeConvertAmountByCurrency | (var Record Price List Line, var Decimal, var Record Price Calculation Buffer) | 22-28 | - | - |
| Integration event | OnConvertAmountByTaxOnAfterVATPostingSetupGet | (var Record VAT Posting Setup, var Decimal, var Boolean) | 24-25 | - | - |
| Integration event | OnConvertAmountByTaxOnAfterVATPostingSetupGet | (var Record VAT Posting Setup, var Decimal, var Boolean, var Record Price Calculation Buffer) | 26-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
