Share via


Codeunit "Time Sheet Approval Management"

ID 951
Namespace: Microsoft.Projects.TimeSheet

Properties

Name Value
Permissions TableData Employee = r

Methods

ProcessAction

procedure ProcessAction(var TimeSheetLine: Record "Time Sheet Line", ActionType: Option)

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"
ActionType Option

Submit

procedure Submit(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

SubmitIfConfirmed

procedure SubmitIfConfirmed(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

ReopenSubmitted

procedure ReopenSubmitted(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

ReopenSubmittedIfConfirmed

procedure ReopenSubmittedIfConfirmed(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

ReopenApproved

procedure ReopenApproved(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

ReopenApprovedIfConfirmed

procedure ReopenApprovedIfConfirmed(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

Reject

procedure Reject(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

RejectIfConfirmed

procedure RejectIfConfirmed(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

Approve

procedure Approve(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

ApproveIfConfirmed

procedure ApproveIfConfirmed(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

PostAbsence

procedure PostAbsence(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

GetTimeSheetDialogText

Obsolete

This element will become obsolete from version 25.0. Replaced with GetTimeSheetActionDialogText to remove 100 characters limitation.

[Obsolete(Replaced with GetTimeSheetActionDialogText to remove 100 characters limitation.,25.0)]
procedure GetTimeSheetDialogText(ActionType: Option, LinesQty: Integer): Text[100]

Parameters

Name Type Description
ActionType Option
LinesQty Integer

Returns

Type Description
Text[100]

GetTimeSheetActionDialogText

procedure GetTimeSheetActionDialogText(ActionType: Option, LinesQty: Integer): Text

Parameters

Name Type Description
ActionType Option
LinesQty Integer

Returns

Type Description
Text

GetManagerTimeSheetDialogText

Obsolete

This element will become obsolete from version 25.0. Replaced with GetManagerTimeSheetActionDialogText to remove 100 characters limitation.

[Obsolete(Replaced with GetManagerTimeSheetActionDialogText to remove 100 characters limitation.,25.0)]
procedure GetManagerTimeSheetDialogText(ActionType: Option, LinesQty: Integer): Text[100]

Parameters

Name Type Description
ActionType Option
LinesQty Integer

Returns

Type Description
Text[100]

GetManagerTimeSheetActionDialogText

procedure GetManagerTimeSheetActionDialogText(ActionType: Option, LinesQty: Integer): Text

Parameters

Name Type Description
ActionType Option
LinesQty Integer

Returns

Type Description
Text

GetCommonTimeSheetDialogText

Obsolete

This element will become obsolete from version 25.0. Replaced with GetCommonTimeSheetActionDialogText to remove 100 characters limitation.

[Obsolete(Replaced with GetCommonTimeSheetActionDialogText to remove 100 characters limitation.,25.0)]
procedure GetCommonTimeSheetDialogText(ActionType: Option, LinesQty: Integer): Text[100]

Parameters

Name Type Description
ActionType Option
LinesQty Integer

Returns

Type Description
Text[100]

GetCommonTimeSheetActionDialogText

procedure GetCommonTimeSheetActionDialogText(ActionType: Option, LinesQty: Integer): Text

Parameters

Name Type Description
ActionType Option
LinesQty Integer

Returns

Type Description
Text

ConfirmAction

procedure ConfirmAction(ActionType: Option): Boolean

Parameters

Name Type Description
ActionType Option

Returns

Type Description
Boolean

GetTimeSheetDialogInstruction

Obsolete

This element will become obsolete from version 25.0. Replaced with GetTimeSheetActionDialogInstruction to remove 100 characters limitation.

[Obsolete(Replaced with GetTimeSheetActionDialogInstruction to remove 100 characters limitation.,25.0)]
procedure GetTimeSheetDialogInstruction(ActionType: Option): Text[100]

Parameters

Name Type Description
ActionType Option

Returns

Type Description
Text[100]

GetTimeSheetActionDialogInstruction

procedure GetTimeSheetActionDialogInstruction(ActionType: Option): Text

Parameters

Name Type Description
ActionType Option

Returns

Type Description
Text

GetManagerTimeSheetDialogInstruction

Obsolete

This element will become obsolete from version 25.0. Replaced with GetManagerTimeSheetActionDialogInstruction to remove 100 characters limitation.

[Obsolete(Replaced with GetManagerTimeSheetActionDialogInstruction to remove 100 characters limitation.,25.0)]
procedure GetManagerTimeSheetDialogInstruction(ActionType: Option): Text[100]

Parameters

Name Type Description
ActionType Option

Returns

Type Description
Text[100]

GetManagerTimeSheetActionDialogInstruction

procedure GetManagerTimeSheetActionDialogInstruction(ActionType: Option): Text

Parameters

Name Type Description
ActionType Option

Returns

Type Description
Text

GetCommonTimeSheetDialogInstruction

procedure GetCommonTimeSheetDialogInstruction(ActionType: Option): Text

Parameters

Name Type Description
ActionType Option

Returns

Type Description
Text

Events

OnBeforeInsertEmployeeAbsence

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertEmployeeAbsence(var EmployeeAbsence: Record "Employee Absence", TimeSheetLine: Record "Time Sheet Line", var TimeSheetDetail: Record "Time Sheet Detail")

Parameters

Name Type Description
EmployeeAbsence Table Microsoft.HumanResources.Absence."Employee Absence"
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"
TimeSheetDetail Table Microsoft.Projects.TimeSheet."Time Sheet Detail"

OnBeforePostAbsence

[IntegrationEvent(False,False)]
local procedure OnBeforePostAbsence(var TimeSheetLine: Record "Time Sheet Line", var IsHandled: Boolean)

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"
IsHandled Boolean

OnAfterSubmit

[IntegrationEvent(False,False)]
local procedure OnAfterSubmit(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

OnAfterReopenSubmitted

[IntegrationEvent(False,False)]
local procedure OnAfterReopenSubmitted(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

OnAfterReopenApproved

[IntegrationEvent(False,False)]
local procedure OnAfterReopenApproved(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

OnAfterReject

[IntegrationEvent(False,False)]
local procedure OnAfterReject(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

OnAfterApprove

[IntegrationEvent(False,False)]
local procedure OnAfterApprove(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

OnApproveOnBeforeTimeSheetLineModify

[IntegrationEvent(False,False)]
local procedure OnApproveOnBeforeTimeSheetLineModify(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

OnRejectOnBeforeTimeSheetLineModify

[IntegrationEvent(False,False)]
local procedure OnRejectOnBeforeTimeSheetLineModify(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

OnReopenApprovedOnBeforeTimeSheetLineModify

[IntegrationEvent(False,False)]
local procedure OnReopenApprovedOnBeforeTimeSheetLineModify(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

OnReopenApprovedOnBeforeCheckLinkedDoc

[IntegrationEvent(False,False)]
local procedure OnReopenApprovedOnBeforeCheckLinkedDoc(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

OnReopenSubmittedOnAfterModify

[IntegrationEvent(False,False)]
local procedure OnReopenSubmittedOnAfterModify(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

OnReopenSubmittedOnBeforeModify

[IntegrationEvent(False,False)]
local procedure OnReopenSubmittedOnBeforeModify(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

OnSubmitOnBeforeTimeSheetLineModify

[IntegrationEvent(False,False)]
local procedure OnSubmitOnBeforeTimeSheetLineModify(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

OnBeforeApprove

[IntegrationEvent(False,False)]
local procedure OnBeforeApprove(var TimeSheetLine: Record "Time Sheet Line", var IsHandled: Boolean)

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"
IsHandled Boolean

OnBeforeCheckApproverPermissions

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckApproverPermissions(var TimeSheetLine: Record "Time Sheet Line", var IsHandled: Boolean)

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"
IsHandled Boolean

OnBeforeSubmit

[IntegrationEvent(False,False)]
local procedure OnBeforeSubmit(var TimeSheetLine: Record "Time Sheet Line", var IsHandled: Boolean)

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"
IsHandled Boolean

OnBeforeGetTimeSheetDialogText

Obsolete

This element will become obsolete from version 25.0. Replaced with OnBeforeGetTimeSheetActionDialogText and OnBeforeGetCommonTimeSheetActionDialogText to remove 100 characters limitation.

[Obsolete(Replaced with OnBeforeGetTimeSheetActionDialogText and OnBeforeGetCommonTimeSheetActionDialogText to remove 100 characters limitation.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeGetTimeSheetDialogText(ActionType: Option, LinesQty: Decimal, var ReturnText: Text[100], var IsHandled: Boolean)

Parameters

Name Type Description
ActionType Option
LinesQty Decimal
ReturnText Text[100]
IsHandled Boolean

OnBeforeGetTimeSheetActionDialogText

[IntegrationEvent(False,False)]
local procedure OnBeforeGetTimeSheetActionDialogText(ActionType: Option, LinesQty: Decimal, var ReturnActionText: Text, var IsHandled: Boolean)

Parameters

Name Type Description
ActionType Option
LinesQty Decimal
ReturnActionText Text
IsHandled Boolean

OnBeforeGetCommonTimeSheetActionDialogText

[IntegrationEvent(False,False)]
local procedure OnBeforeGetCommonTimeSheetActionDialogText(ActionType: Option, LinesQty: Decimal, var ReturnActionText: Text, var IsHandled: Boolean)

Parameters

Name Type Description
ActionType Option
LinesQty Decimal
ReturnActionText Text
IsHandled Boolean

OnBeforeGetManagerTimeSheetDialogText

Obsolete

This element will become obsolete from version 25.0. Replaced with OnBeforeGetManagerTimeSheetActionDialogText to remove 100 characters limitation.

[Obsolete(Replaced with OnBeforeGetManagerTimeSheetActionDialogText to remove 100 characters limitation.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeGetManagerTimeSheetDialogText(ActionType: Option, LinesQty: Decimal, var ReturnText: Text[100], var IsHandled: Boolean)

Parameters

Name Type Description
ActionType Option
LinesQty Decimal
ReturnText Text[100]
IsHandled Boolean

OnBeforeGetManagerTimeSheetActionDialogText

[IntegrationEvent(False,False)]
local procedure OnBeforeGetManagerTimeSheetActionDialogText(ActionType: Option, LinesQty: Decimal, var ReturnActionText: Text, var IsHandled: Boolean)

Parameters

Name Type Description
ActionType Option
LinesQty Decimal
ReturnActionText Text
IsHandled Boolean

OnBeforeReject

[IntegrationEvent(False,False)]
local procedure OnBeforeReject(var TimeSheetLine: Record "Time Sheet Line", var IsHandled: Boolean)

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"
IsHandled Boolean

OnSubmitOnAfterCheck

[IntegrationEvent(False,False)]
local procedure OnSubmitOnAfterCheck(var TimeSheetLine: Record "Time Sheet Line")

Parameters

Name Type Description
TimeSheetLine Table Microsoft.Projects.TimeSheet."Time Sheet Line"

See also