Page 1285 Change Bank Rec. Statement No.
- App
- Base Application
- Namespace
- Microsoft.Bank.Reconciliation
- Versions
- 17-28
Versions171819202122232425262728
Source29
Source in 29
src/Layers/W1/BaseApp/Bank/Reconciliation/ChangeBankRecStatementNo.Page.al63 lines, Copyright (c) Microsoft Corporation. MIT
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
namespace Microsoft.Bank.Reconciliation;
/// <summary>
/// Dialog page for changing bank reconciliation statement numbers.
/// Provides user interface for statement number modification with validation.
/// </summary>
page 1285 "Change Bank Rec. Statement No."
{
PageType = StandardDialog;
Caption = 'Change Statement No.';
layout
{
area(Content)
{
field(NewStatementNumber; NewStatementNo)
{
ApplicationArea = Basic, Suite;
Caption = 'New Statement No.';
ToolTip = 'Specifies the new number of the bank account statement.';
NotBlank = true;
trigger OnValidate()
var
BankAccReconciliation: Record "Bank Acc. Reconciliation";
begin
if NewStatementNo <> GlobalBankAccReconciliation."Statement No." then
if BankAccReconciliation.Get(
GlobalBankAccReconciliation."Statement Type"::"Bank Reconciliation",
GlobalBankAccReconciliation."Bank Account No.",
NewStatementNo)
then
Error(StatementAlreadyExistsErr, NewStatementNo);
end;
}
}
}
actions
{
}
var
GlobalBankAccReconciliation: Record "Bank Acc. Reconciliation";
StatementAlreadyExistsErr: Label 'A bank account reconciliation with statement number %1 already exists.', Comment = '%1 - statement number';
NewStatementNo: Code[20];
procedure SetBankAccReconciliation(BankAccReconciliation: Record "Bank Acc. Reconciliation")
begin
GlobalBankAccReconciliation := BankAccReconciliation;
NewStatementNo := BankAccReconciliation."Statement No.";
end;
procedure GetNewStatementNo(): Code[20]
begin
exit(NewStatementNo);
end;
}