Skip to content

[Event Request] GB Codeunit 950 Time Sheet Management. #28931

@LewisHyett

Description

@LewisHyett

Why do you need this change?

GB Codeunit 950 Time Sheet Management.

proecdure CheckAccPeriod

Please add an OnBefore event to the procedure CheckAccPeriod to allow us to bypass this check. We want to allow the users to reopen and resubmit a timesheet dated in a closed period.

Describe the request

    procedure CheckAccPeriod(Date: Date)
    var
        AccountingPeriod: Record "Accounting Period";
        Ishandled: Boolean;
    begin
         OnBeforeCheckAccPeriod(Date, IsHandled);
        if IsHandled then
            exit;

        if AccountingPeriod.IsEmpty() then
            exit;
        AccountingPeriod.SetFilter("Starting Date", '..%1', Date);
        AccountingPeriod.FindLast();
        AccountingPeriod.TestField(Closed, false);
    end;
[IntegrationEvent(false,false)]
local procedure OnBeforeCheckAccPeriod(DateToCheck: Date; var IsHandled: Boolean)
begin
end;

Internal work item: AB#596439

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an eventships-in-future-updateFix ships in a future update

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions