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

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

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

## ApplicationAmountRounding

[Line 25](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L25).

- [30](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L30) calls [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Initialize`
- [36](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L36) calls [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `InvoiceRoundingDirection`

## ApplyCustomerLedgerEntries

[Line 39](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L39).

- [44](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L44) calls `FindCustomerLedgerEntry`
- [46](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L46) calls `SetApplyCustomerEntry`
- [47](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L47) calls `FindCustomerLedgerEntry`
- [49](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L49) validates [Table 21 Cust. Ledger Entry](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/) `Amount to Apply`
- [50](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L50) writes [Table 21 Cust. Ledger Entry](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/) Modify(true)
- [51](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L51) calls `SetAppliestoIdCustomer`
- [52](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L52) calls `PostCustLedgerApplication`

## ApplyVendorLedgerEntries

[Line 55](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L55).

- [60](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L60) calls `FindVendorLedgerEntry`
- [62](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L62) calls `SetApplyVendorEntry`
- [63](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L63) calls `FindVendorLedgerEntry`
- [65](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L65) validates [Table 25 Vendor Ledger Entry](https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/) `Amount to Apply`
- [66](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L66) writes [Table 25 Vendor Ledger Entry](https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/) Modify(true)
- [67](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L67) calls `SetAppliestoIdVendor`
- [68](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L68) calls `PostVendLedgerApplication`

## ClearAdjustPmtDiscInVATSetup

[Line 71](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L71).

- [78](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L78) validates [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) `Adjust for Payment Discount`
- [79](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L79) writes [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) Modify(true)

## ClearGenJournalLines

[Line 92](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L92).

- [98](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L98) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) DeleteAll(true)

## ConvertCurrency

[Line 101](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L101).

- [112](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L112) calls `FindExchRate`
- [118](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L118) calls `FindExchRate`

## CreateAnalysisColumn

[Line 123](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L123).

- [128](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L128) validates [Table 7118 Analysis Column](https://jonas-paprotka.de/ref/table/7118-analysis-column/) `Analysis Area`
- [129](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L129) validates [Table 7118 Analysis Column](https://jonas-paprotka.de/ref/table/7118-analysis-column/) `Analysis Column Template`
- [131](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L131) validates [Table 7118 Analysis Column](https://jonas-paprotka.de/ref/table/7118-analysis-column/) `Line No.`
- [131](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L131) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [132](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L132) writes [Table 7118 Analysis Column](https://jonas-paprotka.de/ref/table/7118-analysis-column/) Insert(true)

## CreateAnalysisView

[Line 135](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L135).

- [138](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L138) validates [Table 363 Analysis View](https://jonas-paprotka.de/ref/table/363-analysis-view/) `Code`
- [141](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L141) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [143](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L143) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [146](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L146) validates [Table 363 Analysis View](https://jonas-paprotka.de/ref/table/363-analysis-view/) `Name`
- [147](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L147) writes [Table 363 Analysis View](https://jonas-paprotka.de/ref/table/363-analysis-view/) Insert(true)

## CreateAndPostTwoGenJourLinesWithSameBalAccAndDocNo

[Line 150](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L150).

- [156](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L156) calls `CreateGenJournalTemplate`
- [157](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L157) calls `CreateGenJournalBatch`
- [158](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L158) calls `CreateGeneralJnlLineWithBalAcc`
- [160](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L160) calls `CreateGLAccountNo`
- [162](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L162) calls `CreateGeneralJnlLineWithBalAcc`
- [164](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L164) calls `CreateGLAccountNo`
- [165](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L165) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Document No.`
- [166](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L166) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Modify(true)
- [167](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L167) calls `PostGeneralJnlLine`

## CreateAccScheduleName

[Line 172](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L172).

- [177](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L177) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [178](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L178) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [180](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L180) validates [Table 84 Acc. Schedule Name](https://jonas-paprotka.de/ref/table/84-acc-schedule-name/) `Name`
- [181](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L181) writes [Table 84 Acc. Schedule Name](https://jonas-paprotka.de/ref/table/84-acc-schedule-name/) Insert(true)
- [185](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L185) writes [Table 88 Financial Report](https://jonas-paprotka.de/ref/table/88-financial-report/) Insert(true)

## CreateAccScheduleLine

[Line 188](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L188).

- [193](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L193) validates [Table 85 Acc. Schedule Line](https://jonas-paprotka.de/ref/table/85-acc-schedule-line/) `Schedule Name`
- [195](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L195) validates [Table 85 Acc. Schedule Line](https://jonas-paprotka.de/ref/table/85-acc-schedule-line/) `Line No.`
- [195](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L195) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [196](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L196) writes [Table 85 Acc. Schedule Line](https://jonas-paprotka.de/ref/table/85-acc-schedule-line/) Insert(true)

## CreateAccountMapping

[Line 199](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L199).

- [205](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L205) validates [Table 1251 Text-to-Account Mapping](https://jonas-paprotka.de/ref/table/1251-text-to-account-mapping/) `Line No.`
- [205](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L205) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [206](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L206) validates [Table 1251 Text-to-Account Mapping](https://jonas-paprotka.de/ref/table/1251-text-to-account-mapping/) `Mapping Text`
- [207](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L207) writes [Table 1251 Text-to-Account Mapping](https://jonas-paprotka.de/ref/table/1251-text-to-account-mapping/) Insert(true)

## CreateAccountMappingCustomer

[Line 210](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L210).

- [212](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L212) calls `CreateAccountMapping`
- [213](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L213) validates [Table 1251 Text-to-Account Mapping](https://jonas-paprotka.de/ref/table/1251-text-to-account-mapping/) `Bal. Source Type`
- [214](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L214) validates [Table 1251 Text-to-Account Mapping](https://jonas-paprotka.de/ref/table/1251-text-to-account-mapping/) `Bal. Source No.`
- [215](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L215) writes [Table 1251 Text-to-Account Mapping](https://jonas-paprotka.de/ref/table/1251-text-to-account-mapping/) Modify(true)

## CreateAccountMappingGLAccount

[Line 218](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L218).

- [220](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L220) calls `CreateAccountMapping`
- [221](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L221) validates [Table 1251 Text-to-Account Mapping](https://jonas-paprotka.de/ref/table/1251-text-to-account-mapping/) `Bal. Source Type`
- [222](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L222) validates [Table 1251 Text-to-Account Mapping](https://jonas-paprotka.de/ref/table/1251-text-to-account-mapping/) `Debit Acc. No.`
- [223](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L223) validates [Table 1251 Text-to-Account Mapping](https://jonas-paprotka.de/ref/table/1251-text-to-account-mapping/) `Credit Acc. No.`
- [224](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L224) writes [Table 1251 Text-to-Account Mapping](https://jonas-paprotka.de/ref/table/1251-text-to-account-mapping/) Modify(true)

## CreateAccountMappingVendor

[Line 227](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L227).

- [229](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L229) calls `CreateAccountMapping`
- [230](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L230) validates [Table 1251 Text-to-Account Mapping](https://jonas-paprotka.de/ref/table/1251-text-to-account-mapping/) `Bal. Source Type`
- [231](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L231) validates [Table 1251 Text-to-Account Mapping](https://jonas-paprotka.de/ref/table/1251-text-to-account-mapping/) `Bal. Source No.`
- [232](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L232) writes [Table 1251 Text-to-Account Mapping](https://jonas-paprotka.de/ref/table/1251-text-to-account-mapping/) Modify(true)

## CreateBankAccount

[Line 235](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L235).

- [240](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L240) calls `FindBankAccountPostingGroup`
- [242](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L242) validates [Table 270 Bank Account](https://jonas-paprotka.de/ref/table/270-bank-account/) `No.`
- [242](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L242) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [243](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L243) validates [Table 270 Bank Account](https://jonas-paprotka.de/ref/table/270-bank-account/) `Name`
- [244](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L244) writes [Table 270 Bank Account](https://jonas-paprotka.de/ref/table/270-bank-account/) Insert(true)
- [245](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L245) validates [Table 270 Bank Account](https://jonas-paprotka.de/ref/table/270-bank-account/) `Bank Acc. Posting Group`
- [246](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L246) writes [Table 270 Bank Account](https://jonas-paprotka.de/ref/table/270-bank-account/) Modify(true)
- [247](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L247) calls [Codeunit 5058 BankCont-Update](https://jonas-paprotka.de/ref/codeunit/5058-bankcont-update/) `OnModify`

## CreateBankAccount

[Line 250](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L250).

- [255](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L255) calls `CreateBankAccountPostingGroup`
- [257](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L257) validates [Table 270 Bank Account](https://jonas-paprotka.de/ref/table/270-bank-account/) `No.`
- [257](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L257) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [258](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L258) validates [Table 270 Bank Account](https://jonas-paprotka.de/ref/table/270-bank-account/) `Name`
- [259](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L259) writes [Table 270 Bank Account](https://jonas-paprotka.de/ref/table/270-bank-account/) Insert(true)
- [260](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L260) validates [Table 270 Bank Account](https://jonas-paprotka.de/ref/table/270-bank-account/) `Bank Acc. Posting Group`
- [261](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L261) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [262](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L262) writes [Table 270 Bank Account](https://jonas-paprotka.de/ref/table/270-bank-account/) Modify(true)
- [263](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L263) calls [Codeunit 5058 BankCont-Update](https://jonas-paprotka.de/ref/codeunit/5058-bankcont-update/) `OnModify`

## CreateBankAccountNo

[Line 266](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L266).

- [270](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L270) calls `CreateBankAccount`

## CreateBankAccountNoWithNewPostingGroup

[Line 274](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L274).

- [278](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L278) calls `CreateBankAccount`

## CreateBankAccReconciliation

[Line 282](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L282).

- [285](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L285) validates [Table 273 Bank Acc. Reconciliation](https://jonas-paprotka.de/ref/table/273-bank-acc-reconciliation/) `Statement Type`
- [286](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L286) validates [Table 273 Bank Acc. Reconciliation](https://jonas-paprotka.de/ref/table/273-bank-acc-reconciliation/) `Bank Account No.`
- [287](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L287) writes [Table 273 Bank Acc. Reconciliation](https://jonas-paprotka.de/ref/table/273-bank-acc-reconciliation/) Insert(true)

## CreateBankAccReconciliationLn

[Line 291](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L291).

- [296](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L296) validates [Table 274 Bank Acc. Reconciliation Line](https://jonas-paprotka.de/ref/table/274-bank-acc-reconciliation-line/) `Bank Account No.`
- [297](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L297) validates [Table 274 Bank Acc. Reconciliation Line](https://jonas-paprotka.de/ref/table/274-bank-acc-reconciliation-line/) `Statement No.`
- [298](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L298) validates [Table 274 Bank Acc. Reconciliation Line](https://jonas-paprotka.de/ref/table/274-bank-acc-reconciliation-line/) `Statement Type`
- [300](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L300) validates [Table 274 Bank Acc. Reconciliation Line](https://jonas-paprotka.de/ref/table/274-bank-acc-reconciliation-line/) `Statement Line No.`
- [301](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L301) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [303](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L303) writes [Table 274 Bank Acc. Reconciliation Line](https://jonas-paprotka.de/ref/table/274-bank-acc-reconciliation-line/) Insert(true)

## CreateBankAccountPostingGroup

[Line 306](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L306).

- [309](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L309) validates [Table 277 Bank Account Posting Group](https://jonas-paprotka.de/ref/table/277-bank-account-posting-group/) `Code`
- [311](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L311) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [312](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L312) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [313](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L313) writes [Table 277 Bank Account Posting Group](https://jonas-paprotka.de/ref/table/277-bank-account-posting-group/) Insert(true)

## CreateBankAccountPostingGroup

[Line 316](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L316).

- [319](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L319) validates [Table 277 Bank Account Posting Group](https://jonas-paprotka.de/ref/table/277-bank-account-posting-group/) `Code`
- [321](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L321) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [322](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L322) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [323](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L323) validates [Table 277 Bank Account Posting Group](https://jonas-paprotka.de/ref/table/277-bank-account-posting-group/) `G/L Account No.`
- [324](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L324) writes [Table 277 Bank Account Posting Group](https://jonas-paprotka.de/ref/table/277-bank-account-posting-group/) Insert(true)

## CreateBusinessUnit

[Line 327](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L327).

- [330](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L330) validates [Table 220 Business Unit](https://jonas-paprotka.de/ref/table/220-business-unit/) `Code`
- [330](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L330) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [331](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L331) writes [Table 220 Business Unit](https://jonas-paprotka.de/ref/table/220-business-unit/) Insert(true)

## CreateChangeLogField

[Line 334](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L334).

- [337](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L337) validates [Table 404 Change Log Setup (Field)](https://jonas-paprotka.de/ref/table/404-change-log-setup-field/) `Table No.`
- [338](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L338) validates [Table 404 Change Log Setup (Field)](https://jonas-paprotka.de/ref/table/404-change-log-setup-field/) `Field No.`
- [339](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L339) writes [Table 404 Change Log Setup (Field)](https://jonas-paprotka.de/ref/table/404-change-log-setup-field/) Insert(true)

## CreateChangeLogTable

[Line 342](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L342).

- [345](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L345) validates [Table 403 Change Log Setup (Table)](https://jonas-paprotka.de/ref/table/403-change-log-setup-table/) `Table No.`
- [346](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L346) writes [Table 403 Change Log Setup (Table)](https://jonas-paprotka.de/ref/table/403-change-log-setup-table/) Insert(true)

## CreateColumnLayout

[Line 349](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L349).

- [354](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L354) validates [Table 334 Column Layout](https://jonas-paprotka.de/ref/table/334-column-layout/) `Column Layout Name`
- [356](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L356) validates [Table 334 Column Layout](https://jonas-paprotka.de/ref/table/334-column-layout/) `Line No.`
- [356](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L356) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [357](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L357) writes [Table 334 Column Layout](https://jonas-paprotka.de/ref/table/334-column-layout/) Insert(true)

## CreateColumnLayoutName

[Line 360](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L360).

- [363](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L363) validates [Table 333 Column Layout Name](https://jonas-paprotka.de/ref/table/333-column-layout-name/) `Name`
- [365](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L365) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [366](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L366) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [367](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L367) writes [Table 333 Column Layout Name](https://jonas-paprotka.de/ref/table/333-column-layout-name/) Insert(true)

## CreateCountryRegion

[Line 370](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L370).

- [373](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L373) validates [Table 9 Country/Region](https://jonas-paprotka.de/ref/table/9-country-region/) `Code`
- [375](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L375) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [376](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L376) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [377](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L377) writes [Table 9 Country/Region](https://jonas-paprotka.de/ref/table/9-country-region/) Insert(true)

## CreateCountryRegionTranslation

[Line 388](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L388).

- [393](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L393) calls `GetAnyLanguageDifferentFromCurrent`
- [394](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L394) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandText`

## CreateCountryRegionTranslation

[Line 398](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L398).

- [401](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L401) validates [Table 11 Country/Region Translation](https://jonas-paprotka.de/ref/table/11-country-region-translation/) `Country/Region Code`
- [402](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L402) validates [Table 11 Country/Region Translation](https://jonas-paprotka.de/ref/table/11-country-region-translation/) `Language Code`
- [403](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L403) validates [Table 11 Country/Region Translation](https://jonas-paprotka.de/ref/table/11-country-region-translation/) `Name`
- [404](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L404) writes [Table 11 Country/Region Translation](https://jonas-paprotka.de/ref/table/11-country-region-translation/) Insert(true)

## CreateTerritory

[Line 407](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L407).

- [410](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L410) validates [Table 286 Territory](https://jonas-paprotka.de/ref/table/286-territory/) `Code`
- [412](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L412) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [413](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L413) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [414](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L414) writes [Table 286 Territory](https://jonas-paprotka.de/ref/table/286-territory/) Insert(true)

## CreateCurrency

[Line 417](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L417).

- [420](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L420) validates [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Code`
- [420](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L420) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [421](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L421) writes [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) Insert(true)

## CreateCurrencyWithRandomExchRates

[Line 424](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L424).

- [428](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L428) calls `CreateCurrencyWithGLAccountSetup`
- [429](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L429) calls `CreateRandomExchangeRate`

## CreateCurrencyWithRounding

[Line 433](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L433).

- [438](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L438) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`
- [440](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L440) calls `CreateCurrencyWithExchangeRate`
- [441](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L441) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandDec`
- [441](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L441) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandDec`
- [442](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L442) validates [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Amount Rounding Precision`
- [442](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L442) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandPrecision`
- [443](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L443) writes [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) Modify(true)

## CreateCurrencyWithExchangeRate

[Line 447](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L447).

- [449](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L449) calls `CreateCurrencyWithGLAccountSetup`
- [450](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L450) calls `CreateExchangeRate`

## CreateCurrencyWithGLAccountSetup

[Line 454](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L454).

- [458](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L458) calls `CreateCurrency`
- [459](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L459) validates [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Residual Gains Account`
- [459](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L459) calls `CreateGLAccountNo`
- [460](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L460) validates [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Residual Losses Account`
- [461](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L461) validates [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Realized G/L Gains Account`
- [461](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L461) calls `CreateGLAccountNo`
- [462](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L462) validates [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Realized G/L Losses Account`
- [463](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L463) validates [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Realized Gains Acc.`
- [463](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L463) calls `CreateGLAccountNo`
- [464](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L464) validates [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Realized Losses Acc.`
- [465](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L465) validates [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Unrealized Gains Acc.`
- [465](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L465) calls `CreateGLAccountNo`
- [466](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L466) validates [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Unrealized Losses Acc.`
- [467](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L467) validates [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Conv. LCY Rndg. Debit Acc.`
- [467](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L467) calls `CreateGLAccountNo`
- [468](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L468) validates [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Conv. LCY Rndg. Credit Acc.`
- [468](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L468) calls `CreateGLAccountNo`
- [469](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L469) writes [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) Modify(true)

## CreateCurrencyForReminderLevel

[Line 473](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L473).

- [478](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L478) validates [Table 329 Currency for Reminder Level](https://jonas-paprotka.de/ref/table/329-currency-for-reminder-level/) `Reminder Terms Code`
- [480](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L480) validates [Table 329 Currency for Reminder Level](https://jonas-paprotka.de/ref/table/329-currency-for-reminder-level/) `No.`
- [480](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L480) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [481](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L481) validates [Table 329 Currency for Reminder Level](https://jonas-paprotka.de/ref/table/329-currency-for-reminder-level/) `Currency Code`
- [482](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L482) writes [Table 329 Currency for Reminder Level](https://jonas-paprotka.de/ref/table/329-currency-for-reminder-level/) Insert(true)

## CreateCustomerDiscountGroup

[Line 485](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L485).

- [488](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L488) validates [Table 340 Customer Discount Group](https://jonas-paprotka.de/ref/table/340-customer-discount-group/) `Code`
- [489](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L489) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [490](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L490) validates [Table 340 Customer Discount Group](https://jonas-paprotka.de/ref/table/340-customer-discount-group/) `Description`
- [491](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L491) writes [Table 340 Customer Discount Group](https://jonas-paprotka.de/ref/table/340-customer-discount-group/) Insert(true)

## CreateItemDiscountGroup

[Line 494](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L494).

- [497](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L497) validates [Table 341 Item Discount Group](https://jonas-paprotka.de/ref/table/341-item-discount-group/) `Code`
- [498](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L498) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [499](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L499) validates [Table 341 Item Discount Group](https://jonas-paprotka.de/ref/table/341-item-discount-group/) `Description`
- [500](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L500) writes [Table 341 Item Discount Group](https://jonas-paprotka.de/ref/table/341-item-discount-group/) Insert(true)

## CreateDeferralTemplate

[Line 503](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L503).

- [507](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L507) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [508](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L508) calls `CreateGLAccountNo`
- [513](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L513) writes [Table 1700 Deferral Template](https://jonas-paprotka.de/ref/table/1700-deferral-template/) Insert(true)

## CreateDeferralTemplateCode

[Line 516](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L516).

- [520](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L520) calls `CreateDeferralTemplate`

## CreateFinanceChargeMemoHeader

[Line 524](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L524).

- [527](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L527) writes [Table 302 Finance Charge Memo Header](https://jonas-paprotka.de/ref/table/302-finance-charge-memo-header/) Insert(true)
- [528](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L528) validates [Table 302 Finance Charge Memo Header](https://jonas-paprotka.de/ref/table/302-finance-charge-memo-header/) `Customer No.`
- [529](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L529) writes [Table 302 Finance Charge Memo Header](https://jonas-paprotka.de/ref/table/302-finance-charge-memo-header/) Modify(true)

## CreateFinanceChargeMemoLine

[Line 532](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L532).

- [537](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L537) validates [Table 303 Finance Charge Memo Line](https://jonas-paprotka.de/ref/table/303-finance-charge-memo-line/) `Finance Charge Memo No.`
- [539](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L539) validates [Table 303 Finance Charge Memo Line](https://jonas-paprotka.de/ref/table/303-finance-charge-memo-line/) `Line No.`
- [539](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L539) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [540](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L540) writes [Table 303 Finance Charge Memo Line](https://jonas-paprotka.de/ref/table/303-finance-charge-memo-line/) Insert(true)
- [541](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L541) validates [Table 303 Finance Charge Memo Line](https://jonas-paprotka.de/ref/table/303-finance-charge-memo-line/) `Type`
- [542](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L542) writes [Table 303 Finance Charge Memo Line](https://jonas-paprotka.de/ref/table/303-finance-charge-memo-line/) Modify(true)

## CreateFinanceChargeTerms

[Line 545](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L545).

- [548](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L548) validates [Table 5 Finance Charge Terms](https://jonas-paprotka.de/ref/table/5-finance-charge-terms/) `Code`
- [550](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L550) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [552](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L552) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [553](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L553) writes [Table 5 Finance Charge Terms](https://jonas-paprotka.de/ref/table/5-finance-charge-terms/) Insert(true)

## CreateFinanceChargeText

[Line 556](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L556).

- [561](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L561) validates [Table 301 Finance Charge Text](https://jonas-paprotka.de/ref/table/301-finance-charge-text/) `Fin. Charge Terms Code`
- [562](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L562) validates [Table 301 Finance Charge Text](https://jonas-paprotka.de/ref/table/301-finance-charge-text/) `Position`
- [564](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L564) validates [Table 301 Finance Charge Text](https://jonas-paprotka.de/ref/table/301-finance-charge-text/) `Line No.`
- [564](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L564) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [565](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L565) writes [Table 301 Finance Charge Text](https://jonas-paprotka.de/ref/table/301-finance-charge-text/) Insert(true)
- [566](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L566) validates [Table 301 Finance Charge Text](https://jonas-paprotka.de/ref/table/301-finance-charge-text/) `Text`
- [567](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L567) writes [Table 301 Finance Charge Text](https://jonas-paprotka.de/ref/table/301-finance-charge-text/) Modify(true)

## CreateExchRate

[Line 570](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L570).

- [573](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L573) validates [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `Currency Code`
- [574](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L574) validates [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `Starting Date`
- [575](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L575) writes [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) Insert(true)

## CreateExchangeRate

[Line 578](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L578).

- [583](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L583) validates [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `Currency Code`
- [584](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L584) validates [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `Starting Date`
- [585](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L585) writes [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) Insert(true)
- [587](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L587) validates [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `Exchange Rate Amount`
- [588](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L588) validates [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `Adjustment Exch. Rate Amount`
- [589](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L589) validates [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `Relational Exch. Rate Amount`
- [590](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L590) validates [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `Relational Adjmt Exch Rate Amt`
- [591](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L591) writes [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) Modify(true)

## CreateGenBusPostingGroup

[Line 594](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L594).

- [597](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L597) validates [Table 250 Gen. Business Posting Group](https://jonas-paprotka.de/ref/table/250-gen-business-posting-group/) `Code`
- [599](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L599) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [600](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L600) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [603](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L603) validates [Table 250 Gen. Business Posting Group](https://jonas-paprotka.de/ref/table/250-gen-business-posting-group/) `Description`
- [604](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L604) writes [Table 250 Gen. Business Posting Group](https://jonas-paprotka.de/ref/table/250-gen-business-posting-group/) Insert(true)

## CreateGeneralPostingSetup

[Line 607](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L607).

- [610](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L610) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Gen. Bus. Posting Group`
- [611](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L611) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Gen. Prod. Posting Group`
- [612](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L612) writes [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) Insert(true)

## CreateGeneralPostingSetupInvt

[Line 615](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L615).

- [620](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L620) calls `CreateGenBusPostingGroup`
- [621](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L621) calls `CreateGenProdPostingGroup`
- [622](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L622) calls `CreateGeneralPostingSetup`
- [623](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L623) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Sales Account`
- [623](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L623) calls `CreateGLAccountNo`
- [624](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L624) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Purch. Account`
- [624](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L624) calls `CreateGLAccountNo`
- [625](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L625) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `COGS Account`
- [625](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L625) calls `CreateGLAccountNo`
- [626](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L626) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Inventory Adjmt. Account`
- [626](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L626) calls `CreateGLAccountNo`
- [627](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L627) writes [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) Modify(true)

## CreateGenProdPostingGroup

[Line 630](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L630).

- [633](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L633) validates [Table 251 Gen. Product Posting Group](https://jonas-paprotka.de/ref/table/251-gen-product-posting-group/) `Code`
- [635](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L635) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [636](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L636) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [639](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L639) validates [Table 251 Gen. Product Posting Group](https://jonas-paprotka.de/ref/table/251-gen-product-posting-group/) `Description`
- [640](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L640) writes [Table 251 Gen. Product Posting Group](https://jonas-paprotka.de/ref/table/251-gen-product-posting-group/) Insert(true)

## CreateInsurance

[Line 643](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L643).

- [646](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L646) writes [Table 5628 Insurance](https://jonas-paprotka.de/ref/table/5628-insurance/) Insert(true)
- [647](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L647) validates [Table 5628 Insurance](https://jonas-paprotka.de/ref/table/5628-insurance/) `Description`
- [648](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L648) writes [Table 5628 Insurance](https://jonas-paprotka.de/ref/table/5628-insurance/) Modify(true)

## CreateRandomExchangeRate

[Line 651](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L651).

- [656](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L656) validates [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `Currency Code`
- [657](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L657) validates [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `Starting Date`
- [657](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L657) calls `FindEarliestDateForExhRate`
- [658](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L658) writes [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) Insert(true)
- [661](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L661) validates [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `Exchange Rate Amount`
- [661](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L661) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`
- [662](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L662) validates [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `Adjustment Exch. Rate Amount`
- [665](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L665) validates [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `Relational Exch. Rate Amount`
- [666](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L666) validates [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `Relational Adjmt Exch Rate Amt`
- [667](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L667) writes [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) Modify(true)

## CreateGeneralJnlLine

[Line 670](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L670).

- [675](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L675) calls `CreateGeneralJnlLineWithBalAcc`

## CreateGeneralJnlLineWithBalAcc

[Line 680](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L680).

- [682](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L682) calls [Codeunit 131306 Library - Journals](https://jonas-paprotka.de/ref/codeunit/131306-library-journals/) `CreateGenJournalLine`

## CreateGeneralJnlLine2

[Line 686](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L686).

- [692](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L692) calls `CreateGeneralJnlLine2WithBalAcc`

## CreateGeneralJnlLine2WithBalAcc

[Line 696](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L696).

- [699](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L699) calls [Codeunit 131306 Library - Journals](https://jonas-paprotka.de/ref/codeunit/131306-library-journals/) `CreateGenJournalLine2`

## CreateFAJournalLine

[Line 703](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L703).

- [715](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L715) validates [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) `Journal Template Name`
- [716](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L716) validates [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) `Journal Batch Name`
- [718](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L718) validates [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) `Line No.`
- [718](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L718) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [719](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L719) writes [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) Insert(true)
- [720](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L720) validates [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) `Posting Date`
- [721](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L721) validates [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) `Document Type`
- [722](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L722) validates [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) `FA No.`
- [723](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L723) validates [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) `FA Posting Type`
- [724](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L724) validates [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) `FA Posting Date`
- [725](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L725) validates [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) `Amount`
- [727](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L727) validates [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) `Document No.`
- [728](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L728) calls [Codeunit 310 No. Series](https://jonas-paprotka.de/ref/codeunit/310-no-series/) `PeekNextNo`
- [729](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L729) validates [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) `External Document No.`
- [730](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L730) writes [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) Modify(true)

## CreateGLAccount

[Line 733](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L733).

- [737](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L737) validates [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) `No.`
- [740](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L740) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [741](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L741) validates [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) `Name`
- [742](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L742) writes [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) Insert(true)

## CreateGLAccountNo

[Line 745](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L745).

- [749](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L749) calls `CreateGLAccount`

## CreateGLAccountNoWithDirectPosting

[Line 753](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L753).

- [757](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L757) calls `CreateGLAccount`
- [758](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L758) validates [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) `Direct Posting`
- [759](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L759) writes [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) Modify

## CreateGLAccountWithSalesSetup

[Line 763](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L763).

- [768](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L768) calls `FindVATPostingSetup`
- [769](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L769) calls `CreateGLAccountWithVATPostingSetup`

## CreateGLAccountWithPurchSetup

[Line 772](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L772).

- [777](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L777) calls `FindVATPostingSetup`
- [778](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L778) calls `CreateGLAccountWithVATPostingSetup`

## CreateGLAccountWithVATPostingSetup

[Line 781](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L781).

- [786](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L786) calls `FindGeneralPostingSetup`
- [787](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L787) calls `CreateGLAccount`
- [788](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L788) validates [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) `Account Type`
- [789](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L789) calls `UpdateGLAccountWithPostingSetup`

## CreateGLAccountCategory

[Line 793](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L793).

- [798](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L798) validates [Table 570 G/L Account Category](https://jonas-paprotka.de/ref/table/570-g-l-account-category/) `Account Category`
- [798](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L798) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandIntInRange`
- [799](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L799) validates [Table 570 G/L Account Category](https://jonas-paprotka.de/ref/table/570-g-l-account-category/) `Additional Report Definition`
- [799](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L799) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandIntInRange`
- [800](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L800) validates [Table 570 G/L Account Category](https://jonas-paprotka.de/ref/table/570-g-l-account-category/) `Description`
- [800](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L800) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomText`
- [801](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L801) writes [Table 570 G/L Account Category](https://jonas-paprotka.de/ref/table/570-g-l-account-category/) Insert

## CreateGLBudgetEntry

[Line 804](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L804).

- [810](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L810) validates [Table 96 G/L Budget Entry](https://jonas-paprotka.de/ref/table/96-g-l-budget-entry/) `Entry No.`
- [811](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L811) validates [Table 96 G/L Budget Entry](https://jonas-paprotka.de/ref/table/96-g-l-budget-entry/) `Budget Name`
- [812](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L812) validates [Table 96 G/L Budget Entry](https://jonas-paprotka.de/ref/table/96-g-l-budget-entry/) `G/L Account No.`
- [813](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L813) validates [Table 96 G/L Budget Entry](https://jonas-paprotka.de/ref/table/96-g-l-budget-entry/) `Date`
- [814](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L814) writes [Table 96 G/L Budget Entry](https://jonas-paprotka.de/ref/table/96-g-l-budget-entry/) Insert(true)

## CreateGLBudgetName

[Line 817](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L817).

- [820](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L820) validates [Table 95 G/L Budget Name](https://jonas-paprotka.de/ref/table/95-g-l-budget-name/) `Name`
- [820](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L820) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [821](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L821) validates [Table 95 G/L Budget Name](https://jonas-paprotka.de/ref/table/95-g-l-budget-name/) `Description`
- [822](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L822) writes [Table 95 G/L Budget Name](https://jonas-paprotka.de/ref/table/95-g-l-budget-name/) Insert(true)

## CreateGenJnlAllocation

[Line 825](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L825).

- [830](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L830) validates [Table 221 Gen. Jnl. Allocation](https://jonas-paprotka.de/ref/table/221-gen-jnl-allocation/) `Journal Template Name`
- [831](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L831) validates [Table 221 Gen. Jnl. Allocation](https://jonas-paprotka.de/ref/table/221-gen-jnl-allocation/) `Journal Batch Name`
- [832](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L832) validates [Table 221 Gen. Jnl. Allocation](https://jonas-paprotka.de/ref/table/221-gen-jnl-allocation/) `Journal Line No.`
- [834](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L834) validates [Table 221 Gen. Jnl. Allocation](https://jonas-paprotka.de/ref/table/221-gen-jnl-allocation/) `Line No.`
- [834](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L834) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [835](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L835) writes [Table 221 Gen. Jnl. Allocation](https://jonas-paprotka.de/ref/table/221-gen-jnl-allocation/) Insert(true)

## CreateGenJournalBatch

[Line 838](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L838).

- [844](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L844) validates [Table 232 Gen. Journal Batch](https://jonas-paprotka.de/ref/table/232-gen-journal-batch/) `Journal Template Name`
- [845](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L845) validates [Table 232 Gen. Journal Batch](https://jonas-paprotka.de/ref/table/232-gen-journal-batch/) `Name`
- [847](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L847) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `ConvertNumericToText`
- [849](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L849) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [851](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L851) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [852](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L852) validates [Table 232 Gen. Journal Batch](https://jonas-paprotka.de/ref/table/232-gen-journal-batch/) `Description`
- [853](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L853) writes [Table 232 Gen. Journal Batch](https://jonas-paprotka.de/ref/table/232-gen-journal-batch/) Insert(true)

## CreateGenJournalTemplate

[Line 856](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L856).

- [859](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L859) validates [Table 80 Gen. Journal Template](https://jonas-paprotka.de/ref/table/80-gen-journal-template/) `Name`
- [862](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L862) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [864](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L864) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [865](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L865) validates [Table 80 Gen. Journal Template](https://jonas-paprotka.de/ref/table/80-gen-journal-template/) `Description`
- [867](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L867) writes [Table 80 Gen. Journal Template](https://jonas-paprotka.de/ref/table/80-gen-journal-template/) Insert(true)
- [870](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L870) validates [Table 80 Gen. Journal Template](https://jonas-paprotka.de/ref/table/80-gen-journal-template/) `Force Doc. Balance`
- [871](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L871) writes [Table 80 Gen. Journal Template](https://jonas-paprotka.de/ref/table/80-gen-journal-template/) Modify(true)

## CreateICGLAccount

[Line 875](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L875).

- [878](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L878) validates [Table 410 IC G/L Account](https://jonas-paprotka.de/ref/table/410-ic-g-l-account/) `No.`
- [881](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L881) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [882](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L882) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [883](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L883) validates [Table 410 IC G/L Account](https://jonas-paprotka.de/ref/table/410-ic-g-l-account/) `Name`
- [884](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L884) writes [Table 410 IC G/L Account](https://jonas-paprotka.de/ref/table/410-ic-g-l-account/) Insert(true)

## CreateDimension

[Line 887](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L887).

- [890](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L890) validates [Table 348 Dimension](https://jonas-paprotka.de/ref/table/348-dimension/) `Code`
- [893](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L893) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [894](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L894) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [895](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L895) validates [Table 348 Dimension](https://jonas-paprotka.de/ref/table/348-dimension/) `Name`
- [896](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L896) writes [Table 348 Dimension](https://jonas-paprotka.de/ref/table/348-dimension/) Insert(true)

## CreateDimensionValue

[Line 899](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L899).

- [903](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L903) calls `CreateDimension`

## CreateDimensionValue

[Line 907](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L907).

- [910](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L910) validates [Table 349 Dimension Value](https://jonas-paprotka.de/ref/table/349-dimension-value/) `Code`
- [913](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L913) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [914](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L914) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [915](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L915) validates [Table 349 Dimension Value](https://jonas-paprotka.de/ref/table/349-dimension-value/) `Dimension Code`
- [916](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L916) validates [Table 349 Dimension Value](https://jonas-paprotka.de/ref/table/349-dimension-value/) `Name`
- [917](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L917) writes [Table 349 Dimension Value](https://jonas-paprotka.de/ref/table/349-dimension-value/) Insert(true)

## CreateICDimension

[Line 920](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L920).

- [923](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L923) validates [Table 411 IC Dimension](https://jonas-paprotka.de/ref/table/411-ic-dimension/) `Code`
- [926](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L926) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [927](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L927) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [928](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L928) validates [Table 411 IC Dimension](https://jonas-paprotka.de/ref/table/411-ic-dimension/) `Name`
- [929](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L929) writes [Table 411 IC Dimension](https://jonas-paprotka.de/ref/table/411-ic-dimension/) Insert(true)

## CreateICDimensionValue

[Line 932](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L932).

- [936](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L936) calls `CreateICDimension`

## CreateICDimensionValue

[Line 940](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L940).

- [943](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L943) validates [Table 412 IC Dimension Value](https://jonas-paprotka.de/ref/table/412-ic-dimension-value/) `Code`
- [946](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L946) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [947](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L947) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [948](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L948) validates [Table 412 IC Dimension Value](https://jonas-paprotka.de/ref/table/412-ic-dimension-value/) `Dimension Code`
- [949](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L949) validates [Table 412 IC Dimension Value](https://jonas-paprotka.de/ref/table/412-ic-dimension-value/) `Name`
- [950](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L950) writes [Table 412 IC Dimension Value](https://jonas-paprotka.de/ref/table/412-ic-dimension-value/) Insert(true)

## CreateICPartner

[Line 953](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L953).

- [956](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L956) validates [Table 413 IC Partner](https://jonas-paprotka.de/ref/table/413-ic-partner/) `Code`
- [959](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L959) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [960](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L960) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [961](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L961) validates [Table 413 IC Partner](https://jonas-paprotka.de/ref/table/413-ic-partner/) `Name`
- [962](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L962) calls `CreateGLAccountNo`
- [963](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L963) calls `CreateGLAccountNo`
- [964](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L964) writes [Table 413 IC Partner](https://jonas-paprotka.de/ref/table/413-ic-partner/) Insert(true)

## CreateICPartnerNo

[Line 967](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L967).

- [971](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L971) calls `CreateICPartner`

## CreateInvDiscForCustomer

[Line 975](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L975).

- [978](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L978) validates [Table 19 Cust. Invoice Disc.](https://jonas-paprotka.de/ref/table/19-cust-invoice-disc/) `Code`
- [979](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L979) validates [Table 19 Cust. Invoice Disc.](https://jonas-paprotka.de/ref/table/19-cust-invoice-disc/) `Currency Code`
- [980](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L980) validates [Table 19 Cust. Invoice Disc.](https://jonas-paprotka.de/ref/table/19-cust-invoice-disc/) `Minimum Amount`
- [981](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L981) writes [Table 19 Cust. Invoice Disc.](https://jonas-paprotka.de/ref/table/19-cust-invoice-disc/) Insert(true)

## CreateInvDiscForVendor

[Line 984](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L984).

- [987](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L987) validates [Table 24 Vendor Invoice Disc.](https://jonas-paprotka.de/ref/table/24-vendor-invoice-disc/) `Code`
- [988](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L988) validates [Table 24 Vendor Invoice Disc.](https://jonas-paprotka.de/ref/table/24-vendor-invoice-disc/) `Currency Code`
- [989](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L989) validates [Table 24 Vendor Invoice Disc.](https://jonas-paprotka.de/ref/table/24-vendor-invoice-disc/) `Minimum Amount`
- [990](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L990) writes [Table 24 Vendor Invoice Disc.](https://jonas-paprotka.de/ref/table/24-vendor-invoice-disc/) Insert(true)

## CreateItemAnalysisView

[Line 993](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L993).

- [996](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L996) validates [Table 7152 Item Analysis View](https://jonas-paprotka.de/ref/table/7152-item-analysis-view/) `Analysis Area`
- [997](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L997) validates [Table 7152 Item Analysis View](https://jonas-paprotka.de/ref/table/7152-item-analysis-view/) `Code`
- [997](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L997) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [999](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L999) validates [Table 7152 Item Analysis View](https://jonas-paprotka.de/ref/table/7152-item-analysis-view/) `Name`
- [1000](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1000) writes [Table 7152 Item Analysis View](https://jonas-paprotka.de/ref/table/7152-item-analysis-view/) Insert(true)

## GetAnyLanguageDifferentFromCurrent

[Line 1003](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1003).

- [1010](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1010) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandIntInRange`

## CreateLineDiscForCustomer

[Line 1014](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1014).

- [1017](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1017) validates [Table 7004 Sales Line Discount](https://jonas-paprotka.de/ref/table/7004-sales-line-discount/) `Type`
- [1018](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1018) validates [Table 7004 Sales Line Discount](https://jonas-paprotka.de/ref/table/7004-sales-line-discount/) `Code`
- [1019](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1019) validates [Table 7004 Sales Line Discount](https://jonas-paprotka.de/ref/table/7004-sales-line-discount/) `Sales Type`
- [1020](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1020) validates [Table 7004 Sales Line Discount](https://jonas-paprotka.de/ref/table/7004-sales-line-discount/) `Sales Code`
- [1021](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1021) validates [Table 7004 Sales Line Discount](https://jonas-paprotka.de/ref/table/7004-sales-line-discount/) `Starting Date`
- [1022](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1022) validates [Table 7004 Sales Line Discount](https://jonas-paprotka.de/ref/table/7004-sales-line-discount/) `Currency Code`
- [1024](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1024) validates [Table 7004 Sales Line Discount](https://jonas-paprotka.de/ref/table/7004-sales-line-discount/) `Variant Code`
- [1025](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1025) validates [Table 7004 Sales Line Discount](https://jonas-paprotka.de/ref/table/7004-sales-line-discount/) `Unit of Measure Code`
- [1027](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1027) validates [Table 7004 Sales Line Discount](https://jonas-paprotka.de/ref/table/7004-sales-line-discount/) `Minimum Quantity`
- [1028](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1028) writes [Table 7004 Sales Line Discount](https://jonas-paprotka.de/ref/table/7004-sales-line-discount/) Insert(true)

## CreateLineDiscForVendor

[Line 1031](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1031).

- [1034](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1034) validates [Table 7014 Purchase Line Discount](https://jonas-paprotka.de/ref/table/7014-purchase-line-discount/) `Item No.`
- [1035](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1035) validates [Table 7014 Purchase Line Discount](https://jonas-paprotka.de/ref/table/7014-purchase-line-discount/) `Vendor No.`
- [1036](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1036) validates [Table 7014 Purchase Line Discount](https://jonas-paprotka.de/ref/table/7014-purchase-line-discount/) `Starting Date`
- [1037](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1037) validates [Table 7014 Purchase Line Discount](https://jonas-paprotka.de/ref/table/7014-purchase-line-discount/) `Currency Code`
- [1038](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1038) validates [Table 7014 Purchase Line Discount](https://jonas-paprotka.de/ref/table/7014-purchase-line-discount/) `Variant Code`
- [1039](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1039) validates [Table 7014 Purchase Line Discount](https://jonas-paprotka.de/ref/table/7014-purchase-line-discount/) `Unit of Measure Code`
- [1040](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1040) validates [Table 7014 Purchase Line Discount](https://jonas-paprotka.de/ref/table/7014-purchase-line-discount/) `Minimum Quantity`
- [1041](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1041) writes [Table 7014 Purchase Line Discount](https://jonas-paprotka.de/ref/table/7014-purchase-line-discount/) Insert(true)

## CreateNoSeriesCode

[Line 1044](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1044).

- [1050](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1050) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `CreateNoSeries`
- [1051](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1051) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `CreateNoSeriesLine`

## CreateNoSeriesCode

[Line 1055](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1055).

- [1062](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1062) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `CreateNoSeries`
- [1063](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1063) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `CreateNoSeriesLine`

## CreatePaymentMethod

[Line 1067](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1067).

- [1070](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1070) validates [Table 289 Payment Method](https://jonas-paprotka.de/ref/table/289-payment-method/) `Code`
- [1073](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1073) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1074](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1074) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [1075](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1075) validates [Table 289 Payment Method](https://jonas-paprotka.de/ref/table/289-payment-method/) `Description`
- [1075](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1075) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateGUID`
- [1076](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1076) writes [Table 289 Payment Method](https://jonas-paprotka.de/ref/table/289-payment-method/) Insert(true)

## CreatePaymentMethodWithBalAccount

[Line 1079](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1079).

- [1081](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1081) calls `CreatePaymentMethod`
- [1082](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1082) validates [Table 289 Payment Method](https://jonas-paprotka.de/ref/table/289-payment-method/) `Bal. Account Type`
- [1083](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1083) validates [Table 289 Payment Method](https://jonas-paprotka.de/ref/table/289-payment-method/) `Bal. Account No.`
- [1083](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1083) calls `CreateGLAccountNo`
- [1084](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1084) writes [Table 289 Payment Method](https://jonas-paprotka.de/ref/table/289-payment-method/) Modify(true)

## CreatePaymentMethodTranslation

[Line 1088](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1088).

- [1093](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1093) validates [Table 466 Payment Method Translation](https://jonas-paprotka.de/ref/table/466-payment-method-translation/) `Payment Method Code`
- [1094](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1094) validates [Table 466 Payment Method Translation](https://jonas-paprotka.de/ref/table/466-payment-method-translation/) `Language Code`
- [1094](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1094) calls `GetAnyLanguageDifferentFromCurrent`
- [1095](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1095) validates [Table 466 Payment Method Translation](https://jonas-paprotka.de/ref/table/466-payment-method-translation/) `Description`
- [1095](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1095) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateGUID`
- [1096](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1096) writes [Table 466 Payment Method Translation](https://jonas-paprotka.de/ref/table/466-payment-method-translation/) Insert(true)

## CreatePaymentTerms

[Line 1100](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1100).

- [1103](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1103) validates [Table 3 Payment Terms](https://jonas-paprotka.de/ref/table/3-payment-terms/) `Code`
- [1106](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1106) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1108](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1108) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [1109](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1109) writes [Table 3 Payment Terms](https://jonas-paprotka.de/ref/table/3-payment-terms/) Insert(true)
- [1111](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1111) raises `OnAfterCreatePaymentTerms`

## CreatePaymentTermsDiscount

[Line 1114](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1114).

- [1116](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1116) calls `CreatePaymentTerms`
- [1117](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1117) validates [Table 3 Payment Terms](https://jonas-paprotka.de/ref/table/3-payment-terms/) `Calc. Pmt. Disc. on Cr. Memos`
- [1118](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1118) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`
- [1119](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1119) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`
- [1120](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1120) validates [Table 3 Payment Terms](https://jonas-paprotka.de/ref/table/3-payment-terms/) `Due Date Calculation`
- [1121](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1121) validates [Table 3 Payment Terms](https://jonas-paprotka.de/ref/table/3-payment-terms/) `Discount Date Calculation`
- [1122](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1122) validates [Table 3 Payment Terms](https://jonas-paprotka.de/ref/table/3-payment-terms/) `Discount %`
- [1122](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1122) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`
- [1123](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1123) writes [Table 3 Payment Terms](https://jonas-paprotka.de/ref/table/3-payment-terms/) Modify(true)

## CreatePostCode

[Line 1126](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1126).

- [1131](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1131) validates [Table 225 Post Code](https://jonas-paprotka.de/ref/table/225-post-code/) `Code`
- [1134](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1134) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1136](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1136) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [1137](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1137) validates [Table 225 Post Code](https://jonas-paprotka.de/ref/table/225-post-code/) `City`
- [1140](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1140) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1142](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1142) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [1143](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1143) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`
- [1144](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1144) validates [Table 225 Post Code](https://jonas-paprotka.de/ref/table/225-post-code/) `Country/Region Code`
- [1145](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1145) writes [Table 225 Post Code](https://jonas-paprotka.de/ref/table/225-post-code/) Insert(true)
- [1147](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1147) raises `OnAfterCreatePostCode`

## CreatePrepaymentVATPostingSetup

[Line 1150](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1150), local.

- [1156](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1156) raises `OnBeforeCreatePrepaymentVATPostingSetup`
- [1168](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1168) calls `CreateVATBusinessPostingGroup`
- [1171](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1171) calls `CreateVATProductPostingGroup`
- [1176](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1176) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandIntInRange`
- [1177](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1177) calls `CreateGLAccountNo`
- [1183](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1183) writes [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) Insert
- [1185](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1185) raises `OnAfterCreatePrepaymentVATPostingSetup`

## CreatePrepaymentGenPostingSetup

[Line 1188](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1188), local.

- [1201](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1201) calls `CreateGenBusPostingGroup`
- [1204](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1204) calls `CreateGenProdPostingGroup`
- [1206](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1206) calls `CreateGLAccount`
- [1210](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1210) calls `CreateGLAccountNo`
- [1211](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1211) calls `CreateGLAccountNo`
- [1213](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1213) calls `CreateGLAccountNo`
- [1217](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1217) calls `CreateGLAccountNo`
- [1218](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1218) calls `CreateGLAccountNo`
- [1220](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1220) calls `CreateGLAccountNo`
- [1223](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1223) writes [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) Insert

## CreatePrepaymentVATSetup

[Line 1226](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1226).

- [1233](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1233) calls `CreatePrepaymentGenPostingSetup`
- [1234](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1234) calls `SetPostingGroupsOnPrepmtGLAccount`
- [1236](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1236) calls `CreateGLAccount`
- [1238](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1238) raises `OnBeforeSetPostingGroupsOnPrepmtGLAccount`
- [1244](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1244) calls `SetPostingGroupsOnPrepmtGLAccount`
- [1248](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1248) calls `SetPostingGroupsOnPrepmtGLAccount`
- [1251](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1251) raises `OnAfterSetPostingGroupsOnPrepmtGLAccount`

## CreateReasonCode

[Line 1254](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1254).

- [1257](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1257) validates [Table 231 Reason Code](https://jonas-paprotka.de/ref/table/231-reason-code/) `Code`
- [1260](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1260) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1261](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1261) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [1262](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1262) validates [Table 231 Reason Code](https://jonas-paprotka.de/ref/table/231-reason-code/) `Description`
- [1263](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1263) writes [Table 231 Reason Code](https://jonas-paprotka.de/ref/table/231-reason-code/) Insert(true)

## CreateReminderHeader

[Line 1266](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1266).

- [1269](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1269) writes [Table 295 Reminder Header](https://jonas-paprotka.de/ref/table/295-reminder-header/) Insert(true)

## CreateReminderLevel

[Line 1272](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1272).

- [1275](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1275) validates [Table 293 Reminder Level](https://jonas-paprotka.de/ref/table/293-reminder-level/) `Reminder Terms Code`
- [1276](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1276) calls [Table 293 Reminder Level](https://jonas-paprotka.de/ref/table/293-reminder-level/) `NewRecord`
- [1277](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1277) writes [Table 293 Reminder Level](https://jonas-paprotka.de/ref/table/293-reminder-level/) Insert(true)

## CreateReminderTermsAndLevel

[Line 1280](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1280).

- [1282](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1282) calls `CreateReminderTerms`
- [1283](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1283) calls `CreateReminderLevel`

## CreateReminderAttachmentText

[Line 1286](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1286).

- [1296](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1296) calls [Table 502 Reminder Attachment Text](https://jonas-paprotka.de/ref/table/502-reminder-attachment-text/) `SetDefaultContentForNewLanguage`

## CreateReminderAttachmentText

[Line 1302](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1302).

- [1312](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1312) calls [Table 502 Reminder Attachment Text](https://jonas-paprotka.de/ref/table/502-reminder-attachment-text/) `SetDefaultContentForNewLanguage`

## CreateReminderAttachmentTextLine

[Line 1318](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1318).

- [1329](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1329) validates [Table 504 Reminder Attachment Text Line](https://jonas-paprotka.de/ref/table/504-reminder-attachment-text-line/) `Id`
- [1330](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1330) validates [Table 504 Reminder Attachment Text Line](https://jonas-paprotka.de/ref/table/504-reminder-attachment-text-line/) `Language Code`
- [1331](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1331) validates [Table 504 Reminder Attachment Text Line](https://jonas-paprotka.de/ref/table/504-reminder-attachment-text-line/) `Position`
- [1332](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1332) validates [Table 504 Reminder Attachment Text Line](https://jonas-paprotka.de/ref/table/504-reminder-attachment-text-line/) `Line No.`
- [1333](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1333) validates [Table 504 Reminder Attachment Text Line](https://jonas-paprotka.de/ref/table/504-reminder-attachment-text-line/) `Text`
- [1334](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1334) writes [Table 504 Reminder Attachment Text Line](https://jonas-paprotka.de/ref/table/504-reminder-attachment-text-line/) Insert(true)

## SetReminderAttachmentTextInlineFeeDescription

[Line 1337](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1337).

- [1339](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1339) validates [Table 502 Reminder Attachment Text](https://jonas-paprotka.de/ref/table/502-reminder-attachment-text/) `Inline Fee Description`
- [1340](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1340) writes [Table 502 Reminder Attachment Text](https://jonas-paprotka.de/ref/table/502-reminder-attachment-text/) Modify(true)

## CreateReminderEmailText

[Line 1343](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1343).

- [1353](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1353) calls [Table 503 Reminder Email Text](https://jonas-paprotka.de/ref/table/503-reminder-email-text/) `SetDefaultContentForNewLanguage`

## CreateReminderEmailText

[Line 1359](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1359).

- [1369](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1369) calls [Table 503 Reminder Email Text](https://jonas-paprotka.de/ref/table/503-reminder-email-text/) `SetDefaultContentForNewLanguage`

## SetReminderEmailTextBody

[Line 1375](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1375).

- [1377](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1377) calls [Table 503 Reminder Email Text](https://jonas-paprotka.de/ref/table/503-reminder-email-text/) `SetBodyText`

## CreateReminderLine

[Line 1380](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1380).

- [1385](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1385) validates [Table 296 Reminder Line](https://jonas-paprotka.de/ref/table/296-reminder-line/) `Reminder No.`
- [1387](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1387) validates [Table 296 Reminder Line](https://jonas-paprotka.de/ref/table/296-reminder-line/) `Line No.`
- [1387](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1387) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [1388](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1388) writes [Table 296 Reminder Line](https://jonas-paprotka.de/ref/table/296-reminder-line/) Insert(true)
- [1389](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1389) validates [Table 296 Reminder Line](https://jonas-paprotka.de/ref/table/296-reminder-line/) `Type`
- [1390](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1390) writes [Table 296 Reminder Line](https://jonas-paprotka.de/ref/table/296-reminder-line/) Modify(true)

## CreateReminderTerms

[Line 1393](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1393).

- [1396](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1396) validates [Table 292 Reminder Terms](https://jonas-paprotka.de/ref/table/292-reminder-terms/) `Code`
- [1396](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1396) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1397](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1397) validates [Table 292 Reminder Terms](https://jonas-paprotka.de/ref/table/292-reminder-terms/) `Description`
- [1398](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1398) writes [Table 292 Reminder Terms](https://jonas-paprotka.de/ref/table/292-reminder-terms/) Insert(true)

## CreateReminderText

[Line 1401](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1401).

- [1406](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1406) validates [Table 294 Reminder Text](https://jonas-paprotka.de/ref/table/294-reminder-text/) `Reminder Terms Code`
- [1407](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1407) validates [Table 294 Reminder Text](https://jonas-paprotka.de/ref/table/294-reminder-text/) `Reminder Level`
- [1408](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1408) validates [Table 294 Reminder Text](https://jonas-paprotka.de/ref/table/294-reminder-text/) `Position`
- [1410](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1410) validates [Table 294 Reminder Text](https://jonas-paprotka.de/ref/table/294-reminder-text/) `Line No.`
- [1410](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1410) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [1411](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1411) writes [Table 294 Reminder Text](https://jonas-paprotka.de/ref/table/294-reminder-text/) Insert(true)
- [1412](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1412) validates [Table 294 Reminder Text](https://jonas-paprotka.de/ref/table/294-reminder-text/) `Text`
- [1413](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1413) writes [Table 294 Reminder Text](https://jonas-paprotka.de/ref/table/294-reminder-text/) Modify(true)

## CreateRecurringTemplateName

[Line 1416](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1416).

- [1419](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1419) validates [Table 80 Gen. Journal Template](https://jonas-paprotka.de/ref/table/80-gen-journal-template/) `Name`
- [1421](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1421) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1422](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1422) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [1423](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1423) writes [Table 80 Gen. Journal Template](https://jonas-paprotka.de/ref/table/80-gen-journal-template/) Insert(true)
- [1424](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1424) validates [Table 80 Gen. Journal Template](https://jonas-paprotka.de/ref/table/80-gen-journal-template/) `Posting No. Series`
- [1424](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1424) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetGlobalNoSeriesCode`
- [1425](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1425) validates [Table 80 Gen. Journal Template](https://jonas-paprotka.de/ref/table/80-gen-journal-template/) `Recurring`
- [1426](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1426) writes [Table 80 Gen. Journal Template](https://jonas-paprotka.de/ref/table/80-gen-journal-template/) Modify(true)

## CreateRecurringBatchName

[Line 1429](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1429).

- [1436](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1436) validates [Table 232 Gen. Journal Batch](https://jonas-paprotka.de/ref/table/232-gen-journal-batch/) `Journal Template Name`
- [1437](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1437) validates [Table 232 Gen. Journal Batch](https://jonas-paprotka.de/ref/table/232-gen-journal-batch/) `Name`
- [1439](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1439) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1440](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1440) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [1441](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1441) writes [Table 232 Gen. Journal Batch](https://jonas-paprotka.de/ref/table/232-gen-journal-batch/) Insert(true)
- [1442](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1442) validates [Table 232 Gen. Journal Batch](https://jonas-paprotka.de/ref/table/232-gen-journal-batch/) `Posting No. Series`
- [1443](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1443) writes [Table 232 Gen. Journal Batch](https://jonas-paprotka.de/ref/table/232-gen-journal-batch/) Modify(true)

## CreateReturnReasonCode

[Line 1446](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1446).

- [1449](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1449) validates [Table 6635 Return Reason](https://jonas-paprotka.de/ref/table/6635-return-reason/) `Code`
- [1452](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1452) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1453](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1453) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [1454](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1454) validates [Table 6635 Return Reason](https://jonas-paprotka.de/ref/table/6635-return-reason/) `Description`
- [1455](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1455) writes [Table 6635 Return Reason](https://jonas-paprotka.de/ref/table/6635-return-reason/) Insert(true)

## CreateSourceCode

[Line 1458](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1458).

- [1461](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1461) validates [Table 230 Source Code](https://jonas-paprotka.de/ref/table/230-source-code/) `Code`
- [1463](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1463) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1464](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1464) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [1465](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1465) writes [Table 230 Source Code](https://jonas-paprotka.de/ref/table/230-source-code/) Insert(true)

## CreateRelatedVATPostingSetup

[Line 1468](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1468).

- [1474](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1474) calls `CreateVATProductPostingGroup`
- [1476](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1476) calls `CreateGLAccountNo`
- [1477](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1477) calls `CreateGLAccountNo`
- [1478](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1478) writes [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) Insert

## CreateVATBusinessPostingGroup

[Line 1482](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1482).

- [1485](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1485) validates [Table 323 VAT Business Posting Group](https://jonas-paprotka.de/ref/table/323-vat-business-posting-group/) `Code`
- [1487](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1487) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1488](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1488) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [1491](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1491) validates [Table 323 VAT Business Posting Group](https://jonas-paprotka.de/ref/table/323-vat-business-posting-group/) `Description`
- [1492](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1492) writes [Table 323 VAT Business Posting Group](https://jonas-paprotka.de/ref/table/323-vat-business-posting-group/) Insert(true)

## CreateRandomVATIdentifierAndGetCode

[Line 1495](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1495).

- [1499](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1499) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`

## CreateVATPostingSetup

[Line 1502](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1502).

- [1506](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1506) raises `OnBeforeCreateVATPostingSetup`
- [1511](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1511) validates [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) `VAT Bus. Posting Group`
- [1512](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1512) validates [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) `VAT Prod. Posting Group`
- [1513](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1513) writes [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) Insert(true)
- [1515](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1515) raises `OnAfterCreateVATPostingSetup`

## CreateVATPostingSetupWithAccounts

[Line 1518](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1518).

- [1525](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1525) raises `OnBeforeCreateVATPostingSetupWithAccounts`, IsHandled
- [1530](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1530) calls `CreateVATBusinessPostingGroup`
- [1531](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1531) calls `CreateVATProductPostingGroup`
- [1532](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1532) validates [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) `VAT Bus. Posting Group`
- [1533](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1533) validates [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) `VAT Prod. Posting Group`
- [1534](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1534) validates [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) `VAT Calculation Type`
- [1535](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1535) validates [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) `VAT %`
- [1536](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1536) validates [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) `VAT Identifier`
- [1537](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1537) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1538](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1538) validates [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) `Sales VAT Account`
- [1538](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1538) calls `CreateGLAccountNo`
- [1539](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1539) validates [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) `Purchase VAT Account`
- [1539](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1539) calls `CreateGLAccountNo`
- [1540](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1540) validates [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) `Tax Category`
- [1541](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1541) writes [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) Insert(true)

## CreateVATProductPostingGroup

[Line 1544](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1544).

- [1548](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1548) raises `OnBeforeCreateVATProductPostingGroup`
- [1553](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1553) validates [Table 324 VAT Product Posting Group](https://jonas-paprotka.de/ref/table/324-vat-product-posting-group/) `Code`
- [1555](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1555) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1556](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1556) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [1559](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1559) validates [Table 324 VAT Product Posting Group](https://jonas-paprotka.de/ref/table/324-vat-product-posting-group/) `Description`
- [1560](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1560) writes [Table 324 VAT Product Posting Group](https://jonas-paprotka.de/ref/table/324-vat-product-posting-group/) Insert(true)
- [1562](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1562) raises `OnAfterCreateVATProductPostingGroup`

## CreateVATRegistrationNoFormat

[Line 1565](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1565).

- [1570](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1570) validates [Table 381 VAT Registration No. Format](https://jonas-paprotka.de/ref/table/381-vat-registration-no-format/) `Country/Region Code`
- [1572](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1572) validates [Table 381 VAT Registration No. Format](https://jonas-paprotka.de/ref/table/381-vat-registration-no-format/) `Line No.`
- [1572](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1572) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [1573](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1573) writes [Table 381 VAT Registration No. Format](https://jonas-paprotka.de/ref/table/381-vat-registration-no-format/) Insert(true)

## CreateVATClause

[Line 1576](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1576).

- [1579](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1579) validates [Table 560 VAT Clause](https://jonas-paprotka.de/ref/table/560-vat-clause/) `Code`
- [1580](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1580) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1581](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1581) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [1582](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1582) validates [Table 560 VAT Clause](https://jonas-paprotka.de/ref/table/560-vat-clause/) `Description`
- [1582](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1582) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateGUID`
- [1583](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1583) validates [Table 560 VAT Clause](https://jonas-paprotka.de/ref/table/560-vat-clause/) `Description 2`
- [1583](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1583) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateGUID`
- [1584](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1584) writes [Table 560 VAT Clause](https://jonas-paprotka.de/ref/table/560-vat-clause/) Insert(true)

## GenerateVATRegistrationNo

[Line 1587](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1587).

- [1603](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1603) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`
- [1606](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1606) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`
- [1612](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1612) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`
- [1617](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1617) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1618](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1618) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`

## CreateStandardGeneralJournal

[Line 1621](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1621).

- [1624](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1624) validates [Table 750 Standard General Journal](https://jonas-paprotka.de/ref/table/750-standard-general-journal/) `Journal Template Name`
- [1625](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1625) validates [Table 750 Standard General Journal](https://jonas-paprotka.de/ref/table/750-standard-general-journal/) `Code`
- [1628](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1628) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1630](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1630) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [1633](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1633) validates [Table 750 Standard General Journal](https://jonas-paprotka.de/ref/table/750-standard-general-journal/) `Description`
- [1634](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1634) writes [Table 750 Standard General Journal](https://jonas-paprotka.de/ref/table/750-standard-general-journal/) Insert(true)

## CreateStandardItemJournal

[Line 1637](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1637).

- [1640](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1640) validates [Table 752 Standard Item Journal](https://jonas-paprotka.de/ref/table/752-standard-item-journal/) `Journal Template Name`
- [1641](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1641) validates [Table 752 Standard Item Journal](https://jonas-paprotka.de/ref/table/752-standard-item-journal/) `Code`
- [1644](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1644) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1646](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1646) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [1649](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1649) validates [Table 752 Standard Item Journal](https://jonas-paprotka.de/ref/table/752-standard-item-journal/) `Description`
- [1650](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1650) writes [Table 752 Standard Item Journal](https://jonas-paprotka.de/ref/table/752-standard-item-journal/) Insert(true)

## CreateVATStatementLine

[Line 1653](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1653).

- [1658](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1658) validates [Table 256 VAT Statement Line](https://jonas-paprotka.de/ref/table/256-vat-statement-line/) `Statement Template Name`
- [1659](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1659) validates [Table 256 VAT Statement Line](https://jonas-paprotka.de/ref/table/256-vat-statement-line/) `Statement Name`
- [1661](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1661) validates [Table 256 VAT Statement Line](https://jonas-paprotka.de/ref/table/256-vat-statement-line/) `Line No.`
- [1661](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1661) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [1662](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1662) writes [Table 256 VAT Statement Line](https://jonas-paprotka.de/ref/table/256-vat-statement-line/) Insert(true)

## CreateVATStatementName

[Line 1665](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1665).

- [1668](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1668) validates [Table 257 VAT Statement Name](https://jonas-paprotka.de/ref/table/257-vat-statement-name/) `Statement Template Name`
- [1669](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1669) validates [Table 257 VAT Statement Name](https://jonas-paprotka.de/ref/table/257-vat-statement-name/) `Name`
- [1672](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1672) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1673](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1673) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [1674](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1674) validates [Table 257 VAT Statement Name](https://jonas-paprotka.de/ref/table/257-vat-statement-name/) `Description`
- [1675](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1675) writes [Table 257 VAT Statement Name](https://jonas-paprotka.de/ref/table/257-vat-statement-name/) Insert(true)

## CreateVATStatementTemplate

[Line 1678](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1678).

- [1681](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1681) validates [Table 255 VAT Statement Template](https://jonas-paprotka.de/ref/table/255-vat-statement-template/) `Name`
- [1684](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1684) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1685](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1685) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [1686](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1686) validates [Table 255 VAT Statement Template](https://jonas-paprotka.de/ref/table/255-vat-statement-template/) `Description`
- [1687](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1687) writes [Table 255 VAT Statement Template](https://jonas-paprotka.de/ref/table/255-vat-statement-template/) Insert(true)

## CreateVATStatementNameWithTemplate

[Line 1690](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1690).

- [1694](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1694) calls `CreateVATStatementTemplate`
- [1695](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1695) calls `CreateVATStatementName`

## CreateTaxArea

[Line 1698](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1698).

- [1701](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1701) validates [Table 318 Tax Area](https://jonas-paprotka.de/ref/table/318-tax-area/) `Code`
- [1704](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1704) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1706](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1706) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [1707](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1707) validates [Table 318 Tax Area](https://jonas-paprotka.de/ref/table/318-tax-area/) `Description`
- [1708](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1708) writes [Table 318 Tax Area](https://jonas-paprotka.de/ref/table/318-tax-area/) Insert(true)

## CreateTaxAreaLine

[Line 1711](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1711).

- [1714](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1714) validates [Table 319 Tax Area Line](https://jonas-paprotka.de/ref/table/319-tax-area-line/) `Tax Area`
- [1715](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1715) validates [Table 319 Tax Area Line](https://jonas-paprotka.de/ref/table/319-tax-area-line/) `Tax Jurisdiction Code`
- [1716](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1716) writes [Table 319 Tax Area Line](https://jonas-paprotka.de/ref/table/319-tax-area-line/) Insert(true)

## CreateTaxGroup

[Line 1719](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1719).

- [1722](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1722) validates [Table 321 Tax Group](https://jonas-paprotka.de/ref/table/321-tax-group/) `Code`
- [1725](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1725) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1727](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1727) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [1728](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1728) validates [Table 321 Tax Group](https://jonas-paprotka.de/ref/table/321-tax-group/) `Description`
- [1729](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1729) writes [Table 321 Tax Group](https://jonas-paprotka.de/ref/table/321-tax-group/) Insert(true)

## CreateTaxJurisdiction

[Line 1732](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1732).

- [1735](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1735) validates [Table 320 Tax Jurisdiction](https://jonas-paprotka.de/ref/table/320-tax-jurisdiction/) `Code`
- [1738](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1738) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [1740](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1740) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [1741](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1741) validates [Table 320 Tax Jurisdiction](https://jonas-paprotka.de/ref/table/320-tax-jurisdiction/) `Description`
- [1742](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1742) writes [Table 320 Tax Jurisdiction](https://jonas-paprotka.de/ref/table/320-tax-jurisdiction/) Insert(true)

## CreateTaxDetail

[Line 1745](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1745).

- [1748](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1748) validates [Table 322 Tax Detail](https://jonas-paprotka.de/ref/table/322-tax-detail/) `Tax Jurisdiction Code`
- [1749](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1749) validates [Table 322 Tax Detail](https://jonas-paprotka.de/ref/table/322-tax-detail/) `Tax Group Code`
- [1750](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1750) validates [Table 322 Tax Detail](https://jonas-paprotka.de/ref/table/322-tax-detail/) `Tax Type`
- [1751](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1751) validates [Table 322 Tax Detail](https://jonas-paprotka.de/ref/table/322-tax-detail/) `Effective Date`
- [1752](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1752) writes [Table 322 Tax Detail](https://jonas-paprotka.de/ref/table/322-tax-detail/) Insert(true)

## CreateCountryRegionWithIntrastatCode

[Line 1755](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1755).

- [1759](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1759) calls `CreateCountryRegion`
- [1760](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1760) validates [Table 9 Country/Region](https://jonas-paprotka.de/ref/table/9-country-region/) `Name`
- [1760](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1760) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateGUID`
- [1761](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1761) validates [Table 9 Country/Region](https://jonas-paprotka.de/ref/table/9-country-region/) `Intrastat Code`
- [1761](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1761) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateGUID`
- [1762](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1762) writes [Table 9 Country/Region](https://jonas-paprotka.de/ref/table/9-country-region/) Modify(true)

## CreateItemBudgetName

[Line 1766](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1766).

- [1769](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1769) validates [Table 7132 Item Budget Name](https://jonas-paprotka.de/ref/table/7132-item-budget-name/) `Analysis Area`
- [1770](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1770) validates [Table 7132 Item Budget Name](https://jonas-paprotka.de/ref/table/7132-item-budget-name/) `Name`
- [1770](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1770) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateGUID`
- [1771](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1771) writes [Table 7132 Item Budget Name](https://jonas-paprotka.de/ref/table/7132-item-budget-name/) Insert(true)

## DisableClosingUnreleasedOrdersMsg

[Line 1774](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1774).

- [1778](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1778) calls [Codeunit 1330 Instruction Mgt.](https://jonas-paprotka.de/ref/codeunit/1330-instruction-mgt/) `DisableMessageForCurrentUser`
- [1778](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1778) calls [Codeunit 1330 Instruction Mgt.](https://jonas-paprotka.de/ref/codeunit/1330-instruction-mgt/) `ClosingUnreleasedOrdersCode`

## DisableMyNotifications

[Line 1781](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1781).

- [1790](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1790) writes [Table 1518 My Notifications](https://jonas-paprotka.de/ref/table/1518-my-notifications/) Insert
- [1793](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1793) writes [Table 1518 My Notifications](https://jonas-paprotka.de/ref/table/1518-my-notifications/) Modify

## FindRecurringTemplateName

[Line 1797](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1797).

- [1802](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1802) calls `CreateRecurringTemplateName`

## FindBankAccount

[Line 1805](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1805).

- [1811](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1811) calls `CreateBankAccount`

## FindBankAccountPostingGroup

[Line 1814](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1814).

- [1817](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1817) calls `CreateBankAccountPostingGroup`

## FindCountryRegion

[Line 1820](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1820).

- [1823](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1823) calls `CreateCountryRegion`

## FindCurrency

[Line 1826](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1826).

- [1829](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1829) calls `CreateCurrency`

## FindEarliestDateForExhRate

[Line 1854](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1854).

- [1858](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1858) calls `MinDate`
- [1861](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1861) calls `MinDate`

## FindGLAccount

[Line 1873](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1873).

- [1876](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1876) calls `SetGLAccountDirectPostingFilter`
- [1877](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1877) calls `SetGLAccountNotBlankGroupsFilter`

## FindGLAccountDataSet

[Line 1882](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1882).

- [1884](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1884) calls `SetGLAccountDirectPostingFilter`
- [1885](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1885) calls `SetGLAccountNotBlankGroupsFilter`

## FindDirectPostingGLAccount

[Line 1889](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1889).

- [1891](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1891) calls `SetGLAccountDirectPostingFilter`

## FindGenBusinessPostingGroup

[Line 1896](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1896).

- [1899](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1899) calls `CreateGenBusPostingGroup`

## FindGenJournalBatch

[Line 1902](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1902).

- [1906](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1906) calls `CreateGenJournalBatch`

## FindGenJournalTemplate

[Line 1909](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1909).

- [1913](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1913) calls `CreateGenJournalTemplate`
- [1915](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1915) validates [Table 80 Gen. Journal Template](https://jonas-paprotka.de/ref/table/80-gen-journal-template/) `Type`
- [1916](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1916) writes [Table 80 Gen. Journal Template](https://jonas-paprotka.de/ref/table/80-gen-journal-template/) Modify(true)

## FindGenJournalTemplateWithGenName

[Line 1921](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1921).

- [1926](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1926) calls `CreateGenJournalTemplate`
- [1928](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1928) validates [Table 80 Gen. Journal Template](https://jonas-paprotka.de/ref/table/80-gen-journal-template/) `Type`
- [1929](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1929) writes [Table 80 Gen. Journal Template](https://jonas-paprotka.de/ref/table/80-gen-journal-template/) Modify(true)

## FindGenProductPostingGroup

[Line 1934](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1934).

- [1937](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1937) calls `CreateGenProdPostingGroup`

## FindGeneralPostingSetupInvtBase

[Line 1948](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1948).

- [1962](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1962) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Purch. Account`
- [1962](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1962) calls `CreateGLAccountNo`
- [1963](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1963) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Inventory Adjmt. Account`
- [1963](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1963) calls `CreateGLAccountNo`
- [1964](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1964) writes [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) Modify(true)
- [1966](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1966) calls `CreateGeneralPostingSetupInvt`

## FindGeneralPostingSetupInvtFull

[Line 1970](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1970).

- [1994](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1994) calls `SetGeneralPostingSetupPrepAccounts`
- [1995](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L1995) writes [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) Modify(true)
- [2002](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2002) calls `SetGeneralPostingSetupInvtAccounts`
- [2003](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2003) calls `SetGeneralPostingSetupMfgAccounts`
- [2004](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2004) calls `SetGeneralPostingSetupPrepAccounts`
- [2005](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2005) writes [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) Modify(true)
- [2010](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2010) calls `SetGeneralPostingSetupInvtAccounts`
- [2011](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2011) calls `SetGeneralPostingSetupMfgAccounts`
- [2012](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2012) calls `SetGeneralPostingSetupPrepAccounts`
- [2013](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2013) calls `SetGeneralPostingSetupPurchAccounts`
- [2014](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2014) writes [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) Modify(true)
- [2016](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2016) calls `FindGeneralPostingSetupInvtBase`

## FindGeneralPostingSetupInvtToGL

[Line 2022](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2022).

- [2040](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2040) calls `SetGeneralPostingSetupInvtAccounts`
- [2041](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2041) calls `SetGeneralPostingSetupMfgAccounts`
- [2042](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2042) writes [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) Modify(true)
- [2044](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2044) calls `FindGeneralPostingSetupInvtBase`

## FindGenPostingSetupWithDefVAT

[Line 2048](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2048).

- [2054](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2054) calls `FindGeneralPostingSetupInvtFull`
- [2055](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2055) calls `FindVATPostingSetupInvt`
- [2057](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2057) validates [Table 250 Gen. Business Posting Group](https://jonas-paprotka.de/ref/table/250-gen-business-posting-group/) `Def. VAT Bus. Posting Group`
- [2058](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2058) writes [Table 250 Gen. Business Posting Group](https://jonas-paprotka.de/ref/table/250-gen-business-posting-group/) Modify
- [2060](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2060) validates [Table 251 Gen. Product Posting Group](https://jonas-paprotka.de/ref/table/251-gen-product-posting-group/) `Def. VAT Prod. Posting Group`
- [2061](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2061) writes [Table 251 Gen. Product Posting Group](https://jonas-paprotka.de/ref/table/251-gen-product-posting-group/) Modify

## FindPaymentMethod

[Line 2064](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2064).

- [2068](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2068) calls `CreatePaymentMethod`

## FindPaymentTerms

[Line 2071](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2071).

- [2074](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2074) calls `CreatePaymentTerms`

## FindPaymentTermsCode

[Line 2077](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2077).

- [2087](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2087) calls `CreatePaymentTerms`

## FindPostCode

[Line 2091](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2091).

- [2094](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2094) calls `CreatePostCode`

## FindVATBusinessPostingGroup

[Line 2108](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2108).

- [2111](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2111) calls `CreateVATBusinessPostingGroup`

## FindVATProductPostingGroup

[Line 2114](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2114).

- [2117](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2117) calls `CreateVATProductPostingGroup`

## FindVATPostingSetup

[Line 2120](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2120).

- [2129](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2129) calls `CreateVATPostingSetupWithAccounts`
- [2129](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2129) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandDecInDecimalRange`

## FindVATPostingSetupInvt

[Line 2132](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2132).

- [2142](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2142) calls `CreateVATPostingSetupWithAccounts`
- [2143](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2143) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandDecInDecimalRange`

## FindZeroVATPostingSetup

[Line 2146](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2146).

- [2153](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2153) calls `CreateVATPostingSetupWithAccounts`

## FindUnrealVATPostingSetup

[Line 2156](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2156).

- [2168](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2168) validates [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) `Sales VAT Unreal. Account`
- [2168](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2168) calls `CreateGLAccountNo`
- [2170](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2170) validates [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) `Purch. VAT Unreal. Account`
- [2170](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2170) calls `CreateGLAccountNo`
- [2171](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2171) writes [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) Modify(true)

## GetCurrencyAmountRoundingPrecision

[Line 2226](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2226).

- [2230](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2230) calls [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Initialize`

## GetCurrencyCode

[Line 2234](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2234).

- [2237](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2237) calls [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `GetCurrencyCode`

## GetDiscountPaymentTerm

[Line 2240](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2240).

- [2246](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2246) calls `CreatePaymentTermsDiscount`

## GetCombinedPostedDeferralLines

[Line 2306](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2306).

- [2319](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2319) writes [Table 1705 Posted Deferral Line](https://jonas-paprotka.de/ref/table/1705-posted-deferral-line/) Insert
- [2322](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2322) writes [Table 1705 Posted Deferral Line](https://jonas-paprotka.de/ref/table/1705-posted-deferral-line/) Modify

## InvoiceAmountRounding

[Line 2336](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2336).

- [2341](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2341) calls [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Initialize`
- [2342](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2342) calls [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `InvoiceRoundingDirection`

## IssueFinanceChargeMemo

[Line 2345](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2345).

- [2352](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2352) calls [Report 193 Issue Finance Charge Memos](https://jonas-paprotka.de/ref/report/193-issue-finance-charge-memos/) `UseRequestPage`

## PostCustLedgerApplication

[Line 2356](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2356).

- [2359](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2359) runs [Codeunit 226 CustEntry-Apply Posted Entries](https://jonas-paprotka.de/ref/codeunit/226-custentry-apply-posted-entries/)

## PostGeneralJnlLine

[Line 2362](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2362).

- [2364](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2364) runs [Codeunit 13 Gen. Jnl.-Post Batch](https://jonas-paprotka.de/ref/codeunit/13-gen-jnl-post-batch/)

## PostFAJournalLine

[Line 2367](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2367).

- [2369](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2369) runs [Codeunit 5633 FA Jnl.-Post Batch](https://jonas-paprotka.de/ref/codeunit/5633-fa-jnl-post-batch/)

## PostVendLedgerApplication

[Line 2372](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2372).

- [2375](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2375) runs [Codeunit 227 VendEntry-Apply Posted Entries](https://jonas-paprotka.de/ref/codeunit/227-vendentry-apply-posted-entries/)

## PostEmplLedgerApplication

[Line 2378](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2378).

- [2381](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2381) runs [Codeunit 224 EmplEntry-Apply Posted Entries](https://jonas-paprotka.de/ref/codeunit/224-emplentry-apply-posted-entries/)

## PostBankAccReconciliation

[Line 2384](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2384).

- [2386](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2386) runs [Codeunit 370 Bank Acc. Reconciliation Post](https://jonas-paprotka.de/ref/codeunit/370-bank-acc-reconciliation-post/)

## ReverseTransaction

[Line 2389](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2389).

- [2393](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2393) calls [Table 179 Reversal Entry](https://jonas-paprotka.de/ref/table/179-reversal-entry/) `SetHideDialog`
- [2394](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2394) calls [Table 179 Reversal Entry](https://jonas-paprotka.de/ref/table/179-reversal-entry/) `ReverseTransaction`

## RunAddnlReportingCurrency

[Line 2397](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2397).

- [2402](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2402) calls [Report 86 Adjust Add. Reporting Currency](https://jonas-paprotka.de/ref/report/86-adjust-add-reporting-currency/) `SetAddCurr`
- [2403](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2403) calls [Report 86 Adjust Add. Reporting Currency](https://jonas-paprotka.de/ref/report/86-adjust-add-reporting-currency/) `InitializeRequest`
- [2404](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2404) calls [Report 86 Adjust Add. Reporting Currency](https://jonas-paprotka.de/ref/report/86-adjust-add-reporting-currency/) `UseRequestPage`

## RunExchRateAdjustmentForDocNo

[Line 2409](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2409).

- [2411](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2411) calls `RunExchRateAdjustment`

## RunExchRateAdjustmentForDocNo

[Line 2414](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2414).

- [2416](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2416) calls `RunExchRateAdjustment`

## RunExchRateAdjustmentSimple

[Line 2419](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2419).

- [2421](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2421) calls `RunExchRateAdjustment`
- [2422](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2422) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateGUID`

## RunExchRateAdjustment

[Line 2425](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2425).

- [2432](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2432) calls [Report 596 Exch. Rate Adjustment](https://jonas-paprotka.de/ref/report/596-exch-rate-adjustment/) `InitializeRequest2`
- [2434](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2434) calls [Report 596 Exch. Rate Adjustment](https://jonas-paprotka.de/ref/report/596-exch-rate-adjustment/) `UseRequestPage`
- [2435](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2435) calls [Report 596 Exch. Rate Adjustment](https://jonas-paprotka.de/ref/report/596-exch-rate-adjustment/) `SetHideUI`

## RunAdjustGenJournalBalance

[Line 2439](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2439).

- [2441](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2441) runs [Codeunit 407 Adjust Gen. Journal Balance](https://jonas-paprotka.de/ref/codeunit/407-adjust-gen-journal-balance/)

## RunReminderIssue

[Line 2445](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2445).

- [2447](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2447) runs [Codeunit 393 Reminder-Issue](https://jonas-paprotka.de/ref/codeunit/393-reminder-issue/)

## RunFinChrgMemoIssue

[Line 2451](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2451).

- [2453](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2453) runs [Codeunit 395 FinChrgMemo-Issue](https://jonas-paprotka.de/ref/codeunit/395-finchrgmemo-issue/)

## SelectLastGenJnBatch

[Line 2456](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2456).

- [2460](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2460) calls `SelectGenJnlTemplate`
- [2462](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2462) calls `CreateGLAccount`
- [2464](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2464) validates [Table 232 Gen. Journal Batch](https://jonas-paprotka.de/ref/table/232-gen-journal-batch/) `Bal. Account No.`
- [2465](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2465) writes [Table 232 Gen. Journal Batch](https://jonas-paprotka.de/ref/table/232-gen-journal-batch/) Modify(true)

## SelectGenJnlBatch

[Line 2468](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2468).

- [2470](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2470) calls [Codeunit 131306 Library - Journals](https://jonas-paprotka.de/ref/codeunit/131306-library-journals/) `SelectGenJournalBatch`
- [2470](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2470) calls `SelectGenJnlTemplate`

## SelectGenJnlTemplate

[Line 2473](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2473).

- [2477](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2477) calls [Codeunit 131306 Library - Journals](https://jonas-paprotka.de/ref/codeunit/131306-library-journals/) `SelectGenJournalTemplate`

## SelectFAJournalBatch

[Line 2480](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2480).

- [2483](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2483) calls `SelectFAJournalTemplate`
- [2488](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2488) validates [Table 5620 FA Journal Batch](https://jonas-paprotka.de/ref/table/5620-fa-journal-batch/) `Journal Template Name`
- [2488](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2488) calls `SelectFAJournalTemplate`
- [2489](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2489) validates [Table 5620 FA Journal Batch](https://jonas-paprotka.de/ref/table/5620-fa-journal-batch/) `Name`
- [2490](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2490) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [2491](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2491) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [2492](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2492) writes [Table 5620 FA Journal Batch](https://jonas-paprotka.de/ref/table/5620-fa-journal-batch/) Insert(true)
- [2493](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2493) validates [Table 5620 FA Journal Batch](https://jonas-paprotka.de/ref/table/5620-fa-journal-batch/) `No. Series`
- [2493](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2493) calls `CreateNoSeriesCode`
- [2494](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2494) writes [Table 5620 FA Journal Batch](https://jonas-paprotka.de/ref/table/5620-fa-journal-batch/) Modify(true)

## SelectFAJournalTemplate

[Line 2497](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2497).

- [2505](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2505) validates [Table 5619 FA Journal Template](https://jonas-paprotka.de/ref/table/5619-fa-journal-template/) `Name`
- [2506](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2506) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [2507](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2507) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetFieldLength`
- [2508](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2508) validates [Table 5619 FA Journal Template](https://jonas-paprotka.de/ref/table/5619-fa-journal-template/) `Recurring`
- [2509](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2509) writes [Table 5619 FA Journal Template](https://jonas-paprotka.de/ref/table/5619-fa-journal-template/) Insert(true)

## SetBlockDeleteGLAccount

[Line 2514](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2514).

- [2519](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2519) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `Block Deletion of G/L Accounts`
- [2520](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2520) writes [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) Modify(true)

## SetCurrencyGainLossAccounts

[Line 2523](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2523).

- [2525](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2525) validates [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Realized Losses Acc.`
- [2525](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2525) calls `CreateGLAccountNo`
- [2526](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2526) validates [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Realized Gains Acc.`
- [2526](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2526) calls `CreateGLAccountNo`
- [2527](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2527) validates [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Unrealized Losses Acc.`
- [2527](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2527) calls `CreateGLAccountNo`
- [2528](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2528) validates [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `Unrealized Gains Acc.`
- [2528](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2528) calls `CreateGLAccountNo`
- [2529](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2529) writes [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) Modify(true)

## SetAddReportingCurrency

[Line 2532](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2532).

- [2536](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2536) writes [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) Modify(true)

## SetAllowDDExportWitoutIBANAndSWIFT

[Line 2539](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2539).

- [2542](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2542) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `SEPA Export w/o Bank Acc. Data`
- [2543](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2543) writes [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) Modify(true)

## SetAllowNonEuroExport

[Line 2546](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2546).

- [2549](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2549) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `SEPA Non-Euro Export`
- [2550](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2550) writes [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) Modify(true)

## SetAllowPostingFromTo

[Line 2553](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2553).

- [2558](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2558) writes [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) Modify(true)

## SetAllowPostingTo

[Line 2561](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2561).

- [2565](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2565) writes [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) Modify(true)

## SetAmountRoundingPrecision

[Line 2568](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2568).

- [2572](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2572) writes [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) Modify(true)

## SetApplnRoundingPrecision

[Line 2575](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2575).

- [2578](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2578) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `Appln. Rounding Precision`
- [2579](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2579) writes [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) Modify(true)

## SetBillToSellToVATCalc

[Line 2582](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2582).

- [2585](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2585) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `Bill-to/Sell-to VAT Calc.`
- [2586](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2586) writes [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) Modify(true)

## SetGlobalDimensionCode

[Line 2589](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2589).

- [2594](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2594) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `Global Dimension 1 Code`
- [2596](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2596) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `Global Dimension 2 Code`
- [2598](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2598) writes [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) Modify(true)

## SetAppliestoIdCustomer

[Line 2601](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2601).

- [2608](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2608) validates [Table 21 Cust. Ledger Entry](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/) `Applies-to ID`
- [2611](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2611) validates [Table 21 Cust. Ledger Entry](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/) `Amount to Apply`
- [2613](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2613) writes [Table 21 Cust. Ledger Entry](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/) Modify(true)

## SetAppliestoIdVendor

[Line 2617](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2617).

- [2624](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2624) validates [Table 25 Vendor Ledger Entry](https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/) `Applies-to ID`
- [2627](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2627) validates [Table 25 Vendor Ledger Entry](https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/) `Amount to Apply`
- [2629](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2629) writes [Table 25 Vendor Ledger Entry](https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/) Modify(true)

## SetAppliestoIdEmployee

[Line 2633](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2633).

- [2640](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2640) validates [Table 5222 Employee Ledger Entry](https://jonas-paprotka.de/ref/table/5222-employee-ledger-entry/) `Applies-to ID`
- [2643](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2643) validates [Table 5222 Employee Ledger Entry](https://jonas-paprotka.de/ref/table/5222-employee-ledger-entry/) `Amount to Apply`
- [2645](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2645) writes [Table 5222 Employee Ledger Entry](https://jonas-paprotka.de/ref/table/5222-employee-ledger-entry/) Modify(true)

## SetApplyCustomerEntry

[Line 2649](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2649).

- [2658](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2658) validates [Table 21 Cust. Ledger Entry](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/) `Applying Entry`
- [2659](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2659) writes [Table 21 Cust. Ledger Entry](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/) Modify(true)
- [2667](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2667) validates [Table 21 Cust. Ledger Entry](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/) `Applies-to ID`
- [2668](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2668) writes [Table 21 Cust. Ledger Entry](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/) Modify(true)
- [2672](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2672) validates [Table 21 Cust. Ledger Entry](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/) `Applying Entry`
- [2673](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2673) validates [Table 21 Cust. Ledger Entry](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/) `Applies-to ID`
- [2674](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2674) validates [Table 21 Cust. Ledger Entry](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/) `Amount to Apply`
- [2675](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2675) writes [Table 21 Cust. Ledger Entry](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/) Modify(true)
- [2676](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2676) runs [Codeunit 103 Cust. Entry-Edit](https://jonas-paprotka.de/ref/codeunit/103-cust-entry-edit/)

## SetApplyVendorEntry

[Line 2680](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2680).

- [2689](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2689) validates [Table 25 Vendor Ledger Entry](https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/) `Applying Entry`
- [2690](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2690) writes [Table 25 Vendor Ledger Entry](https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/) Modify(true)
- [2698](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2698) validates [Table 25 Vendor Ledger Entry](https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/) `Applies-to ID`
- [2699](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2699) writes [Table 25 Vendor Ledger Entry](https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/) Modify(true)
- [2703](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2703) validates [Table 25 Vendor Ledger Entry](https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/) `Applying Entry`
- [2704](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2704) validates [Table 25 Vendor Ledger Entry](https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/) `Applies-to ID`
- [2705](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2705) validates [Table 25 Vendor Ledger Entry](https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/) `Amount to Apply`
- [2706](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2706) writes [Table 25 Vendor Ledger Entry](https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/) Modify(true)
- [2707](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2707) runs [Codeunit 113 Vend. Entry-Edit](https://jonas-paprotka.de/ref/codeunit/113-vend-entry-edit/)

## SetApplyEmployeeEntry

[Line 2710](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2710).

- [2719](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2719) validates [Table 5222 Employee Ledger Entry](https://jonas-paprotka.de/ref/table/5222-employee-ledger-entry/) `Applying Entry`
- [2720](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2720) writes [Table 5222 Employee Ledger Entry](https://jonas-paprotka.de/ref/table/5222-employee-ledger-entry/) Modify(true)
- [2728](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2728) validates [Table 5222 Employee Ledger Entry](https://jonas-paprotka.de/ref/table/5222-employee-ledger-entry/) `Applies-to ID`
- [2729](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2729) writes [Table 5222 Employee Ledger Entry](https://jonas-paprotka.de/ref/table/5222-employee-ledger-entry/) Modify(true)
- [2733](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2733) validates [Table 5222 Employee Ledger Entry](https://jonas-paprotka.de/ref/table/5222-employee-ledger-entry/) `Applying Entry`
- [2734](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2734) validates [Table 5222 Employee Ledger Entry](https://jonas-paprotka.de/ref/table/5222-employee-ledger-entry/) `Applies-to ID`
- [2735](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2735) validates [Table 5222 Employee Ledger Entry](https://jonas-paprotka.de/ref/table/5222-employee-ledger-entry/) `Amount to Apply`
- [2736](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2736) writes [Table 5222 Employee Ledger Entry](https://jonas-paprotka.de/ref/table/5222-employee-ledger-entry/) Modify(true)
- [2737](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2737) runs [Codeunit 114 Empl. Entry-Edit](https://jonas-paprotka.de/ref/codeunit/114-empl-entry-edit/)

## SetEnableDataCheck

[Line 2740](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2740).

- [2745](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2745) writes [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) Modify

## SetGeneralPostingSetupInvtAccounts

[Line 2763](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2763).

- [2766](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2766) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `COGS Account`
- [2766](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2766) calls `CreateGLAccountNo`
- [2768](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2768) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `COGS Account (Interim)`
- [2768](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2768) calls `CreateGLAccountNo`
- [2770](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2770) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Inventory Adjmt. Account`
- [2770](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2770) calls `CreateGLAccountNo`
- [2772](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2772) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Invt. Accrual Acc. (Interim)`
- [2772](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2772) calls `CreateGLAccountNo`

## SetGeneralPostingSetupMfgAccounts

[Line 2775](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2775).

- [2778](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2778) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Direct Cost Applied Account`
- [2778](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2778) calls `CreateGLAccountNo`
- [2780](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2780) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Overhead Applied Account`
- [2780](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2780) calls `CreateGLAccountNo`
- [2782](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2782) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Purchase Variance Account`
- [2782](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2782) calls `CreateGLAccountNo`

## SetGeneralPostingSetupPrepAccounts

[Line 2785](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2785).

- [2788](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2788) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Sales Prepayments Account`
- [2788](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2788) calls `CreateGLAccountNo`
- [2790](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2790) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Purch. Prepayments Account`
- [2790](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2790) calls `CreateGLAccountNo`

## SetGeneralPostingSetupPurchAccounts

[Line 2793](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2793).

- [2796](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2796) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Purch. Account`
- [2796](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2796) calls `CreateGLAccountNo`
- [2798](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2798) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Purch. Line Disc. Account`
- [2798](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2798) calls `CreateGLAccountNo`
- [2800](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2800) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Purch. Inv. Disc. Account`
- [2800](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2800) calls `CreateGLAccountNo`
- [2802](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2802) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Purch. Credit Memo Account`
- [2802](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2802) calls `CreateGLAccountNo`

## SetGeneralPostingSetupPurchPmtDiscAccounts

[Line 2805](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2805).

- [2808](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2808) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Purch. Pmt. Disc. Debit Acc.`
- [2808](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2808) calls `CreateGLAccountNo`
- [2810](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2810) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Purch. Pmt. Disc. Credit Acc.`
- [2810](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2810) calls `CreateGLAccountNo`
- [2812](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2812) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Purch. Pmt. Tol. Debit Acc.`
- [2812](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2812) calls `CreateGLAccountNo`
- [2814](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2814) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Purch. Pmt. Tol. Credit Acc.`
- [2814](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2814) calls `CreateGLAccountNo`

## SetGeneralPostingSetupSalesAccounts

[Line 2817](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2817).

- [2820](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2820) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Sales Account`
- [2820](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2820) calls `CreateGLAccountNo`
- [2822](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2822) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Sales Line Disc. Account`
- [2822](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2822) calls `CreateGLAccountNo`
- [2824](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2824) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Sales Inv. Disc. Account`
- [2824](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2824) calls `CreateGLAccountNo`
- [2826](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2826) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Sales Credit Memo Account`
- [2826](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2826) calls `CreateGLAccountNo`

## SetGeneralPostingSetupSalesPmtDiscAccounts

[Line 2829](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2829).

- [2832](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2832) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Sales Pmt. Disc. Debit Acc.`
- [2832](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2832) calls `CreateGLAccountNo`
- [2834](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2834) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Sales Pmt. Disc. Credit Acc.`
- [2834](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2834) calls `CreateGLAccountNo`
- [2836](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2836) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Sales Pmt. Tol. Debit Acc.`
- [2836](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2836) calls `CreateGLAccountNo`
- [2838](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2838) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Sales Pmt. Tol. Credit Acc.`
- [2838](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2838) calls `CreateGLAccountNo`

## SetPostingGroupsOnPrepmtGLAccount

[Line 2841](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2841), local.

- [2848](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2848) calls `CreatePrepaymentVATPostingSetup`
- [2853](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2853) writes [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) Modify

## SetInvRoundingPrecisionLCY

[Line 2856](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2856).

- [2859](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2859) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `Inv. Rounding Precision (LCY)`
- [2860](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2860) writes [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) Modify(true)

## SetMaxVATDifferenceAllowed

[Line 2863](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2863).

- [2866](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2866) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `Max. VAT Difference Allowed`
- [2867](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2867) writes [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) Modify(true)

## SetLCYCode

[Line 2870](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2870).

- [2874](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2874) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `LCY Code`
- [2875](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2875) writes [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) Modify(true)

## SetShortcutDimensionCode

[Line 2893](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2893).

- [2898](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2898) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `Shortcut Dimension 1 Code`
- [2900](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2900) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `Shortcut Dimension 2 Code`
- [2902](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2902) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `Shortcut Dimension 3 Code`
- [2904](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2904) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `Shortcut Dimension 4 Code`
- [2906](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2906) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `Shortcut Dimension 5 Code`
- [2908](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2908) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `Shortcut Dimension 6 Code`
- [2910](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2910) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `Shortcut Dimension 7 Code`
- [2912](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2912) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `Shortcut Dimension 8 Code`
- [2914](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2914) writes [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) Modify(true)

## SetUnrealizedVAT

[Line 2917](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2917).

- [2920](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2920) validates [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) `Unrealized VAT`
- [2921](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2921) writes [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) Modify(true)

## SetVATRoundingType

[Line 2924](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2924).

- [2935](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2935) writes [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) Modify(true)

## SetupReportSelection

[Line 2963](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2963).

- [2968](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2968) writes [Table 77 Report Selections](https://jonas-paprotka.de/ref/table/77-report-selections/) DeleteAll
- [2970](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2970) validates [Table 77 Report Selections](https://jonas-paprotka.de/ref/table/77-report-selections/) `Usage`
- [2971](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2971) validates [Table 77 Report Selections](https://jonas-paprotka.de/ref/table/77-report-selections/) `Sequence`
- [2972](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2972) validates [Table 77 Report Selections](https://jonas-paprotka.de/ref/table/77-report-selections/) `Report ID`
- [2973](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2973) writes [Table 77 Report Selections](https://jonas-paprotka.de/ref/table/77-report-selections/) Insert(true)

## SuggestBankAccountReconciliation

[Line 2976](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2976).

- [2980](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2980) calls `CreateBankAccReconciliation`
- [2982](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2982) calls [Report 1496 Suggest Bank Acc. Recon. Lines](https://jonas-paprotka.de/ref/report/1496-suggest-bank-acc-recon-lines/) `SetStmt`
- [2984](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2984) calls [Report 1496 Suggest Bank Acc. Recon. Lines](https://jonas-paprotka.de/ref/report/1496-suggest-bank-acc-recon-lines/) `InitializeRequest`
- [2985](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2985) calls [Report 1496 Suggest Bank Acc. Recon. Lines](https://jonas-paprotka.de/ref/report/1496-suggest-bank-acc-recon-lines/) `UseRequestPage`

## UnapplyCustomerLedgerEntry

[Line 2990](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2990).

- [2992](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2992) calls [Codeunit 131301 Library - ERM Unapply](https://jonas-paprotka.de/ref/codeunit/131301-library-erm-unapply/) `UnapplyCustomerLedgerEntry`

## UnapplyVendorLedgerEntry

[Line 2995](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2995).

- [2997](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L2997) calls [Codeunit 131301 Library - ERM Unapply](https://jonas-paprotka.de/ref/codeunit/131301-library-erm-unapply/) `UnapplyVendorLedgerEntry`

## UnapplyEmployeeLedgerEntry

[Line 3000](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3000).

- [3002](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3002) calls [Codeunit 131301 Library - ERM Unapply](https://jonas-paprotka.de/ref/codeunit/131301-library-erm-unapply/) `UnapplyEmployeeLedgerEntry`

## UpdateAnalysisView

[Line 3005](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3005).

- [3007](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3007) runs [Codeunit 410 Update Analysis View](https://jonas-paprotka.de/ref/codeunit/410-update-analysis-view/)

## UpdateGenPostingSetupPrepmtAccounts

[Line 3010](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3010).

- [3012](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3012) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Sales Prepayments Account`
- [3012](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3012) calls `CreateGLAccountWithSalesSetup`
- [3013](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3013) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Purch. Prepayments Account`
- [3013](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3013) calls `CreateGLAccountWithPurchSetup`
- [3014](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3014) writes [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) Modify

## UpdateGLAccountWithPostingSetup

[Line 3017](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3017).

- [3019](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3019) validates [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) `Gen. Posting Type`
- [3020](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3020) validates [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) `Gen. Bus. Posting Group`
- [3021](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3021) validates [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) `Gen. Prod. Posting Group`
- [3022](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3022) validates [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) `VAT Bus. Posting Group`
- [3023](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3023) validates [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) `VAT Prod. Posting Group`
- [3024](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3024) writes [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) Modify(true)

## UpdateVATPostingSetup

[Line 3027](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3027).

- [3029](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3029) calls `FindVATPostingSetup`
- [3031](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3031) writes [Table 325 VAT Posting Setup](https://jonas-paprotka.de/ref/table/325-vat-posting-setup/) Modify(true)

## UpdateCompanyAddress

[Line 3034](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3034).

- [3040](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3040) writes [Table 79 Company Information](https://jonas-paprotka.de/ref/table/79-company-information/) Insert(true)
- [3042](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3042) validates [Table 79 Company Information](https://jonas-paprotka.de/ref/table/79-company-information/) `Name`
- [3042](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3042) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomText`
- [3043](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3043) validates [Table 79 Company Information](https://jonas-paprotka.de/ref/table/79-company-information/) `Name 2`
- [3043](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3043) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomText`
- [3044](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3044) validates [Table 79 Company Information](https://jonas-paprotka.de/ref/table/79-company-information/) `Address`
- [3044](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3044) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomText`
- [3045](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3045) validates [Table 79 Company Information](https://jonas-paprotka.de/ref/table/79-company-information/) `Address 2`
- [3045](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3045) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomText`
- [3046](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3046) validates [Table 79 Company Information](https://jonas-paprotka.de/ref/table/79-company-information/) `Name`
- [3046](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3046) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomText`
- [3047](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3047) calls `FindPostCode`
- [3049](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3049) validates [Table 79 Company Information](https://jonas-paprotka.de/ref/table/79-company-information/) `Post Code`
- [3050](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3050) writes [Table 79 Company Information](https://jonas-paprotka.de/ref/table/79-company-information/) Modify(true)

## UpdateSalesPrepmtAccountVATGroup

[Line 3053](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3053).

- [3061](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3061) writes [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) Modify

## UpdatePurchPrepmtAccountVATGroup

[Line 3064](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3064).

- [3072](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3072) writes [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) Modify

## VATAmountRounding

[Line 3075](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3075).

- [3080](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3080) calls [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `InitRoundingPrecision`
- [3084](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3084) calls [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `VATRoundingDirection`

## UpdateAmountOnGenJournalLine

[Line 3113](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3113).

- [3121](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3121) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Amount`
- [3121](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3121) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandDec`
- [3122](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3122) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Modify(true)

## FillSalesHeaderExcludedFieldList

[Line 3127](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3127).

- [3142](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3142) raises `OnAfterFillSalesHeaderExcludedFieldList`

## UpdateDirectCostNonInventoryAppliedAccountInGeneralPostingSetup

[Line 3158](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3158).

- [3160](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3160) validates [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) `Direct Cost Non-Inv. App. Acc.`
- [3160](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3160) calls `CreateGLAccountNo`
- [3161](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/source/#L3161) writes [Table 252 General Posting Setup](https://jonas-paprotka.de/ref/table/252-general-posting-setup/) Modify

## Source

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

JOP-AL, 2026-11-20.
