Namespace Microsoft.Bank.Payment
Provides comprehensive payment processing functionality for Microsoft Dynamics 365 Business Central. Enables payment registration, export, credit transfers, and document matching with extensive banking integration capabilities.
Codeunit
| Name | Description |
|---|---|
| Codeunit Microsoft.Bank.Payment."Export Payment File (Yes/No)" | Codeunit 1209 "Export Payment File (Yes/No)" provides user confirmation for payment file export. Validates journal line requirements, checks bank account setup, and prompts user confirmation before proceeding with payment file export operations. |
| Codeunit Microsoft.Bank.Payment."Payment Export Gen. Jnl Check" | Validates general journal lines before they are exported for payment processing. This codeunit performs comprehensive checks to ensure payment data integrity and compliance. |
| Codeunit Microsoft.Bank.Payment."Payment Export Mgt" | Codeunit 1210 "Payment Export Mgt" manages the export of payment data to bank files. Handles data exchange creation, payment line processing, column mapping, and file export operations for various payment export formats including SEPA and bank-specific formats. |
| Codeunit Microsoft.Bank.Payment."Payment Registration Mgt." | Codeunit 980 "Payment Registration Mgt." manages payment registration functionality including posting, document search, balance calculations, and preview operations. Handles the business logic for the payment registration workspace and integrates with general journal posting. |
| Codeunit Microsoft.Bank.Payment."Pmt. Export Cust. Ledger Check" | Validates customer ledger entries before they are exported for payment processing. This codeunit performs comprehensive checks to ensure customer refund data integrity and compliance. |
| Codeunit Microsoft.Bank.Payment."Pmt Export Mgt Cust Ledg Entry" | Manages payment export operations for customer ledger entries. This codeunit handles the export of customer refund payments to external payment files. |
| Codeunit Microsoft.Bank.Payment."Pmt Export Mgt Gen. Jnl Line" | Manages payment export operations for general journal lines. This codeunit handles the export of payments from journal lines to external payment files. |
| Codeunit Microsoft.Bank.Payment."Pmt Export Mgt Vend Ledg Entry" | Manages payment export operations for vendor ledger entries. This codeunit handles the export of vendor payments to external payment files. |
| Codeunit Microsoft.Bank.Payment."Pmt. Export Vend. Ledger Check" | Validates vendor ledger entries before they are exported for payment processing. This codeunit performs comprehensive checks to ensure vendor payment data integrity and compliance. |
| Codeunit Microsoft.Bank.Payment."Serv. Payment Registration" |
Table
| Name | Description |
|---|---|
| Table Microsoft.Bank.Payment."Credit Transfer Entry" | Table 1206 "Credit Transfer Entry" stores individual payment entries for credit transfers. Each entry represents a single payment within a credit transfer register, containing details about the account, amount, recipient information, and applied ledger entries. |
| Table Microsoft.Bank.Payment."Credit Transfer Register" | Table 1205 "Credit Transfer Register" manages collections of credit transfer entries. Each register represents a batch of payments exported to a bank file, containing metadata about the export process including status, creation details, and the exported file content. |
| Table Microsoft.Bank.Payment."Credit Trans Re-export History" | Table 1209 "Credit Trans Re-export History" tracks the history of credit transfer file re-exports. Maintains an audit trail of when payment files are re-exported, including date/time stamps and user information for compliance and tracking purposes. |
| Table Microsoft.Bank.Payment."Document Search Result" | Table 983 "Document Search Result" stores search results for document lookup functionality. Used as a temporary table to display matching documents during payment registration and document search operations. |
| Table Microsoft.Bank.Payment."Payment Export Data" | Table 1226 "Payment Export Data" contains data for exporting payments to bank files. This table stores all the necessary information for payment file generation including sender bank details, recipient information, payment amounts, SEPA parameters, and various formatting options. |
| Table Microsoft.Bank.Payment."Payment Export Remittance Text" | Stores remittance text lines associated with payment export data entries. This table contains the text information that is included in payment files for remittance purposes. |
| Table Microsoft.Bank.Payment."Payment Jnl. Export Error Text" | Stores error messages and details that occur during payment journal export operations. This table provides detailed error tracking for payment file generation and validation processes. |
| Table Microsoft.Bank.Payment."Payment Registration Buffer" | Table 981 "Payment Registration Buffer" serves as a temporary buffer for payment registration operations. Stores customer ledger entry information for the payment registration workspace, enabling quick payment entry and batch processing. Supports both individual and lump payment scenarios. |
| Table Microsoft.Bank.Payment."Payment Registration Setup" | Stores user-specific configuration settings for payment registration functionality. This table manages default values and preferences for the payment registration process. |
Page
| Name | Description |
|---|---|
| Page Microsoft.Bank.Payment."Balancing Account Setup" | Page 980 "Balancing Account Setup" provides a dialog for setting up balance accounts for payment registration. This page allows users to select and configure the default balance account used when registering customer payments. |
| Page Microsoft.Bank.Payment."Credit Transfer Reg. Entries" | Page 1206 "Credit Transfer Reg. Entries" displays credit transfer entries in a list format. Provides a read-only view of individual payment entries within credit transfer registers, showing recipient details, amounts, applied entries, and related information. |
| Page Microsoft.Bank.Payment."Credit Transfer Registers" | Page 1205 "Credit Transfer Registers" displays a list of credit transfer register entries. Provides overview and management of payment file exports, including re-export functionality and history tracking. Used to monitor and manage exported payment batches. |
| Page Microsoft.Bank.Payment."Credit Trans Re-export History" | Page 1209 "Credit Trans Re-export History" displays the history of credit transfer re-export operations. This page shows when payment files were re-exported and by which users, providing an audit trail for payment processing. |
| Page Microsoft.Bank.Payment."Document Search" | Page 985 "Document Search" provides a search interface for finding open documents during payment registration. This page allows users to search for customer documents by document number and amount with tolerance settings. |
| Page Microsoft.Bank.Payment."Document Search Result" | Page 986 "Document Search Result" displays the results of document searches performed during payment registration. This page shows a list of documents found based on search criteria, allowing users to select and drill down into document details. |
| Page Microsoft.Bank.Payment."Payment File Error Details" | Page 1229 "Payment File Error Details" displays detailed information about payment export errors. This page provides comprehensive error information including error text, additional details, and support URLs. |
| Page Microsoft.Bank.Payment."Payment Journal Errors Part" | Page 1228 "Payment Journal Errors Part" displays payment export errors as a list part. This page shows error messages related to payment journal export operations and allows drill-down into error details. |
| Page Microsoft.Bank.Payment."Payment Registration" | Page 981 "Payment Registration" provides a worksheet interface for registering customer payments. This page allows users to quickly record received payments against outstanding customer documents, with features for automatic posting and balance account setup. |
| Page Microsoft.Bank.Payment."Payment Registration Details" | Page 983 "Payment Registration Details" provides detailed view and editing capabilities for individual payment registration entries. This page displays comprehensive payment information including document details, payment discounts, and warning messages. |
| Page Microsoft.Bank.Payment."Payment Registration Setup" | Page 982 "Payment Registration Setup" provides configuration interface for payment registration functionality. This page allows users to set up journal templates, batch names, and balancing accounts for payment processing. |
| Page Microsoft.Bank.Payment."Pmt. Export Line Definitions" | Page 1227 "Pmt. Export Line Definitions" displays data exchange line definitions for payment export. This page provides a read-only view of line definitions used in payment file export configurations. |
Enum
| Name | Description |
|---|---|
| Enum Microsoft.Bank.Payment."Credit Transfer Account Type" | Enum 1207 "Credit Transfer Account Type" defines the types of accounts that can receive credit transfers. Used in credit transfer entries to specify whether the recipient is a customer, vendor, or employee. |
| Enum Microsoft.Bank.Payment."Payment Balance Account Type" | Defines the types of balancing accounts that can be used for payment transactions. Used in payment processing to specify the account type for balancing entries. |
Events
| Name | |
|---|---|
| OnAfterOnRun | Integration event raised after completing the payment file export process. Enables custom logic to execute after successful export operations. |
| OnBeforeOnRun | Integration event raised before starting the payment file export process. Enables custom validation or alternative export handling. |
| OnPaymentExportGenJnlCheck | Integration event that allows customization of payment export validation logic. This event is raised during general journal line validation to allow external extensions to add custom validation rules. |
| OnProcessColumnMappingOnBeforeCheckLength | Integration event raised before checking the length of a mapped value during payment export processing. Enables custom length validation logic for export field values. |
| OnOnProcessColumnMappingOnBeforeFormatToText | Integration event raised before formatting a value to text during column mapping in payment export. Enables custom text formatting logic for export values. |
| OnBeforeCheckLength | Integration event raised before checking the length of an export value against column definition limits. Enables custom length validation for payment export fields. |
| OnBeforeFormatToText | Integration event raised before formatting a value to text for payment export. Enables custom formatting logic for export field values. |
| OnBeforeCastToDestinationType | Integration event raised before casting a value to its destination data type during payment export. Enables custom type conversion logic for export values. |
| OnAfterFindRecords | |
| OnBeforeGenJnlLineInsert | |
| OnCalculateBalanceOnAfterSetPostedBalance | |
| OnBeforePost | Integration event raised before posting payment registration entries. This event allows external extensions to validate or modify payment data before posting. |
| OnFindSalesHeaderRecordsOnBeforeToleranceCheck | |
| OnShowSalesHeaderRecordsOnBeforeOpenPage | |
| OnShowRecords | |
| OnUpdateApplicationFieldsOnCustLedgerEntryOnAfterCalcRemainingAmount | |
| OnPmtExportCustLedgerCheck | Integration event that allows customization of customer ledger entry validation logic for payment export. This event is raised during customer ledger entry validation to allow external extensions to add custom validation rules. |
| OnPreparePaymentExportDataCLEOnBeforeTempPaymentExportDataInsert | |
| OnPmtExportVendorLedgerCheck | Integration event that allows customization of vendor ledger entry validation logic for payment export. This event is raised during vendor ledger entry validation to allow external extensions to add custom validation rules. |
| OnCheckEmptyPmtInfoVendorLedgerEntry | Integration event that allows customization of payment information validation for vendor ledger entries. This event is raised during empty payment information checks to enable custom validation logic. |
| OnAfterFillRecipientData | Integration event raised after filling recipient data from account information. Enables custom logic for populating additional recipient fields. |
| OnAfterGetAppliesToEntry | Integration event raised after retrieving applies-to entry information. Enables modification of the CV ledger entry buffer before it is used. |
| OnCreateNewOnAfterInitAccountType | Integration event raised after initializing account type during CreateNew procedure. Enables custom logic for handling additional account type mappings. |
| OnBeforeExportFile | Integration event raised before exporting the payment file during re-export. Enables custom file export logic and allows bypassing standard export. |
| OnAfterGetSenderCreditorNo | Integration event raised after determining the sender creditor number for payment export. Enables custom logic to modify or override the creditor number used in payment files. |
| OnAfterSetBankAsSenderBank | Integration event raised after setting the bank account as sender bank for payment export. Enables custom processing after sender bank configuration. |
| OnAfterSetCustomerAsRecipient | Integration event raised after setting a customer as the payment recipient. Enables custom modifications to customer recipient data for payment export. |
| OnAfterSetEmployeeAsRecipient | Integration event raised after setting an employee as the payment recipient. Enables custom processing after employee recipient configuration. |
| OnAfterSetVendorAsRecipient | Integration event raised after setting a vendor as the payment recipient. Enables custom modifications to vendor recipient data for payment export. |
| OnAfterSetBankAsRecipient | Integration event raised after setting a bank account as the payment recipient. Enables custom modifications to bank recipient data for payment export. |
| OnPopulateTableOnBeforeInsert | Integration event raised before inserting a payment registration buffer record during table population. Enables custom modifications to buffer data before record insertion. |
| OnPopulateTableOnAfterCustLedgerEntrySetFilters | Integration event raised after applying filters to customer ledger entries during table population. Enables custom filter modifications for payment registration processing. |
| OnRestoreUserValuesOnBeforeModify | Integration event raised before modifying a payment registration buffer record during user value restoration. Enables custom logic before restoring user-entered payment values. |
| OnBeforeGetDueDateStyle | Integration event raised before determining the due date style for payment registration display. Enables custom styling logic for due date visualization. |
| OnBeforeValidateMandatoryFields | Integration event that fires before validating mandatory fields in payment registration setup. Subscribers can handle the validation process themselves and set IsHandled to true to skip the standard validation. |
Remarks
Architecture: The payment system uses a multi-layered approach with setup tables for configuration, buffer tables for workspace operations, export management for banking integration, and register-based tracking for audit trails and batch processing.
Key Workflows:
- **Payment Registration:**Quick customer payment entry using workspace interface with automatic posting and tolerance handling
- **Payment Export:**Generate bank-specific payment files with validation, remittance text, and error tracking for various banking formats
- **Credit Transfer Processing:**Batch credit transfers with register management, re-export capabilities, and multi-account-type support
Integration Points: Integrates with General Ledger for posting operations, Customer/Vendor ledgers for payment applications, Bank Account management for export configurations, and Data Exchange Framework for banking file formats. Supports multiple currencies and payment tolerance calculations.
Extensibility: Key extension points include payment registration workflow events, export format customization hooks, and credit transfer processing events. Supports custom validation through integration events and enables third-party banking system integration through data exchange framework extensions.
Dependencies:
Required: Microsoft.Finance.GeneralLedger, Microsoft.Sales.Customer, Microsoft.Purchases.Vendor, Microsoft.Bank.BankAccount
Optional: Microsoft.HumanResources.Employee, Microsoft.Foundation.Navigate, System.IO