Codeunit "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.
Properties
| Name | Value |
|---|---|
| TableNo | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
Methods
AddFieldEmptyError
Adds a field empty error to the payment file error log for a general journal line.
procedure AddFieldEmptyError(var GenJnlLine: Record "Gen. Journal Line", TableCaption2: Text, FieldCaption: Text, KeyValue: Text)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to add the error to. |
| TableCaption2 | Text |
The caption of the table where the field is missing. |
| FieldCaption | Text |
The caption of the field that is empty. |
| KeyValue | Text |
The key value to identify the specific record, if applicable. |
AddBatchEmptyError
Adds a batch-related empty field error to the payment file error log for a general journal line.
procedure AddBatchEmptyError(var GenJnlLine: Record "Gen. Journal Line", FieldCaption: Text, KeyValue: Variant)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to add the error to. |
| FieldCaption | Text |
The caption of the field that is empty in the journal batch. |
| KeyValue | Variant |
The key value to identify the specific batch record. |
Events
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.
[IntegrationEvent(False,False)]
local procedure OnPaymentExportGenJnlCheck(var GenJournalLine: Record "Gen. Journal Line", var Handled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line being validated for payment export. |
| Handled | Boolean |
Set to true if the validation has been handled by an external extension. |