Skip to main content

Leave Business Rules

Summary

This register separates confirmed, transitional, unresolved, and absent Leave rules.

Audience

Leave/HR/Payroll administrators, managers, analysts, product owners, QA, and implementers.

Reference Content

Confirmed rules

AreaRuleSource
Tenant/employeeTenant and active employee are required; dates cannot precede joining.Leave request and commands
Date rangeEnd date cannot precede start; calculated days must be positive.Leave request/calculator
ConflictExisting Attendance and approved overlapping Leave block creation; approved Attendance blocks approval.Commands
CalculationInclusive range is default; enabled policy can exclude holidays/weekly offs; half day applies to one effective day.Calculator
SubmissionOrdinary compatibility self requests are Pending; tenant administration may auto-approve while Workflow is off.Controller/commands
ApprovalOnly Pending can be approved; approval applies balance usage.Request/commands
RejectionOnly Pending can be rejected and a reason is required.Request/commands
CancellationPending/Approved can become Cancelled; prior approved usage is reversed.Request/commands
BalanceBalance is per user/type/year and available incorporates opening, accrued, adjusted, carried, used, and encashed units.Balance
AuditabilityRequest decisions and balance changes produce timeline/audit evidence.Commands

Transitional rules

AreaRule
WorkflowDirect approval is default; optional Workflow ownership suppresses direct decisions for managed requests.
Leave typesFirst-class type metadata coexists with legacy textual conventions.
CalendarLeave and Attendance weekly-off/holiday compatibility ownership overlaps.
PayrollApproved Leave is consumed through legacy read behavior; extracted consumer timing requires confirmation.
AuthorizationMonolith self/team/tenant scope and extracted service ownership are not yet a final unified model.

Requires confirmation

Policy activation, minimum notice, maximum duration, annual cap, balance sufficiency/negative-balance governance, accrual execution, type eligibility, date restrictions beyond joining, Pending-overlap policy, resubmission, cancellation after Payroll, calendar precedence, final approver hierarchy, notification parity, and cross-service synchronization.

Not implemented

Supporting documents, request editing, reserved Pending balance, employee/group policy assignment, policy effective dates, carry-forward execution, encashment workflow, team calendar, cancellation approval, and a governed post-Payroll correction flow.

Source References

  • microservices/src/leave-service/Domain/Leave/LeaveRequest.cs
  • microservices/src/leave-service/Domain/Leave/LeaveBalance.cs
  • microservices/src/leave-service/Domain/Leave/LeaveDayCalculator.cs
  • microservices/src/leave-service/Application/LeaveWorkflows.cs
  • Controllers/LeaveRequestsController.cs

See Also

Keywords

  • Leave
  • Leave Business Rules
  • Workforce management

Revision Information

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