---
title: "Codeunit 1250 Match General Journal Lines, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/points/
object: https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/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 1250 Match General Journal Lines, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/points/

18 procedures and triggers with a step in src/Layers/W1/BaseApp/Bank/Reconciliation/MatchGeneralJournalLines.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 21](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L21), trigger.

- [26](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L26) calls `Code`
- [29](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L29) raises `OnAfterOnRun`

## Code

[Line 41](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L41).

- [50](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L50) calls `SetMatchLengthThreshold`
- [51](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L51) calls `SetNormalizingFactor`
- [52](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L52) calls `FillTempGenJournalLine`
- [53](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L53) calls `FindMatchingCustEntries`
- [54](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L54) calls `FindMatchingVendorEntries`
- [55](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L55) calls `SaveOneToOneMatching`
- [57](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L57) calls `FillTempGenJournalLine`
- [58](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L58) calls `FindAccountMappings`
- [61](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L61) calls `ShowMatchSummary`

## FindMatchingCustEntries

[Line 64](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L64), local.

- [68](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L68) raises `OnBeforeFindMatchingCustEntries`
- [74](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L74) raises `OnFindMatchingCustEntriesOnAfterCustLedgerEntrySetFilters`
- [77](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L77) calls `FindMatchingCustEntry`

## FindMatchingCustEntry

[Line 81](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L81), local.

- [89](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L89) calls `GetMatchScore`
- [91](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L91) raises `OnFindMatchingCustEntryOnAfterGetMatchScore`
- [93](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L93) calls [Table 1250 Bank Statement Matching Buffer](https://jonas-paprotka.de/ref/table/1250-bank-statement-matching-buffer/) `AddMatchCandidate`
- [95](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L95) raises `OnFindMatchingCustEntryOnAfterMatch`

## FindMatchingVendorEntries

[Line 99](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L99), local.

- [108](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L108) raises `OnFindMatchingVendorEntriesOnAfterSetVendorLedgerEntryFilters`
- [111](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L111) calls `FindMatchingVendorEntry`

## FindMatchingVendorEntry

[Line 115](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L115), local.

- [123](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L123) calls `GetMatchScore`
- [127](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L127) calls [Table 1250 Bank Statement Matching Buffer](https://jonas-paprotka.de/ref/table/1250-bank-statement-matching-buffer/) `AddMatchCandidate`
- [129](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L129) raises `OnFindMatchingVendorEntryOnAfterMatch`

## FindAccountMappings

[Line 133](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L133), local.

- [144](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L144) calls `GetAccountMapping`
- [148](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L148) calls `UpdateGenJnlLine`
- [151](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L151) calls [Table 1251 Text-to-Account Mapping](https://jonas-paprotka.de/ref/table/1251-text-to-account-mapping/) `GetAccountNo`
- [155](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L155) calls [Table 1251 Text-to-Account Mapping](https://jonas-paprotka.de/ref/table/1251-text-to-account-mapping/) `GetPaymentDocType`
- [157](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L157) calls [Table 1251 Text-to-Account Mapping](https://jonas-paprotka.de/ref/table/1251-text-to-account-mapping/) `GetDocTypeForPmt`
- [159](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L159) calls `UpdateGenJnlLine`
- [162](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L162) calls `CreateInvoiceLineFromPayment`
- [164](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L164) calls [Table 1251 Text-to-Account Mapping](https://jonas-paprotka.de/ref/table/1251-text-to-account-mapping/) `GetAccountNo`

## GetAccountMapping

[Line 171](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L171), local.

- [179](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L179) calls [Codeunit 1251 Record Match Mgt.](https://jonas-paprotka.de/ref/codeunit/1251-record-match-mgt/) `Trim`
- [188](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L188) calls [Codeunit 1251 Record Match Mgt.](https://jonas-paprotka.de/ref/codeunit/1251-record-match-mgt/) `Trim`
- [192](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L192) raises `OnGetAccountMappingOnBeforeCalculateStringNearness`, IsHandled
- [197](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L197) calls [Codeunit 1251 Record Match Mgt.](https://jonas-paprotka.de/ref/codeunit/1251-record-match-mgt/) `CalculateStringNearness`
- [198](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L198) calls [Codeunit 1251 Record Match Mgt.](https://jonas-paprotka.de/ref/codeunit/1251-record-match-mgt/) `Trim`

## SaveOneToOneMatching

[Line 225](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L225), local.

- [232](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L232) raises `OnSaveOneToOneMatchingOnBeforeTempBankStatementMatchingBufferFindSet`
- [237](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L237) calls `ApplyRecords`

## ApplyRecords

[Line 241](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L241), local.

- [250](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L250) calls `UpdateGenJnlLine`
- [252](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L252) calls `PrepareCustLedgerEntryForApplication`
- [257](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L257) calls `UpdateGenJnlLine`
- [259](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L259) calls `PrepareVendorLedgerEntryForApplication`

## CreateInvoiceLineFromPayment

[Line 264](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L264), local.

- [269](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L269) calls `GetNextAvailableLineNo`
- [272](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L272) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Amount`
- [273](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L273) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Document Type`
- [274](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L274) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Applies-to Doc. Type`
- [275](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L275) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Applies-to Doc. No.`
- [276](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L276) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Bal. Account Type`
- [277](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L277) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Bal. Account No.`
- [278](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L278) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Description`
- [279](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L279) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Insert(true)

## UpdateGenJnlLine

[Line 282](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L282), local.

- [289](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L289) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Document Type`
- [290](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L290) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Account Type`
- [291](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L291) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Account No.`
- [292](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L292) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Applies-to ID`
- [294](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L294) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Currency Code`
- [295](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L295) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Applied Automatically`
- [296](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L296) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Description`
- [297](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L297) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Modify(true)

## PrepareCustLedgerEntryForApplication

[Line 300](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L300).

- [304](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L304) raises `OnPrepareCustLedgerEntryForApplicationOnBeforeSetAmountToApply`
- [310](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L310) runs [Codeunit 103 Cust. Entry-Edit](https://jonas-paprotka.de/ref/codeunit/103-cust-entry-edit/)

## PrepareVendorLedgerEntryForApplication

[Line 313](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L313), local.

- [317](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L317) raises `OnPrepareVendorLedgerEntryForApplicationOnBeforeSetAmountToApply`
- [323](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L323) runs [Codeunit 113 Vend. Entry-Edit](https://jonas-paprotka.de/ref/codeunit/113-vend-entry-edit/)

## FillTempGenJournalLine

[Line 326](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L326).

- [330](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L330) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) DeleteAll
- [342](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L342) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Insert

## ShowMatchSummary

[Line 346](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L346), local.

- [365](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L365) calls `GetMatchLengthTreshold`
- [368](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L368) raises `OnShowMatchSummaryOnAfterSetFinalText`, IsHandled

## GetMatchScore

[Line 373](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L373), local.

- [383](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L383) calls `GetDescriptionMatchScore`
- [385](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L385) calls `GetDescriptionMatchScore`
- [387](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L387) calls `GetDescriptionMatchScore`

## GetDescriptionMatchScore

[Line 398](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L398), local.

- [406](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L406) calls [Codeunit 1251 Record Match Mgt.](https://jonas-paprotka.de/ref/codeunit/1251-record-match-mgt/) `Trim`
- [407](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L407) calls `GetMatchLengthTreshold`
- [408](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L408) calls `GetNormalizingFactor`
- [411](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L411) calls [Codeunit 1251 Record Match Mgt.](https://jonas-paprotka.de/ref/codeunit/1251-record-match-mgt/) `CalculateStringNearness`
- [415](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L415) calls [Codeunit 1251 Record Match Mgt.](https://jonas-paprotka.de/ref/codeunit/1251-record-match-mgt/) `CalculateStringNearness`
- [419](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L419) calls [Codeunit 1251 Record Match Mgt.](https://jonas-paprotka.de/ref/codeunit/1251-record-match-mgt/) `CalculateStringNearness`
- [423](https://jonas-paprotka.de/ref/codeunit/1250-match-general-journal-lines/source/#L423) calls [Codeunit 1251 Record Match Mgt.](https://jonas-paprotka.de/ref/codeunit/1251-record-match-mgt/) `CalculateStringNearness`

## Source

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

JOP-AL, 2026-11-20.
