-
Notifications
You must be signed in to change notification settings - Fork 688
Closed
Labels
SCMGitHub request for SCM areaGitHub request for SCM areaevent-requestRequest for adding an eventRequest for adding an eventships-in-future-updateFix ships in a future updateFix ships in a future update
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
SCMGitHub request for SCM areaGitHub request for SCM areaevent-requestRequest for adding an eventRequest for adding an eventships-in-future-updateFix ships in a future updateFix ships in a future update