Codeunit 951 Time Sheet Approval Management

Base Application, Microsoft.Projects.TimeSheet

Source AL, 532 lines

src/Layers/W1/BaseApp/Projects/TimeSheet/TimeSheetApprovalManagement.Codeunit.allines 12 to 27 of 532, Copyright (c) Microsoft Corporation. MIT

codeunit 951 "Time Sheet Approval Management"{    Permissions = TableData Employee = r;    trigger OnRun()    begin    end;    var        ResourcesSetup: Record "Resources Setup";        ResourceSetupRead: Boolean;        NothingToSubmitErr: Label 'There is nothing to submit for line with %1=%2, %3=%4.', Comment = '%1 = Time Sheet No. caption; %2 = Time Sheet No. value; %3 = Line No. caption; %4 = Line No. value; Example = There is nothing to submit for line with Time Sheet No.=10, Line No.=10000.';#pragma warning disable AA0074        Text002: Label 'You are not authorized to approve time sheet lines. Contact your time sheet administrator.';#pragma warning restore AA0074        ProcessOpenLinesQst: Label '&All open lines with %2 defined [%1 line(s)],&Selected line(s) with %2 defined only', Comment = '%1 = Lines count, %2 = Type caption';

All 532 lines

Events 22 in 29

[IntegrationEvent] OnBeforeInsertEmployeeAbsence(var EmployeeAbsence: Record "Employee Absence"; TimeSheetLine: Record "Time Sheet Line"; var TimeSheetDetail: Record "Time Sheet Detail")17-29
[IntegrationEvent] OnAfterSubmit(var TimeSheetLine: Record "Time Sheet Line")17-29
[IntegrationEvent] OnAfterReopenSubmitted(var TimeSheetLine: Record "Time Sheet Line")17-29
[IntegrationEvent] OnAfterReopenApproved(var TimeSheetLine: Record "Time Sheet Line")17-29
[IntegrationEvent] OnAfterReject(var TimeSheetLine: Record "Time Sheet Line")17-29
[IntegrationEvent] OnAfterApprove(var TimeSheetLine: Record "Time Sheet Line")17-29
[IntegrationEvent] OnApproveOnBeforeTimeSheetLineModify(var TimeSheetLine: Record "Time Sheet Line")17-29

All 24 events in 17-29

Public procedures 19 in 29

Submit(var TimeSheetLine: Record "Time Sheet Line")17-29
ReopenSubmitted(var TimeSheetLine: Record "Time Sheet Line")17-29
ReopenApproved(var TimeSheetLine: Record "Time Sheet Line")17-29
Reject(var TimeSheetLine: Record "Time Sheet Line")17-29
Approve(var TimeSheetLine: Record "Time Sheet Line")17-29
ProcessAction(var TimeSheetLine: Record "Time Sheet Line"; ActionType: Option Submit,ReopenSubmitted,Approve,ReopenApproved,Reject)new in 19

All 25 procedures in 17-29

Changes 7 in 28

List17181920212223242526272829
Procedures91115
Events111522
GetTimeSheetDialogText(ActionType: Option Submit,Reopen; LinesQty: Integer): Text[100]gone after 27
gone
GetManagerTimeSheetDialogText(ActionType: Option Approve,Reopen,Reject; LinesQty: Integer): Text[100]gone after 27
gone
GetTimeSheetDialogInstruction(ActionType: Option Submit,Reopen): Text[100]gone after 27
gone
GetManagerTimeSheetDialogInstruction(ActionType: Option Approve,Reopen,Reject): Text[100]gone after 27
gone
GetCommonTimeSheetDialogText(ActionType: Option Submit,ReopenSubmitted,Approve,ReopenApproved,Reject; LinesQty: Integer): Text[100]19 to 27
gone
[IntegrationEvent] OnBeforeGetTimeSheetDialogText(ActionType: Option; LinesQty: Decimal; var ReturnText: Text[100]; var IsHandled: Boolean)gone after 27
gone

All 38 changes in 17-29