---
title: "Codeunit 131305 Library - ERM Country Data, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/points/
object: https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/
app: "Application Test Library"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/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 131305 Library - ERM Country Data, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/points/

10 procedures and triggers with a step in src/Layers/W1/Tests/ApplicationTestLibrary/LibraryERMCountryData.Codeunit.al, in source order, read from the text, not from a run.

## SetupReportSelections

[Line 47](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L47).

- [52](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L52) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `SetupReportSelection`
- [53](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L53) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `SetupReportSelection`
- [54](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L54) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `SetupReportSelection`
- [55](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L55) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `SetupReportSelection`
- [56](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L56) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `SetupReportSelection`

## UpdatePrepaymentAccounts

[Line 104](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L104).

- [106](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L106) calls `UpdateVATPostingSetupOnPrepAccount`
- [107](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L107) calls `UpdateGenProdPostingSetupOnPrepAccount`

## UpdatePurchasesPayablesSetup

[Line 110](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L110).

- [112](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L112) calls `UpdatePostingDateCheckonPostingPurchase`

## UpdateSalesReceivablesSetup

[Line 120](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L120).

- [122](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L122) calls `UpdatePostingDateCheckonPostingSales`

## UpdateJournalTemplMandatory

[Line 165](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L165).

- [170](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L170) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `Journal Templ. Name Mandatory`
- [171](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L171) writes [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) Modify(true)

## UpdateGenProdPostingSetupOnPrepAccount

[Line 204](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L204), local.

- [214](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L214) validates [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) `Gen. Prod. Posting Group`
- [215](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L215) writes [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) Modify(true)
- [224](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L224) validates [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) `Gen. Prod. Posting Group`
- [225](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L225) writes [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) Modify(true)

## UpdateVATPostingSetupOnPrepAccount

[Line 230](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L230), local.

- [242](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L242) validates [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) `VAT Prod. Posting Group`
- [243](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L243) writes [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) Modify(true)
- [253](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L253) validates [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) `VAT Prod. Posting Group`
- [254](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L254) writes [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) Modify(true)

## CompanyInfoSetVATRegistrationNo

[Line 259](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L259).

- [265](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L265) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `GenerateVATRegistrationNo`
- [266](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L266) writes [Table 79 Company Information](https://jonas-paprotka.de/ref/table/79-company-information/) Modify

## UpdatePostingDateCheckonPostingSales

[Line 287](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L287), local.

- [292](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L292) validates [Table 311 Sales & Receivables Setup](https://jonas-paprotka.de/ref/table/311-sales-receivables-setup/) `Posting Date Check on Posting`
- [293](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L293) writes [Table 311 Sales & Receivables Setup](https://jonas-paprotka.de/ref/table/311-sales-receivables-setup/) Modify(true)

## UpdatePostingDateCheckonPostingPurchase

[Line 296](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L296), local.

- [301](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L301) validates [Table 312 Purchases & Payables Setup](https://jonas-paprotka.de/ref/table/312-purchases-payables-setup/) `Posting Date Check on Posting`
- [302](https://jonas-paprotka.de/ref/codeunit/131305-library-erm-country-data/source/#L302) writes [Table 312 Purchases & Payables Setup](https://jonas-paprotka.de/ref/table/312-purchases-payables-setup/) Modify(true)

## Source

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

JOP-AL, 2026-11-20.
