---
title: "Codeunit 1620 PEPPOL Validation, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/points/
object: https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/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 1620 PEPPOL Validation, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/points/

9 procedures and triggers with a step in src/Layers/W1/BaseApp/Sales/Peppol/PEPPOLValidation.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 30](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L30), trigger.

- [35](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L35) raises `OnBeforeOnRun`, IsHandled
- [39](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L39) calls `CheckSalesDocument`
- [40](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L40) calls `CheckSalesDocumentLines`

## CheckSalesDocument

[Line 64](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L64).

- [76](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L76) raises `OnBeforeCheckSalesDocument`, IsHandled
- [80](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L80) calls `CheckCurrencyCode`
- [97](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L97) calls `CheckCountryRegionCode`
- [100](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L100) raises `OnCheckSalesDocumentOnBeforeCheckCompanyVATRegNo`, IsHandled
- [109](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L109) calls `CheckCountryRegionCode`
- [112](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L112) raises `OnCheckSalesDocumentOnBeforeCheckCustomerVATRegNo`, IsHandled
- [128](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L128) raises `OnCheckSalesDocumentOnBeforeCheckYourReference`, IsHandled
- [132](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L132) calls `CheckShipToAddress`
- [140](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L140) raises `OnAfterCheckSalesDocument`

## CheckSalesDocumentLines

[Line 147](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L147).

- [155](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L155) calls `CheckSalesDocumentLine`

## CheckSalesDocumentLine

[Line 163](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L163).

- [172](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L172) raises `OnBeforeCheckSalesDocumentLine`, IsHandled
- [184](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L184) calls [Codeunit 1605 PEPPOL Management](https://jonas-paprotka.de/ref/codeunit/1605-peppol-management/) `GetLineUnitCodeInfo`
- [189](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L189) raises `OnCheckSalesDocumentLineOnBeforeCheckEmptyDescription`, IsHandled
- [191](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L191) calls `CheckSalesLineTypeAndDescription`
- [196](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L196) calls [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `UseVat`
- [201](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L201) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`

## CheckAllocationAccountExpandedLines

[Line 206](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L206), local.

- [216](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L216) calls [Codeunit 2675 Allocation Account Mgt.](https://jonas-paprotka.de/ref/codeunit/2675-allocation-account-mgt/) `GenerateAllocationLines`
- [218](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L218) calls [Table 37 Sales Line](https://jonas-paprotka.de/ref/table/37-sales-line/) `GetSalesHeader`

## CheckSalesInvoice

[Line 235](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L235).

- [243](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L243) calls `CheckSalesDocument`
- [249](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L249) calls `CheckSalesDocumentLine`

## CheckSalesCreditMemo

[Line 257](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L257).

- [265](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L265) calls `CheckSalesDocument`
- [271](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L271) calls `CheckSalesDocumentLine`

## CheckShipToAddress

[Line 322](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L322), local.

- [327](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L327) raises `OnBeforeCheckShipToAddress`, IsHandled
- [335](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L335) calls `CheckCountryRegionCode`

## CheckTaxCategory

[Line 338](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L338), local.

- [347](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L347) calls [Codeunit 1605 PEPPOL Management](https://jonas-paprotka.de/ref/codeunit/1605-peppol-management/) `IsStandardVATCategory`
- [349](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L349) calls [Codeunit 1605 PEPPOL Management](https://jonas-paprotka.de/ref/codeunit/1605-peppol-management/) `IsOutsideScopeVATCategory`
- [354](https://jonas-paprotka.de/ref/codeunit/1620-peppol-validation/source/#L354) calls [Codeunit 1605 PEPPOL Management](https://jonas-paprotka.de/ref/codeunit/1605-peppol-management/) `IsZeroVatCategory`

## Source

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

JOP-AL, 2026-11-20.
