Constructor
new Timesheet(data)
Creates a timesheet entry object
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Timesheet | Object |
- Source:
Members
_id :string
Unique ID for the timesheet entry
Type:
- string
- Default Value:
- ''
- Source:
claUnit :number|null
The overall CLA unit the user was in when he created this timesheet entry (see User.claUnit)
Type:
- number | null
- Default Value:
- null
- Source:
endTime :string
The datetime this timesheet entry was completed, representing the end of time spent in taskBox. In ISO format (e.g., '2022-06-20T15:50:40.055Z')
Type:
- string
- Default Value:
- ''
- Source:
localStartDate :string
localStartDate is the date this timesheet entry was created, in the user's local time zone. It is in the format 'YYYY-MM-DD'.
We use this to group timesheet entries by day.
Type:
- string
- Default Value:
- ''
- Source:
startTime :string
The datetime this timesheet entry was created, representing the start of time spent in taskBox. In ISO format (e.g., '2022-06-20T15:50:40.055Z')
Type:
- string
- Default Value:
- ''
- Source:
taskBox :TaskBox|string
TaskBox for this timesheet entry
Type:
- TaskBox | string
- Source:
Methods
set(data) → {Timesheet}
Creates an updated timesheet entry object
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Timesheet | Object |
- Source:
Returns:
- Type
- Timesheet