---
title: "Codeunit 6087 Serv. Price Calc. Mgt., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/points/
object: https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
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/"
---

# Codeunit 6087 Serv. Price Calc. Mgt., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/points/

22 procedures and triggers with a step in src/Layers/W1/BaseApp/Service/Pricing/ServPriceCalcMgt.Codeunit.al, in source order, read from the text, not from a run.

## FindServLinePrice

[Line 61](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L61).

- [68](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L68) raises `OnBeforeFindServLinePrice`, IsHandled
- [70](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L70) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnBeforeFindServLinePrice`
- [77](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L77) calls `SetCurrency`
- [78](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L78) calls `ServHeaderExchDate`
- [79](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L79) calls `SetVAT`
- [80](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L80) calls `SetUoM`
- [81](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L81) calls `SetLineDisc`
- [91](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L91) calls `ServLinePriceExists`
- [92](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L92) calls `CalcBestUnitPrice`
- [106](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L106) calls `SetResPrice`
- [107](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L107) runs [Codeunit 221 Resource-Find Price](https://jonas-paprotka.de/ref/codeunit/221-resource-find-price/)
- [109](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L109) raises `OnAfterFindServLineResPrice`, IsHandled
- [111](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L111) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnAfterFindServLineResPrice`
- [115](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L115) calls `ConvertPriceToVAT`
- [117](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L117) calls `ConvertPriceLCYToFCY`
- [140](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L140) calls `ConvertPriceToVAT`
- [141](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L141) calls `ConvertPriceLCYToFCY`
- [145](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L145) raises `OnAfterFindServLinePrice`
- [147](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L147) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnAfterFindServLinePrice`

## FindServLineDisc

[Line 151](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L151).

- [156](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L156) raises `OnBeforeFindServLineDisc`, IsHandled
- [158](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L158) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnBeforeFindServLineDisc`
- [163](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L163) calls `SetCurrency`
- [164](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L164) calls `SetUoM`
- [170](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L170) calls `FindSalesLineDisc`
- [174](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L174) calls `CalcBestLineDisc`
- [181](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L181) calls [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `CalcChargeableQty`
- [186](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L186) raises `OnAfterFindServLineDisc`
- [188](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L188) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnAfterFindServLineDisc`

## CalcBestUnitPrice

[Line 192](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L192).

- [198](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L198) raises `OnBeforeCalcBestUnitPrice`, IsHandled
- [200](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L200) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnBeforeCalcBestUnitPrice`
- [209](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L209) raises `OnCalcBestUnitPriceOnBeforeCalcBestUnitPriceConvertPrice`, IsHandled
- [211](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L211) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnCalcBestUnitPriceOnBeforeCalcBestUnitPriceConvertPrice`
- [214](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L214) calls `IsInMinQty`
- [215](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L215) calls `CalcBestUnitPriceConvertPrice`
- [227](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L227) calls `CalcLineAmount`
- [227](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L227) calls `CalcLineAmount`
- [236](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L236) raises `OnAfterCalcBestUnitPrice`
- [238](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L238) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnAfterCalcBestUnitPrice`
- [243](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L243) calls `ConvertPriceToVAT`
- [246](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L246) calls `ConvertPriceToUoM`
- [247](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L247) calls `ConvertPriceLCYToFCY`
- [253](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L253) raises `OnAfterCalcBestUnitPriceAsItemUnitPrice`
- [255](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L255) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnAfterCalcBestUnitPriceAsItemUnitPrice`

## CalcBestUnitPriceConvertPrice

[Line 262](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L262), local.

- [267](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L267) raises `OnBeforeCalcBestUnitPriceConvertPrice`, IsHandled
- [269](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L269) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnBeforeCalcBestUnitPriceConvertPrice`
- [274](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L274) calls `ConvertPriceToVAT`
- [277](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L277) calls `ConvertPriceToUoM`
- [278](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L278) calls `ConvertPriceLCYToFCY`

## CalcBestLineDisc

[Line 281](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L281).

- [287](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L287) raises `OnBeforeCalcBestLineDisc`, IsHandled
- [289](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L289) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnBeforeCalcBestLineDisc`
- [296](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L296) calls `IsInMinQty`

## FindSalesPrice

[Line 311](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L311).

- [320](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L320) writes [Table 7002 Sales Price](https://jonas-paprotka.de/ref/table/7002-sales-price/) DeleteAll
- [322](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L322) raises `OnBeforeFindSalesPrice`
- [326](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L326) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnBeforeFindSalesPrice`
- [343](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L343) calls `CopySalesPriceToSalesPrice`
- [348](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L348) calls `CopySalesPriceToSalesPrice`
- [354](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L354) calls `CopySalesPriceToSalesPrice`
- [359](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L359) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `ActivatedCampaignExists`
- [362](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L362) calls `CopySalesPriceToSalesPrice`
- [366](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L366) raises `OnAfterFindSalesPrice`
- [370](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L370) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnAfterFindSalesPrice`

## FindSalesLineDisc

[Line 376](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L376).

- [382](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L382) raises `OnBeforeFindSalesLineDisc`
- [386](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L386) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnBeforeFindSalesLineDisc`
- [393](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L393) raises `OnFindSalesLineDiscOnAfterSetFilters`
- [395](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L395) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnFindSalesLineDiscOnAfterSetFilters`
- [405](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L405) writes [Table 7004 Sales Line Discount](https://jonas-paprotka.de/ref/table/7004-sales-line-discount/) DeleteAll
- [425](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L425) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `ActivatedCampaignExists`
- [433](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L433) calls `CopySalesDiscToSalesDisc`
- [438](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L438) calls `CopySalesDiscToSalesDisc`
- [441](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L441) raises `OnFindSalesLineDiscOnAfterCopyItemDiscGroup`
- [450](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L450) raises `OnAfterFindSalesLineDisc`
- [454](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L454) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnAfterFindSalesLineDisc`

## FindResUnitCost

[Line 460](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L460).

- [467](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L467) runs [Codeunit 220 Resource-Find Cost](https://jonas-paprotka.de/ref/codeunit/220-resource-find-cost/)
- [468](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L468) calls [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `AfterResourseFindCost`
- [469](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L469) validates [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `Unit Cost (LCY)`

## CopySalesPrice

[Line 472](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L472).

- [474](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L474) writes [Table 7002 Sales Price](https://jonas-paprotka.de/ref/table/7002-sales-price/) DeleteAll
- [475](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L475) calls `CopySalesPriceToSalesPrice`

## CopySalesPriceToSalesPrice

[Line 478](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L478), local.

- [483](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L483) raises `OnBeforeCopySalesPriceToSalesPrice`, IsHandled
- [485](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L485) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnBeforeCopySalesPriceToSalesPrice`
- [493](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L493) writes [Table 7002 Sales Price](https://jonas-paprotka.de/ref/table/7002-sales-price/) Insert

## CopySalesDiscToSalesDisc

[Line 497](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L497), local.

- [502](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L502) raises `OnBeforeCopySalesDiscToSalesDisc`, IsHandled
- [509](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L509) writes [Table 7004 Sales Line Discount](https://jonas-paprotka.de/ref/table/7004-sales-line-discount/) Insert

## SetResPrice

[Line 518](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L518).

- [521](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L521) raises `OnSetResPriceOnAfterInit`
- [523](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L523) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnSetResPriceOnAfterInit`

## ConvertPriceToVAT

[Line 570](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L570).

- [578](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L578) raises `OnBeforeConvertPriceToVAT`, IsHandled
- [580](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L580) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnBeforeConvertPriceToVAT`

## ConvertPriceLCYToFCY

[Line 618](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L618).

- [625](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L625) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmtLCYToFCY`

## CalcLineAmount

[Line 631](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L631), local.

- [637](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L637) raises `OnAfterCalcLineAmount`
- [639](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L639) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnAfterCalcLineAmount`

## GetServLinePrice

[Line 643](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L643).

- [648](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L648) raises `OnBeforeGetServLinePrice`, IsHandled
- [650](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L650) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnBeforeGetServLinePrice`
- [655](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L655) calls `ServLinePriceExists`
- [657](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L657) runs [Page 7007 Get Sales Price](https://jonas-paprotka.de/ref/page/7007-get-sales-price/)
- [658](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L658) calls `SetVAT`
- [660](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L660) calls `SetUoM`
- [661](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L661) calls `SetCurrency`
- [662](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L662) calls `ServHeaderExchDate`
- [664](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L664) calls `IsInMinQty`
- [682](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L682) calls `ServHeaderStartDate`
- [689](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L689) calls `ConvertPriceToVAT`
- [692](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L692) calls `ConvertPriceToUoM`
- [693](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L693) calls `ConvertPriceLCYToFCY`
- [700](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L700) validates [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `Unit Price`
- [701](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L701) calls [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `ConfirmAdjPriceLineChange`

## GetServLineLineDisc

[Line 705](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L705).

- [710](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L710) raises `OnBeforeGetServLineDisc`, IsHandled
- [712](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L712) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnBeforeGetServLineDisc`
- [717](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L717) calls `ServLineLineDiscExists`
- [719](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L719) runs [Page 7009 Get Sales Line Disc.](https://jonas-paprotka.de/ref/page/7009-get-sales-line-disc/)
- [720](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L720) calls `SetCurrency`
- [721](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L721) calls `SetUoM`
- [723](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L723) calls `IsInMinQty`
- [741](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L741) calls `ServHeaderStartDate`
- [749](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L749) calls [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `CheckLineDiscount`
- [750](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L750) validates [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `Line Discount %`
- [751](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L751) calls [Table 5902 Service Line](https://jonas-paprotka.de/ref/table/5902-service-line/) `ConfirmAdjPriceLineChange`

## ServLinePriceExists

[Line 756](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L756).

- [762](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L762) raises `OnBeforeServLinePriceExists`, IsHandled
- [764](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L764) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnBeforeServLinePriceExists`
- [767](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L767) calls `FindSalesPrice`
- [770](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L770) calls `ServHeaderStartDate`
- [771](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L771) raises `OnAfterServLinePriceExists`
- [773](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L773) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnAfterServLinePriceExists`

## ServLineLineDiscExists

[Line 781](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L781).

- [787](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L787) raises `OnBeforeServLineLineDiscExists`, IsHandled
- [789](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L789) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnBeforeServLineLineDiscExists`
- [792](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L792) calls `FindSalesLineDisc`
- [795](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L795) calls `ServHeaderStartDate`
- [796](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L796) raises `OnAfterServLineLineDiscExists`
- [798](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L798) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnAfterServLineLineDiscExists`

## NoOfServLinePrice

[Line 825](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L825).

- [830](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L830) raises `OnBeforeNoOfServLinePrice`, IsHandled
- [832](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L832) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnBeforeNoOfServLinePrice`
- [837](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L837) calls `ServLinePriceExists`

## NoOfServLineLineDisc

[Line 841](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L841).

- [846](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L846) raises `OnBeforeNoOfServLineLineDisc`, IsHandled
- [848](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L848) calls [Codeunit 7000 Sales Price Calc. Mgt.](https://jonas-paprotka.de/ref/codeunit/7000-sales-price-calc-mgt/) `RunOnBeforeNoOfServLineLineDisc`
- [853](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L853) calls `ServLineLineDiscExists`

## FindResPrice

[Line 857](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L857).

- [863](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L863) calls [Table 207 Res. Journal Line](https://jonas-paprotka.de/ref/table/207-res-journal-line/) `BeforeFindResPrice`
- [864](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L864) runs [Codeunit 221 Resource-Find Price](https://jonas-paprotka.de/ref/codeunit/221-resource-find-price/)
- [865](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L865) calls [Table 207 Res. Journal Line](https://jonas-paprotka.de/ref/table/207-res-journal-line/) `AfterFindResPrice`
- [868](https://jonas-paprotka.de/ref/codeunit/6087-serv-price-calc-mgt/source/#L868) validates [Table 207 Res. Journal Line](https://jonas-paprotka.de/ref/table/207-res-journal-line/) `Unit Price`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
