Skip to main content

Attendance Business Rules

Summary​

This register separates confirmed rules from transitional, unresolved, and unsupported capabilities.

Audience​

HR, attendance and payroll administrators, managers, analysts, product owners, implementation partners, and QA engineers.

Reference Content​

Rule matrices​

CategoryConfirmed ruleEvidence
Tenant and employeeAttendance requires tenant and employee context; available profiles enforce active status and joining date.Attendance commands
UniquenessOne daily attendance outcome is maintained per tenant, employee, and date.Attendance record and commands
PunchMultiple observations are retained; sufficient duration can derive attendance.Punch workflow
Shift assignmentActive assignments are effective-dated and cannot overlap when created through confirmed behavior.Policy resolver
PolicyShift context precedes tenant default policy; profile supplies fallback context.Policy resolver
CalculationNon-negative canonical hours produce Present, Half Day, or Absent and paid units.Calculator
Submission and approvalNon-approvers submit pending outcomes; authorized approval recalculates and audits.Attendance commands
RejectionRejection clears outcome values and leaves the record unapproved.Attendance record
ReopeningOne pending request per employee/date; approval recalculates and respects payroll lock.Reopen workflow
Weekly offManual entry is blocked; punch capture remains possible.Commands and resolver
ClassificationRules
TransitionalEmployee profile is a local projection; leave/holiday and blended payroll calendar behavior span service and legacy ownership; compatibility routing remains during cutover.
Requires confirmationPunch sequence/duplicates, future ordinary entry, team scope, approval hierarchy, break/rounding policy, overtime eligibility/rates, policy replacement governance, leave/holiday precedence, post-payroll correction.
Not implemented in reviewed evidenceDevice/biometric ingestion, file import, employee-specific attendance-policy assignment, policy effective dates, rotating rosters, and dedicated reusable Workflow integration.

Every rule above is supported by the source paths below; tenant-specific values and internal mechanics are intentionally excluded.

Source References​

  • microservices/src/attendance-service/Domain/Attendance/AttendanceRecord.cs
  • microservices/src/attendance-service/Domain/Attendance/AttendanceCalculator.cs
  • microservices/src/attendance-service/Application/Services/AttendanceCommands.cs
  • microservices/src/attendance-service/Application/Services/PunchWorkflow.cs
  • microservices/src/attendance-service/Application/Services/ReopenRequestWorkflow.cs
  • microservices/src/attendance-service/Application/Services/AttendancePolicyResolver.cs

See Also​

Keywords​

  • Attendance
  • Attendance Business Rules

Revision Information​

  • Status: Draft
  • Last reviewed: 2026-07-15
  • Review cycle: Quarterly