Report Check

ID 1401
Namespace: Microsoft.Bank.Check

Generates formatted check documents with proper alignment and security features. Supports multiple check formats, void processing, and remittance stub generation.

Remarks

Data sources: Gen. Journal Line for check data, Bank Account for routing information. Output formats: RDLC with precise positioning for check stock compatibility. Integrates with CheckManagement codeunit for check numbering and void processing.

Properties

Name Value
DefaultLayout RDLC
RDLCLayout ./Bank/Check/Check.rdlc
Caption Check
Permissions TableData "Bank Account" = m

Methods

FormatNoText

Formats numeric amounts into written text for check printing.

procedure FormatNoText(var NoText: array[2] of Text[80], No: Decimal, CurrencyCode: Code[10])

Parameters

Name Type Description
NoText array[2] of Text[80]

Array to store the formatted text output

No Decimal

Decimal amount to convert to text

CurrencyCode Code[10]

Currency code for proper text formatting

InitTextVariable

Initializes text variables for number-to-text conversion.

procedure InitTextVariable()

InitializeRequest

Initializes request parameters for check printing operation.

procedure InitializeRequest(BankAcc: Code[20], LastCheckNo: Code[20], NewOneCheckPrVend: Boolean, NewReprintChecks: Boolean, NewTestPrint: Boolean, NewPreprintedStub: Boolean)

Parameters

Name Type Description
BankAcc Code[20]

Bank account code to use for check printing

LastCheckNo Code[20]

Last check number for numbering sequence

NewOneCheckPrVend Boolean

Whether to print one check per vendor

NewReprintChecks Boolean

Whether to reprint existing checks

NewTestPrint Boolean

Whether this is a test print operation

NewPreprintedStub Boolean

Whether to use preprinted check stubs

InputBankAccount

Validates and retrieves bank account information for check processing.

procedure InputBankAccount()

Events

OnAfterFormatNoText

Integration event raised after formatting numeric amount to text for check printing. Enables custom formatting or modification of the text representation of check amounts.

[IntegrationEvent(False,False)]
local procedure OnAfterFormatNoText(var NoText: array[2] of Text[80], No: Decimal, CurrencyCode: Code[10])

Parameters

Name Type Description
NoText array[2] of Text[80]

Array containing the formatted text representation of the amount

No Decimal

Numeric amount that was formatted

CurrencyCode Code[10]

Currency code for the amount

Remarks

Raised from FormatNoText procedure after converting numeric amount to written text format.

OnAfterVendUpdateAmounts

Integration event raised after updating vendor ledger entry amounts during check processing. Enables custom processing or field updates after vendor amount calculations.

[IntegrationEvent(False,False)]
local procedure OnAfterVendUpdateAmounts(var VendLedgEntry2: Record "Vendor Ledger Entry", var DocDate: Date)

Parameters

Name Type Description
VendLedgEntry2 Table Microsoft.Purchases.Payables."Vendor Ledger Entry"

Vendor ledger entry with updated amounts

DocDate Date

Document date used in processing

Remarks

Raised from VendUpdateAmounts procedure after calculating and updating vendor payment amounts.

OnGenJnlLineOnAfterGetRecordOnAfterBalancingTypeVendorCase

Integration event raised after processing vendor record in general journal line context. Enables custom processing or field updates after vendor data retrieval for balancing account.

[IntegrationEvent(False,False)]
local procedure OnGenJnlLineOnAfterGetRecordOnAfterBalancingTypeVendorCase(var Vendor: Record Vendor, var GenJnlLine: Record "Gen. Journal Line")

Parameters

Name Type Description
Vendor Table Microsoft.Purchases.Vendor.Vendor

Vendor record that was processed

GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

General journal line in balancing context

Remarks

Raised from general journal line processing when balance account type is vendor.

OnAfterAssignGenJnlLineDocumentNo

Integration event raised after assigning document number to general journal line. Enables custom processing or logging after document number assignment.

[IntegrationEvent(False,False)]
local procedure OnAfterAssignGenJnlLineDocumentNo(var GenJnlLine: Record "Gen. Journal Line", PreviousDocumentNo: Code[20])

Parameters

Name Type Description
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

General journal line with assigned document number

PreviousDocumentNo Code[20]

Previous document number for reference

Remarks

Raised from document number assignment logic after setting new document number.

OnAfterAssignGenJnlLineDocNoAndAccountType

Integration event raised after assigning document number and account type to general journal line. Enables custom processing after document and account type assignment in specific apply methods.

[IntegrationEvent(False,False)]
local procedure OnAfterAssignGenJnlLineDocNoAndAccountType(var GenJnlLine: Record "Gen. Journal Line", PreviousDocumentNo: Code[20], ApplyMethod: Option)

Parameters

Name Type Description
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

General journal line with assigned values

PreviousDocumentNo Code[20]

Previous document number for reference

ApplyMethod Option

Apply method option used in the assignment

Remarks

Raised from document and account assignment logic for specific application methods.

See also