HRStop allows you to define how weekends and holidays are treated when they occur before, after, or between leave days. These are commonly known as Sandwich Rules and help ensure fair and policy-compliant leave deduction.
Steps to Configure Sandwich Rules
1. Go to Leave Settings
- Navigate to: Control Panel > Settings > Leaves
2. Scroll to 'Add Leave Category'
- Add a new leave category or edit an existing one.
3. Locate Sandwich Rule Settings
- Under the selected leave category, find Sandwich Rule Settings.
- You will see a list of checkboxes for different rule types.
Available Sandwich Rule Options (with Examples)
Weekend-Based Rules
-
LWWL – Week Off IN BETWEEN Leaves - Counts weekends between two leave days.
Example: Leave on Friday and Monday, with weekend in between → 4 days counted (Fri–Mon). -
WWL – Week Off BEFORE Leave - Counts weekends before a leave day.
Example: Leave on Monday, with weekend on Sat–Sun → 3 days counted (Sat–Mon). -
LWW – Week Off AFTER Leave - Counts weekends after a leave day.
Example: Leave on Friday, with weekend after → 3 days counted (Fri–Sun). -
WLW – Leave IN BETWEEN Week Offs - Counts weekends before and after a single leave day.
Example: Leave on Sunday, with weekends on Sat and Mon → 3 days counted (Sat–Mon).
Holiday-Based Rules
-
LHL – Holiday IN BETWEEN Leaves - Counts holidays between two leave days.
Example: Leave on Friday and Monday, with a holiday on Saturday → 3 days counted (Fri–Mon). -
HL – Holiday BEFORE Leave - Counts holidays before a leave day.
Example: Leave on 2nd, with holiday on 1st → 2 days counted (1st–2nd). -
LH – Holiday AFTER Leave - Counts holidays after a leave day.
Example: Leave on 30th, with holiday on 31st → 2 days counted (30th–31st). -
HLH – Leave IN BETWEEN Holidays - Counts holidays before and after a single leave day.
Example: Leave on 2nd, with holidays on 1st and 3rd → 3 days counted (1st–3rd).
4. Save the Configuration
- After selecting the rules that match your policy, click Add or Save.
- Changes take effect immediately for that leave category.
Notes
- These settings are category-specific — you can enable different rules for different leave types.
- Ideal for managing long weekends, festival breaks, and misuse of isolated leave days.