---
id: object/codeunit/2000000-be
type: object
title: Codeunit 2000000 "PmtJrnlManagement" (BE)
summary: Codeunit 2000000 "PmtJrnlManagement" (BE) in the BE country layer (Microsoft.Bank.Payment). 19 public procedures, 1 events. Introduced in BC28, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - be layer
versions:
  introduced: "28"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 705269644ee791d8f42e8f71680c94223cfdbbc0a8b22dde816ca73ae5f576c4
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/BE/BaseApp/Local/BankMgt/Payment/PmtJrnlManagement.Codeunit.al
    title: src/Layers/BE/BaseApp/Local/BankMgt/Payment/PmtJrnlManagement.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/be
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 2000000
name: PmtJrnlManagement
namespace: Microsoft.Bank.Payment
app: Base Application
extends: null
first_version: "28"
last_version: "30"
present_in:
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
country: BE
counts:
  fields: 0
  procedures: 21
  events: 1
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 2000000 "PmtJrnlManagement" (BE)

> Codeunit 2000000 "PmtJrnlManagement" (BE) in the BE country layer (Microsoft.Bank.Payment). 19 public procedures, 1 events. Introduced in BC28, still in BC30.

BE country layer · Microsoft.Bank.Payment · BC28-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/BE/BaseApp/Local/BankMgt/Payment/PmtJrnlManagement.Codeunit.al) · facts from BC29

An object of the [BE localization](../../localizations/be.md), not part of W1.

## Properties

| Property | Value |
|---|---|
| Permissions | TableData "Cust. Ledger Entry" = rm, TableData "Vendor Ledger Entry" = rm, TableData "Payment Journal Template" = rimd, TableData "Paym. Journal Batch" = rimd |

## Events published

- `OnBeforeCalculateTotals(var PaymentJnlLine: Record "Payment Journal Line"; LastPaymentJnlLine: Record "Payment Journal Line"; var Balance: Decimal; var TotalAmount: Decimal; var ShowAmount: Boolean; var ShowTotalAmount: Boolean; var IsHandled: Boolean)` (integration)

## Procedures

- `TemplateSelection(var PaymJnlLine: Record "Payment Journal Line"; var JnlSelected: Boolean)`
- `OpenJournal(var CurrentJnlBatchName: Code[10]; var PaymentJnlLine: Record "Payment Journal Line")`
- `OpenJnlBatch(var PaymJnlBatch: Record "Paym. Journal Batch")`
- `TemplateSelectionFromBatch(var PaymJnlBatch: Record "Paym. Journal Batch")`
- `CheckName(CurrentJnlBatchName: Code[10]; var PaymentJnlLine: Record "Payment Journal Line")`
- `SetName(CurrentJnlBatchName: Code[10]; var PaymentJnlLine: Record "Payment Journal Line")`
- `LookupName(CurrenJnlTemplateName: Code[10]; CurrentJnlBatchName: Code[10]; var NewJnlBatchName: Text[10]): Boolean`
- `GetAccount(var PaymentJnlLine: Record "Payment Journal Line"; var AccName: Text[100]; var BankAccName: Text[100])`
- `CalculateTotals(var PaymentJnlLine: Record "Payment Journal Line"; LastPaymentJnlLine: Record "Payment Journal Line"; var Balance: Decimal; var TotalAmount: Decimal; var ShowAmount: Boolean; var ShowTotalAmount: Boolean)`
- `SetUpNewLine(var PaymentJnlLine: Record "Payment Journal Line"; LastPaymentJnlLine: Record "Payment Journal Line")`
- `ShowCard(PaymentJnlLine: Record "Payment Journal Line")`
- `ShowEntries(PaymentJnlLine: Record "Payment Journal Line")`
- `ConvertToDigit(AlphaNumValue: Text[250]; Length: Integer): Text[250]`
- `DecimalNumeralZeroFormat(DecimalNumeral: Decimal; Length: Integer): Text[250]`
- `TextZeroFormat(Text: Text[250]; Length: Integer): Text[250]`
- `PrintTestReport(PmtJnlBatch: Record "Paym. Journal Batch")`
- `Mod97Test(BankAccountNo: Text[250]): Boolean`
- `ModifyPmtDiscDueDate(PaymentJnlLine: Record "Payment Journal Line")`
- `SetApplID(PaymentJnlLine: Record "Payment Journal Line")`

Plus 1 local procedures.

## Triggers

OnRun

## Across versions

- Present in: BC28-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "PmtJrnlManagement")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

A BE country object, not part of W1: the default corpus does not have it; `bcatlas_list_countries` shows which countries the atlas has.
