TimeSheet
Updated
A time sheet is a grid of attendance over a period. Fill standard week writes days; Lines holds hours by employee. Payroll accrual reads those hours. The timesheet itself writes no register.
| Kind | Document |
| Module | HR |
| Menu | HR → Documents → Time sheets |
Fields#
| Field | Caption | Points at |
|---|---|---|
ID |
Number | number sequence |
Division |
Division | Division |
PeriodFrom |
Period from | date |
PeriodTo |
Period to | date |
Division is required.
Table parts#
Lines#
TimeSheetDays, caption Days. One row per employee and date.
| Field | Caption | Points at |
|---|---|---|
Employee |
Employee | Employee |
WorkDate |
Date | date |
IsAbsent |
Absent | boolean |
DayKind |
Kind | AttendanceDayKind |
Hours |
Hours | decimal |
IsManual |
Manual | boolean |
Employee, WorkDate, and Hours are required. DayKind is Work, Vacation, Sick, or Absence. A manual mark is left alone by the next fill.
TimeSheetLines, caption Lines. Hours rolled up by employee.
| Field | Caption | Points at |
|---|---|---|
Employee |
Employee | Employee |
Hours |
Hours | decimal |
Both line fields are required. After fill — and on save when days exist — days roll up into these lines.
Commands and states#
| State | Command | What happens |
|---|---|---|
| Draft | Fill standard week | Writes weekday rows for employees of the division. Manual days stay. Time-off days are marked absent with 0 hours. |
| Draft | Approve timesheet | Approved. An empty timesheet with no lines is refused. |
| Approved | Accrue payroll | Creates a PayrollAccrual from Lines. |
Fill standard week (FillTimeSheet) and Approve timesheet (ApproveTimeSheet) are bound to Draft. Accrue payroll (AccruePayroll) is bound to Approved. The stored captions match the names: Draft, Approved. Approved stays editable.
Registers#
None. Hours are stored on the document. Posting of pay is on PayrollAccrual.