Configuring Weekend and Sandwich Rules in Leaves

Dec 06, 2019

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

  1. LWWLWeek 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).
  2. WWLWeek Off BEFORE Leave - Counts weekends before a leave day.
    Example: Leave on Monday, with weekend on Sat–Sun → 3 days counted (Sat–Mon).
  3. LWWWeek Off AFTER Leave - Counts weekends after a leave day.
    Example: Leave on Friday, with weekend after → 3 days counted (Fri–Sun).
  4. WLWLeave 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

  1. LHLHoliday 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).
  2. HLHoliday BEFORE Leave - Counts holidays before a leave day.
    Example: Leave on 2nd, with holiday on 1st2 days counted (1st–2nd).
  3. LHHoliday AFTER Leave - Counts holidays after a leave day.
    Example: Leave on 30th, with holiday on 31st2 days counted (30th–31st).
  4. HLHLeave IN BETWEEN Holidays - Counts holidays before and after a single leave day.
    Example: Leave on 2nd, with holidays on 1st and 3rd3 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.