Timesheet
A timesheet [Timesheet] is a collection of time entries submitted by an employee to claim compensation for time worked.
Review the Usage Guidelines for the Timesheet object.
|
- |
XML |
SOAP |
REST |
Database table |
|---|---|---|---|---|
|
Object |
|
|
- |
|
|
Supported Commands |
|
|
- |
- |
The Timesheet object has the following standard properties:
Timesheet object properties may also include custom fields. The object type supports the custom equal to read method and the enable_custom read attribute.
|
XML / SOAP |
Database |
Description |
|---|---|---|
|
|
|
The accounting period date of the task. See Date Fields. |
|
|
|
The date the timesheet was approved. See Date Fields. |
|
|
- |
Empty value kept for backward compatibility. |
|
|
|
Id of complementary timesheet in case of cross month timesheet. Used only when the value of |
|
|
|
[Read-only] Time the record was created. See Date Fields. |
|
|
|
The default category ID this timesheet is associated with. All new task entries get this default value. |
|
|
|
The default customer ID this timesheet is associated with. All new task entries get this default value. |
|
|
|
The default payroll type ID this timesheet is associated with. |
|
|
|
Holds a data structure of per row defaults. The format is as follows: Multiple CSV rows with each row having the element name ('cp','category' etc.) as the first record and then the ID values per row. |
|
|
|
The default project ID this timesheet is associated with. |
|
|
|
The default task ID this timesheet is associated with. All new task entries get this default value. |
|
|
|
The default time type ID this timesheet is associated with. |
|
|
|
The duration of the timesheet:
|
|
|
|
[Required] The ending date of the timesheet. See Date Fields. Must be after |
|
|
|
[Read-only] History of events that occurred to the TimeSheet. |
|
|
|
[Read-only] Unique ID. Automatically assigned by SuiteProjects Pro. |
|
|
- |
[Read-only] Calculated maximum number of hours allowed on the timesheet as determined by the corresponding timesheet rule. A value is returned only if the rule is active and the attribute |
|
|
- |
[Read-only] Calculated minimum number of hours required on the timesheet as determined by the corresponding timesheet rule. Supports the Read method only. A value is returned only if the rule is active and the attribute |
|
|
|
The name of the timesheet. |
|
|
|
Notes related to this timesheet. |
|
|
|
Indicator of whether the cross_month timesheet belongs to the end of the current month or beggining of the next month'E' - belongs to the end of current month, first date in timesheet'S' - belongs to the start of next month, last date in timesheet. Must be used only for split timesheets at month end. |
|
|
|
[Required] The starting date of the timesheet. See Date Fields. Must be before |
|
|
|
The status of the timesheet:
|
|
|
|
The date the timesheet was submitted. See Date Fields. |
|
|
|
Used by thin clients to reconcile imported records. |
|
|
|
[Read-only] The total number of hours in the timesheet. |
|
|
|
[Read-only] Time the record was last updated or modified. See Date Fields. |
|
|
|
[Required] The ID of the associated user. |
Usage Guidelines
Review the following notes and guidelines:
-
Your account can be configured to:
-
Allow the modification of approved and archived timesheets using the API.
-
Disallow the modification of submitted timesheet by the timesheet owner.
-
Disallow the modification of exported timesheets.
To enable any of the above features, contact SuiteProjects Pro Support.
-
-
To modify another user's timesheet, the authenticated user must be an account administrator or qualify for the approver exception. The exception applies to submitted timesheets awaiting that user's approval, when the account and approval process permit approver editing. The account must also allow the API to modify another user's timesheet. Account administrators configure approver editing through a Timesheets application setting or, when the optional feature is enabled, through role permissions. For the Allow an approver to edit a submitted timesheet setting, see Other Settings. For role permissions, see Control Editing Submitted Entities by Approvers Using Role Permissions.
-
Set the attribute
calculate_hoursto1to return the minimum number of hours required [min_hours] and maximum number of hours allowed [max_hours] on the timesheet if an active timesheet rule set these values as a fixed number of hours or as a percentage of the work schedule. For more information about timesheet rules, see Timesheet Rules.Important:Using the attribute
calculate_hoursmay slow the response time significantly, particularly when there are active timesheet rules are active and the minimum and maximum number of hours are set as a percentage of the work schedule. -
You cannot delete a
Timesheetobject if this object is referenced by aTaskobject. Delete any dependent objects first before you delete aTimesheetobject.