Skip to content

[W1][Report][91][Export Consolidation] OnBeforeCheckClosingPostings event #29191

Description

@polina-se

Why do you need this change?

I would like to request the addition of an OnBeforeCheckClosingPostings event in report 91 'Export Consolidation'.

This new event is required to integrate our custom logic for the Closing Postings check. In our system, we utilize a custom table instead of the "Accounting Period" record. This custom table needs to be incorporated into the CheckClosingPostings procedure to align with our specific requirements.

Thank you for considering this request.

Describe the request

This change is needed in BC25.
Proposed Event Code:

[W1][Report][91][Export Consolidation] OnBeforeCheckClosingPostings()
___
This event is necessary to use a custom table instead of the "Accounting Period" record.
___
[IntegrationEvent(true, false)] local procedure OnBeforeCheckClosingPostings(GLAccNo: Code[20]; StartDate: Date; EndDate: Date; var IsHandled: Boolean)
begin
end;

Proposed Event Placement:

local procedure CheckClosingPostings(GLAccNo: Code[20]; StartDate: Date; EndDate: Date)
...
begin
    IsHandled := false;
    OnBeforeCheckClosingPostings(GLAccNo, StartDate, EndDate, IsHandled);
    if IsHandled then
       exit;
    
    AccountingPeriod.SetCurrentKey("New Fiscal Year", "Date Locked");
    ...
end;

Internal work item: AB#603835

Metadata

Metadata

Assignees

No one assigned

    Labels

    FinanceGitHub request for Finance areaevent-requestRequest for adding an event

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions