---
title: "Codeunit 7003 Price Calculation - V15"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/7003-price-calculation-v15/
type: codeunit
id: 7003
name: "Price Calculation - V15"
app: "Base Application"
namespace: Microsoft.Pricing.Calculation
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/7003-price-calculation-v15/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 7003 Price Calculation - V15

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/7003-price-calculation-v15/

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetID | () | Integer | public | 17-28 | - | - |
| GetLine | (var Variant) | - | public | 17-28 | - | - |
| Init | (Interface Line With Price, Record Price Calculation Setup) | - | public | 17-28 | - | - |
| ApplyDiscount | () | - | public | 17-28 | - | - |
| ApplyPrice | (Integer) | - | public | 17-28 | - | - |
| CountDiscount | (Boolean) | Integer | public | 17-28 | - | - |
| CountPrice | (Boolean) | Integer | public | 17-28 | - | - |
| FindDiscount | (var Record Price List Line, Boolean) | Boolean | public | 17-28 | - | - |
| FindPrice | (var Record Price List Line, Boolean) | Boolean | public | 17-28 | - | - |
| IsDiscountExists | (Boolean) | Boolean | public | 17-28 | - | - |
| IsPriceExists | (Boolean) | Boolean | public | 17-28 | - | - |
| PickDiscount | () | - | public | 17-28 | - | - |
| PickPrice | () | - | public | 17-28 | - | - |
| ShowPrices | (var Record Price List Line) | - | public | 17-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnIsDisabled | (var Boolean) | 17-28 | - | - |
| Integration event | OnAfterApplyPriceSalesHandler | (var Interface Line With Price, Variant, Variant, Integer) | 18-28 | - | - |
| Integration event | OnBeforeApplyDiscountSalesHandler | (var Interface Line With Price, var Boolean) | 18-28 | - | - |
| Integration event | OnFindPriceListLineOnBeforeRunResourceFindCost | (var Record Resource Cost, Record Price List Line) | 20-28 | - | - |
| Integration event | OnAfterApplyPricePurchHandler | (var Interface Line With Price, Variant, Variant, Integer) | 21-28 | - | - |
| Integration event | OnAfterApplyDiscountSalesHandler | (var Interface Line With Price, Variant, Variant) | 28 | - | - |
| Integration event | OnCountDiscount | (Integer, Variant, Variant, Boolean, var Integer) | 28 | - | - |
| Integration event | OnCountPrice | (Integer, Variant, Variant, Boolean, var Integer) | 28 | - | - |
| Integration event | OnIsDiscountExists | (Integer, Variant, Variant, Boolean, var Boolean) | 28 | - | - |
| Integration event | OnIsPriceExists | (Integer, Variant, Variant, Boolean, var Boolean) | 28 | - | - |
| Integration event | OnPickDiscount | (Integer, Variant, Variant, var Enum Price Type) | 28 | - | - |
| Integration event | OnPickPrice | (Integer, Variant, Variant) | 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.
