---
title: "Codeunit 225 Gen. Jnl.-Apply, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/points/
object: https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/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 225 Gen. Jnl.-Apply, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/points/

19 procedures and triggers with a step in src/Layers/W1/BaseApp/Finance/ReceivablesPayables/GenJnlApply.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 32](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L32), trigger.

- [39](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L39) raises `OnBeforeRun`, IsHandled
- [43](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L43) calls `GetCurrency`
- [55](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L55) calls `ApplyCustomerLedgerEntry`
- [57](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L57) calls `ApplyVendorLedgerEntry`
- [59](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L59) calls `ApplyEmployeeLedgerEntry`
- [65](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L65) raises `OnAfterRun`

## SelectCustLedgEntry

[Line 97](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L97), local.

- [105](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L105) raises `OnBeforeSelectCustLedgEntry`, IsHandled
- [112](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L112) raises `OnSelectCustLedgEntryOnAfterSetFilters`
- [120](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L120) calls [Page 232 Apply Customer Entries](https://jonas-paprotka.de/ref/page/232-apply-customer-entries/) `SetGenJnlLine`
- [127](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L127) calls [Page 232 Apply Customer Entries](https://jonas-paprotka.de/ref/page/232-apply-customer-entries/) `GetCustomAppliesToID`
- [130](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L130) raises `OnAfterSelectCustLedgEntry`

## SelectVendLedgEntry

[Line 133](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L133), local.

- [140](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L140) raises `OnBeforeSelectVendLedgEntry`, IsHandled
- [147](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L147) raises `OnSelectVendLedgEntryOnAfterSetFilters`
- [154](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L154) calls [Page 233 Apply Vendor Entries](https://jonas-paprotka.de/ref/page/233-apply-vendor-entries/) `SetGenJnlLine`
- [159](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L159) calls [Page 233 Apply Vendor Entries](https://jonas-paprotka.de/ref/page/233-apply-vendor-entries/) `GetCustomAppliesToID`
- [162](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L162) raises `OnAfterSelectVendLedgEntry`

## SelectEmplLedgEntry

[Line 165](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L165), local.

- [172](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L172) raises `OnBeforeSelectEmplLedgEntry`, IsHandled
- [179](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L179) raises `OnSelectEmplLedgEntryOnAfterSetFilters`
- [186](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L186) calls [Page 234 Apply Employee Entries](https://jonas-paprotka.de/ref/page/234-apply-employee-entries/) `SetGenJnlLine`
- [191](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L191) calls [Page 234 Apply Employee Entries](https://jonas-paprotka.de/ref/page/234-apply-employee-entries/) `GetCustomAppliesToID`
- [194](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L194) raises `OnAfterSelectEmplLedgEntry`

## UpdateCustLedgEntry

[Line 197](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L197), local.

- [202](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L202) raises `OnBeforeUpdateCustLedgEntry`, IsHandled
- [208](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L208) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmount`
- [213](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L213) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmount`
- [218](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L218) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmount`

## UpdateVendLedgEntry

[Line 224](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L224), local.

- [229](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L229) raises `OnBeforeUpdateVendLedgEntry`, IsHandled
- [235](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L235) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmount`
- [240](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L240) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmount`
- [245](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L245) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmount`
- [250](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L250) raises `OnAfterUpdateVendLedgEntry`

## UpdateEmployeeLedgEntry

[Line 253](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L253), local.

- [258](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L258) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmount`
- [265](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L265) calls [Table 330 Currency Exchange Rate](https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/) `ExchangeAmount`

## CheckAgainstApplnCurrency

[Line 281](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L281).

- [289](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L289) raises `OnBeforeCheckAgainstApplnCurrency`

## GetCurrency

[Line 351](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L351), local.

- [354](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L354) calls [Table 4 Currency](https://jonas-paprotka.de/ref/table/4-currency/) `InitRoundingPrecision`

## ApplyCustomerLedgerEntry

[Line 361](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L361), local.

- [369](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L369) calls `GetAppliedCustomerEntries`
- [370](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L370) calls `SelectCustLedgEntry`
- [381](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L381) raises `OnAfterCustLedgEntrySetFilters`, IsHandled
- [390](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L390) calls [Codeunit 426 Payment Tolerance Management](https://jonas-paprotka.de/ref/codeunit/426-payment-tolerance-management/) `DelPmtTolApllnDocNo`
- [391](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L391) raises `OnApplyCustomerLedgerEntryOnBeforeCheckAgainstApplnCurrency`
- [392](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L392) calls `CheckAgainstApplnCurrency`
- [393](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L393) calls `UpdateCustLedgEntry`
- [395](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L395) raises `OnBeforeFindCustApply`, IsHandled
- [397](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L397) calls [Codeunit 426 Payment Tolerance Management](https://jonas-paprotka.de/ref/codeunit/426-payment-tolerance-management/) `CheckCalcPmtDiscGenJnlCust`
- [399](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L399) calls [Table 21 Cust. Ledger Entry](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/) `GetRemainingPmtDiscPossible`
- [401](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L401) calls [Table 21 Cust. Ledger Entry](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/) `GetRemainingPmtDiscPossible`
- [405](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L405) calls `GetAppliedAmountOnCustLedgerEntry`
- [407](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L407) writes [Table 21 Cust. Ledger Entry](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/) DeleteAll
- [414](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L414) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Amount`
- [415](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L415) raises `OnApplyCustomerLedgerEntryOnAfterValidateAmount`
- [418](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L418) raises `OnApplyCustomerLedgerEntryOnBeforeCheckAgainstApplnCurrencyCustomerAmountNotZero`
- [419](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L419) calls `CheckAgainstApplnCurrency`
- [424](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L424) raises `OnApplyCustomerLedgerEntryOnBeforeConfirmUpdateCurrency`, IsHandled
- [426](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L426) calls `ConfirmCurrencyUpdate`
- [430](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L430) raises `OnApplyCustomerLedgerEntryOnBeforeCheckAgainstApplnCurrencyCustomer`
- [431](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L431) calls `CheckAgainstApplnCurrency`
- [435](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L435) raises `OnApplyCustomerLedgerEntryOnAfterSetCustomerAppliesToDocNo`
- [442](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L442) calls [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `SetJournalLineFieldsFromApplication`
- [444](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L444) raises `OnApplyCustomerLedgerEntryOnBeforeModify`
- [446](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L446) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Modify
- [448](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L448) calls [Codeunit 426 Payment Tolerance Management](https://jonas-paprotka.de/ref/codeunit/426-payment-tolerance-management/) `PmtTolGenJnl`

## SetVendApplIdAPI

[Line 458](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L458).

- [488](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L488) raises `OnSetVendApplIdAPIOnBeforeCheckPostingDate`
- [495](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L495) raises `OnSetVendApplIdAPIOnBeforeCheckAgainstApplnCurrency`
- [496](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L496) calls [Codeunit 225 Gen. Jnl.-Apply](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/) `CheckAgainstApplnCurrency`
- [502](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L502) calls [Codeunit 111 Vend. Entry-SetAppl.ID](https://jonas-paprotka.de/ref/codeunit/111-vend-entry-setappl-id/) `SetApplId`

## ApplyVendorLedgerEntryAPI

[Line 510](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L510).

- [516](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L516) calls `GetCurrency`
- [517](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L517) calls [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `GetAccTypeAndNo`
- [519](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L519) calls `GetAppliedVendorEntries`
- [532](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L532) calls [Codeunit 426 Payment Tolerance Management](https://jonas-paprotka.de/ref/codeunit/426-payment-tolerance-management/) `DelPmtTolApllnDocNo`
- [533](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L533) raises `OnApplyVendorLedgerEntryAPIOnBeforeCheckAgainstApplnCurrencyAmountZero`
- [534](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L534) calls `CheckAgainstApplnCurrency`
- [535](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L535) calls `UpdateVendLedgEntry`
- [536](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L536) calls [Codeunit 426 Payment Tolerance Management](https://jonas-paprotka.de/ref/codeunit/426-payment-tolerance-management/) `CheckCalcPmtDiscGenJnlVend`
- [538](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L538) calls [Table 25 Vendor Ledger Entry](https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/) `GetRemainingPmtDiscPossible`
- [545](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L545) writes [Table 25 Vendor Ledger Entry](https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/) DeleteAll
- [548](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L548) raises `OnApplyVendorLedgerEntryAPIOnBeforeValidateAmount`
- [549](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L549) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Amount`
- [552](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L552) raises `OnApplyVendorLedgerEntryAPIOnBeforeCheckAgainstApplnCurrencyAmountNonZero`
- [553](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L553) calls `CheckAgainstApplnCurrency`
- [559](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L559) raises `OnApplyVendorLedgerEntryAPIOnBeforeCheckAgainstApplnCurrencyDifferentCurrenciesAmountNonZero`
- [560](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L560) calls `CheckAgainstApplnCurrency`
- [564](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L564) raises `OnApplyVendorLedgerEntryOnAfterSetVendorAppliesToDocNo`
- [568](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L568) calls [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `SetJournalLineFieldsFromApplication`
- [570](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L570) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Modify
- [572](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L572) calls [Codeunit 426 Payment Tolerance Management](https://jonas-paprotka.de/ref/codeunit/426-payment-tolerance-management/) `PmtTolGenJnl`

## ApplyVendorLedgerEntry

[Line 576](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L576), local.

- [583](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L583) calls `GetAppliedVendorEntries`
- [584](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L584) calls `SelectVendLedgEntry`
- [593](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L593) raises `OnAfterVendLedgEntrySetFilters`
- [599](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L599) calls [Codeunit 426 Payment Tolerance Management](https://jonas-paprotka.de/ref/codeunit/426-payment-tolerance-management/) `DelPmtTolApllnDocNo`
- [600](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L600) raises `OnApplyVendorLedgerEntryOnBeforeCheckAgainstApplnCurrency`
- [601](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L601) calls `CheckAgainstApplnCurrency`
- [602](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L602) calls `UpdateVendLedgEntry`
- [604](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L604) raises `OnBeforeFindVendApply`, IsHandled
- [606](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L606) calls [Codeunit 426 Payment Tolerance Management](https://jonas-paprotka.de/ref/codeunit/426-payment-tolerance-management/) `CheckCalcPmtDiscGenJnlVend`
- [608](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L608) calls [Table 25 Vendor Ledger Entry](https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/) `GetRemainingPmtDiscPossible`
- [610](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L610) calls [Table 25 Vendor Ledger Entry](https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/) `GetRemainingPmtDiscPossible`
- [616](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L616) writes [Table 25 Vendor Ledger Entry](https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/) DeleteAll
- [619](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L619) raises `OnApplyVendorLedgerEntryOnBeforeValidateAmount`
- [620](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L620) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Amount`
- [623](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L623) raises `OnApplyVendorLedgerEntryOnBeforeCheckAgainstApplnCurrencyAmountNotZero`
- [624](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L624) calls `CheckAgainstApplnCurrency`
- [629](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L629) raises `OnApplyVendorLedgerEntryOnBeforeConfirmUpdateCurrency`, IsHandled
- [631](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L631) calls `ConfirmCurrencyUpdate`
- [635](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L635) raises `OnApplyVendorLedgerEntryOnBeforeCheckAgainstApplnCurrencyDifferentCurrenciesAmountNotZero`
- [636](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L636) calls `CheckAgainstApplnCurrency`
- [640](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L640) raises `OnApplyVendorLedgerEntryOnAfterSetGenJnlLineAppliesToDocNo`
- [647](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L647) calls [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `SetJournalLineFieldsFromApplication`
- [649](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L649) raises `OnApplyVendorLedgerEntryOnBeforeModify`
- [650](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L650) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Modify
- [652](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L652) calls [Codeunit 426 Payment Tolerance Management](https://jonas-paprotka.de/ref/codeunit/426-payment-tolerance-management/) `PmtTolGenJnl`

## ApplyEmployeeLedgerEntry

[Line 656](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L656), local.

- [661](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L661) calls `SelectEmplLedgEntry`
- [674](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L674) calls `UpdateEmployeeLedgEntry`
- [675](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L675) raises `OnApplyEmployeeLedgerEntryOnBeforeUpdateAmount`
- [683](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L683) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Amount`
- [687](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L687) calls `ConfirmCurrencyUpdate`
- [698](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L698) calls [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `SetJournalLineFieldsFromApplication`
- [700](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L700) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Modify
- [702](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L702) raises `OnAfterApplyEmployeeLedgerEntry`

## GetAppliedCustomerEntries

[Line 705](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L705), local.

- [724](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L724) writes [Table 21 Cust. Ledger Entry](https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/) Insert

## GetAppliedVendorEntries

[Line 729](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L729), local.

- [748](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L748) writes [Table 25 Vendor Ledger Entry](https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/) Insert

## ConfirmCurrencyUpdate

[Line 753](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L753), local.

- [757](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L757) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`

## GetAppliedAmountOnCustLedgerEntry

[Line 765](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L765), local.

- [774](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L774) calls `CalcAppliedAmountOnCustLedgerEntry`
- [776](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L776) calls `CalcAppliedAmountOnCustLedgerEntry`

## CalcAppliedAmountOnCustLedgerEntry

[Line 779](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L779), local.

- [782](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L782) raises `OnCalcAppliedAmountOnCustLedgerEntryOnAfterCalcRemainingAmount`
- [783](https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/source/#L783) calls [Codeunit 426 Payment Tolerance Management](https://jonas-paprotka.de/ref/codeunit/426-payment-tolerance-management/) `CheckCalcPmtDiscGenJnlCust`

## Source

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

JOP-AL, 2026-11-20.
