ALAppExtensions
ALAppExtensions copied to clipboard
[Change Request] page 39 "General Journal"
Describe the request
Hello, can you please move the AccName and BalAccName variables to protected?
var
GeneralLedgerSetup: Record "General Ledger Setup";
GenJnlManagement: Codeunit GenJnlManagement;
ReportPrint: Codeunit "Test Report-Print";
PayrollManagement: Codeunit "Payroll Management";
ClientTypeManagement: Codeunit "Client Type Management";
NoSeriesMgt: Codeunit NoSeriesManagement;
JournalErrorsMgt: Codeunit "Journal Errors Mgt.";
BackgroundErrorHandlingMgt: Codeunit "Background Error Handling Mgt.";
PrivacyNotice: Codeunit "Privacy Notice";
PrivacyNoticeRegistrations: Codeunit "Privacy Notice Registrations";
ApprovalMgmt: Codeunit "Approvals Mgmt.";
ChangeExchangeRate: Page "Change Exchange Rate";
GLReconcile: Page Reconciliation;
GenJnlBatchApprovalStatus: Text[20];
GenJnlLineApprovalStatus: Text[20];
Balance: Decimal;
TotalBalance: Decimal;
NumberOfRecords: Integer;
ShowBalance: Boolean;
ShowTotalBalance: Boolean;
Text000: Label 'General Journal lines have been successfully inserted from Standard General Journal %1.';
Text001: Label 'Standard General Journal %1 has been successfully created.';
HasIncomingDocument: Boolean;
BalanceVisible: Boolean;
TotalBalanceVisible: Boolean;
StyleTxt: Text;
IsPowerAutomatePrivacyNoticeApproved: Boolean;
ApprovalEntriesExistSentByCurrentUser: Boolean;
OpenApprovalEntriesExistForCurrUser: Boolean;
OpenApprovalEntriesOnJnlBatchExist: Boolean;
OpenApprovalEntriesOnJnlLineExist: Boolean;
OpenApprovalEntriesOnBatchOrCurrJnlLineExist: Boolean;
OpenApprovalEntriesOnBatchOrAnyJnlLineExist: Boolean;
EnabledGenJnlLineWorkflowsExist: Boolean;
EnabledGenJnlBatchWorkflowsExist: Boolean;
ShowWorkflowStatusOnBatch: Boolean;
ShowWorkflowStatusOnLine: Boolean;
CanCancelApprovalForJnlBatch: Boolean;
CanCancelApprovalForJnlLine: Boolean;
ImportPayrollTransactionsAvailable: Boolean;
IsSaaSExcelAddinEnabled: Boolean;
CanRequestFlowApprovalForBatch: Boolean;
CanRequestFlowApprovalForBatchAndAllLines: Boolean;
CanRequestFlowApprovalForBatchAndCurrentLine: Boolean;
CanCancelFlowApprovalForBatch: Boolean;
CanCancelFlowApprovalForLine: Boolean;
AmountVisible: Boolean;
DebitCreditVisible: Boolean;
IsSaaS: Boolean;
JobQueuesUsed: Boolean;
JobQueueVisible: Boolean;
BackgroundErrorCheck: Boolean;
ShowAllLinesEnabled: Boolean;
CurrentDocNo: Code[20];
CurrentPostingDate: Date;
CurrentCurrencyCode: Code[10];
IsChangingDocNo: Boolean;
VATDateEnabled: Boolean;
MissingExchangeRatesQst: Label 'There are no exchange rates for currency %1 and date %2. Do you want to add them now? Otherwise, the last change you made will be reverted.', Comment = '%1 - currency code, %2 - posting date';
ActionOnlyAllowedForAllocationAccountsErr: Label 'This action is only available for lines that have Allocation Account set as Account Type or Balancing Account Type.';
PostedFromSimplePage: Boolean;
DocumentNumberMsg: Label 'Document No. must have a value in Gen. Journal Line.';
UseAllocationAccountNumber: Boolean;
protected var
CurrentJnlBatchName: Code[10];
ApplyEntriesActionEnabled: Boolean;
IsSimplePage: Boolean;
ShortcutDimCode: array[8] of Code[20];
DimVisible1: Boolean;
DimVisible2: Boolean;
DimVisible3: Boolean;
DimVisible4: Boolean;
DimVisible5: Boolean;
DimVisible6: Boolean;
DimVisible7: Boolean;
DimVisible8: Boolean;
AccName: Text[100];
BalAccName: Text[100];
Additional context
The page variables AccName and BalAccName need to be visible to extension code to ensure data consistency. Duplicating those variables in extension code would bear the risk of loosing track of changes to those variables. Internal work item: AB#498773
Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 17192.