---
title: "Codeunit 5968 Serv. Sales Tax Calculate"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/5968-serv-sales-tax-calculate/
type: codeunit
id: 5968
name: "Serv. Sales Tax Calculate"
app: "Base Application"
namespace: Microsoft.Finance.SalesTax
versions: "28-29"
build: 29.0.54011.55644
countries: "US"
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 5968 Serv. Sales Tax Calculate

JOP-AL, https://jonas-paprotka.de/ref/codeunit/5968-serv-sales-tax-calculate/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Finance.SalesTax |
| Versions | 28-29 |
| Minors | US 28.0-29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/5968-serv-sales-tax-calculate/editions.json) |
| Source file | Service/Local/Finance/SalesTax/ServSalesTaxCalculate.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| StartSalesTaxCalculation | () | - | public | 28-29 | - | - |
| CallExternalTaxEngineForServ | (var ServiceHeader2: Record "Service Header"; UpdateRecIfChanged: Boolean) | Boolean | public | 28-29 | - | - |
| CallExternalTaxEngineForDoc | (DocTable: Integer; DocType: Option Quote,Order,Invoice,"Credit Memo","Blanket Order","Return Order"; DocNo: Code[20]) | Text[20] | public | 28-29 | - | - |
| EndSalesTaxCalculation | (PostingDate: Date) | - | public | 28-29 | - | - |
| GetSummarizedSalesTaxTable | (var TempSummarizedSalesTaxAmountLine: Record "Sales Tax Amount Line" temporary) | - | public | 28-29 | - | - |
| AddServiceLine | (ServiceLine: Record "Service Line") | - | public | 28-29 | - | - |
| AddServInvoiceLines | (DocNo: Code[20]) | - | public | 28-29 | - | - |
| AddServCrMemoLines | (DocNo: Code[20]) | - | public | 28-29 | - | - |
| DistTaxOverServLines | (var ServLine: Record "Service Line") | - | public | 28-29 | - | - |
| GetSalesTaxAmountLineTable | (var TempSalesTaxAmountLineTo: Record "Sales Tax Amount Line" temporary) | - | public | 28-29 | - | - |
| PutSalesTaxAmountLineTable | (var TempSalesTaxAmountLine2: Record "Sales Tax Amount Line" temporary; ProductArea: Integer; DocumentType: Integer; DocumentNo: Code[20]) | - | public | 28-29 | - | - |
| SaveTaxDifferences | () | - | public | 28-29 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeDistTaxOverServLines | (var ServiceLine: Record "Service Line"; var IsHandled: Boolean) | 28-29 | - | - |
| Integration event | OnBeforeAddServiceLine | (var ServiceLine: Record "Service Line") | 28-29 | - | - |
| Integration event | OnAddServiceLineOnAfterTempSalesTaxAmountLineSetFilters | (var TempSalesTaxAmountLine: Record "Sales Tax Amount Line" temporary) | 28-29 | - | - |
| Integration event | OnAddServiceLineOnAfterSetSalesTaxAmountLineFilter | (var TempSalesTaxAmountLine: Record "Sales Tax Amount Line" temporary; ServiceLine: Record "Service Line"; TaxAreaLine: Record "Tax Area Line") | 28-29 | - | - |
| Integration event | OnAfterAddServiceLine | (var TempSalesTaxAmountLine: Record "Sales Tax Amount Line" temporary; ServiceLine: Record "Service Line") | 28-29 | - | - |

## Source

Symbols: Microsoft.BaseApplication.US.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.

JOP-AL, 2026-11-20.
