Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ChangeRequest] page 253 "Sales Journal" #25901

Closed
RZ440 opened this issue Feb 12, 2024 · 1 comment
Closed

[ChangeRequest] page 253 "Sales Journal" #25901

RZ440 opened this issue Feb 12, 2024 · 1 comment
Labels
request-for-external Request for exposing a function for extension development ships-in-future-update Fix ships in a future update

Comments

@RZ440
Copy link

RZ440 commented Feb 12, 2024

Describe the request

Hello, can you please move the variables CurrentJnlBatchName, AccName and BalAccName to protected?

    var
        GeneralLedgerSetup: Record "General Ledger Setup";
        SalesReceivablesSetup: Record "Sales & Receivables Setup";
        GenJnlManagement: Codeunit GenJnlManagement;
        ClientTypeManagement: Codeunit "Client Type Management";
        JournalErrorsMgt: Codeunit "Journal Errors Mgt.";
        BackgroundErrorHandlingMgt: Codeunit "Background Error Handling Mgt.";
        ApprovalMgmt: Codeunit "Approvals Mgmt.";
        ChangeExchangeRate: Page "Change Exchange Rate";
        GenJnlBatchApprovalStatus: Text[20];
        GenJnlLineApprovalStatus: Text[20];
        Balance: Decimal;
        TotalBalance: Decimal;
        NumberOfRecords: Integer;
        ShowBalance: Boolean;
        ShowTotalBalance: Boolean;
        ApplyEntriesActionEnabled: Boolean;
        BalanceVisible: Boolean;
        TotalBalanceVisible: Boolean;
        IsPostingGroupEditable: Boolean;
        AmountVisible: Boolean;
        DebitCreditVisible: Boolean;
        BackgroundErrorCheck: Boolean;
        ShowAllLinesEnabled: Boolean;
        IsSaaSExcelAddinEnabled: Boolean;
        IsSimplePage: Boolean;
        DocumentAmount: Decimal;
        EmptyDocumentTypeErr: Label 'You must specify a document type for %1.', Comment = '%1 = Document number.';
        NegativeDocAmountErr: Label 'You must specify a positive amount as the document amount. If the journal line is for a document type that has a negative amount, the amount will be tracked correctly.';
        ActionOnlyAllowedForAllocationAccountsErr: Label 'This action is only available for lines that have Allocation Account set as Account Type or Balancing Account Type.';
        UseAllocationAccountNumber: Boolean;
        JobQueuesUsed: Boolean;
        JobQueueVisible: Boolean;
        VATDateEnabled: Boolean;
        OpenApprovalEntriesOnBatchOrAnyJnlLineExist: Boolean;
        ShowWorkflowStatusOnBatch: Boolean;
        ShowWorkflowStatusOnLine: Boolean;
        EnabledGenJnlLineWorkflowsExist: Boolean;
        EnabledGenJnlBatchWorkflowsExist: Boolean;
        CanRequestFlowApprovalForBatchAndAllLines: Boolean;
        OpenApprovalEntriesOnJnlBatchExist: Boolean;
        CanRequestFlowApprovalForBatch: Boolean;
        CanCancelApprovalForJnlBatch: Boolean;
        CanCancelFlowApprovalForBatch: Boolean;
        CanCancelApprovalForJnlLine: Boolean;
        CanCancelFlowApprovalForLine: Boolean;
        OpenApprovalEntriesOnJnlLineExist: Boolean;
        OpenApprovalEntriesExistForCurrUser: Boolean;
        ApprovalEntriesExistSentByCurrentUser: Boolean;
        OpenApprovalEntriesOnBatchOrCurrJnlLineExist: Boolean;
        CanRequestFlowApprovalForBatchAndCurrentLine: Boolean;

    protected var
        ShortcutDimCode: array[8] of Code[20];
        DimVisible1: Boolean;
        DimVisible2: Boolean;
        DimVisible3: Boolean;
        DimVisible4: Boolean;
        DimVisible5: Boolean;
        DimVisible6: Boolean;
        DimVisible7: Boolean;
        DimVisible8: Boolean;
        CurrentJnlBatchName: Code[10];
        AccName: Text[100];
        BalAccName: Text[100];

Additional context

The page variables CurrentJnlBatchName, 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 losing track of changes to those variables.
Internal work item: AB#500338

@AleksandricMarko AleksandricMarko added the request-for-external Request for exposing a function for extension development label Feb 12, 2024
@JesperSchulz JesperSchulz added the ships-in-future-update Fix ships in a future update label Mar 11, 2024
@JesperSchulz
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request-for-external Request for exposing a function for extension development ships-in-future-update Fix ships in a future update
Projects
None yet
Development

No branches or pull requests

3 participants