Skip to main content
All CollectionsLeave
Managing Off-In-Lieus and PH Replacement Leaves with StaffAny
Managing Off-In-Lieus and PH Replacement Leaves with StaffAny

Learn how to award, track, and expire off-in-lieu for your staff!

StaffAny avatar
Written by StaffAny
Updated over a month ago

Contents of this article are applicable to the following users

Tier: ALL

Platform: Web, Mobile

Off-In-Lieus (OIL), or Replacement Leaves are a popular way for employers to compensate their staff for working extra. Often, employers award their staff with OIL in the following cases:

  1. Clearing shifts on a Public Holiday

  2. Working on an Off Day

  3. Working OT

  4. Clearing Off which coincides with a Public Holiday

In StaffAny, you can set up OIL leave types to reward your staff for working extra, track their current OIL balance, and manage the expiry date of earned OILs.

This guide will cover the following:


Setting up an OIL leave type

OIL Leave Types are special leave types that do not possess the concepts of entitlement periods and accrual policies. Balances are defaulted to 0, and the only way to gain more balances is through Bulk Adjustments (more later). To create an OIL Leave Type:

  1. In StaffAny, go to Settings > Off and Leave > Manage Leave Types > Add Leaves.

  2. Select “Off-in-lieu” in the dropdown.

  3. Fill in the Leave Types details similar to other Leave Types (Refer to guide here). However, only the following fields are required for OIL Leave Types.:

    1. Leave Name

    2. Leave Tag

    3. Selected Staff(s)

    4. Other settings

  4. Click “Save”.


Award OIL for your staff via Bulk Adjustments

After creating an OIL Leave Type, you can now proceed to reward OIL balances for your staff! In StaffAny, this is achieved by creating Bulk Adjustments, which allows you to award balances to one or more staff at one go!

Note: Off In Lieu adjustment can also be done by manager access level!

Create a new Bulk Adjustment

  1. In StaffAny, go to “Leave” Tab > Leave Management

  2. Select the intended OIL leave type from the drop-down.

  3. Click on “Create Adjustment”. You should see a Leave Adjustment popup appear.

  4. Fill in the details for the new bulk adjustment in the popup

    1. Adjustment Reason: This should be the reason for creating this OIL adjustment. For example, if you are awarding your staff(s) for working on Chinese New Year (CNY), you can input “CNY PH Leave” as an adjustment reason.

    2. Adjustment Days: This is the number of days of OIL awarded to staff(s). Upon creating the bulk adjustment, your staff’s total OIL balances should increase by the same amount.

      1. The balance can be adjusted by increment of 0.5 (etc 0.5, 1, 1.5 etc)

    3. Adjustment Type: Select “Credit (Add)” to give balances to your staff(s).

    4. Start Date, End Date & “Never Expire” option:

      1. Start Date: This should be the date when the staff earned the OIL balance.

      2. End Date: This is the expiry date of this bulk adjustment. After this date, any remaining OIL balance gained from this adjustment will expire.

      3. “Never Expire” option: By selecting this option, the OIL balance gained from this adjustment can only be consumed, and will not expire automatically.

    5. Staff Selection: Select the staff(s) to reward OIL balances to them. Use our sort and filter features for Contract, Role and Section to quickly find the relevant staff(s). Alternatively, you can simply search for them in our search box

    6. Press Save to exit the Leave Adjustment popup. The newly created Bulk Adjustment will be visible in the Bulk Adjustment tab.

Tag/Untag Staff to existing Bulk Adjustment via edits

  1. From Leave Management, click “Edit” to edit a specific Bulk Adjustment previously created. A Leave Adjustment popup will appear.

  2. Edit the Bulk Adjustment accordingly. Only the following fields can be edited

    1. Adjustment Reason

    2. Staff Selection: You can tag new staff to existing bulk adjustments (if have already been tagged to the OIL leave type), or remove currently tagged staff.

  3. Press "Save" to save changes and exit the Leave Adjustment popup.

Track Created Bulk Adjustments

  1. In the Bulk Adjustment tab, you can view all previously created Bulk Adjustments for this leave type. Each new row represents one Bulk Adjustment.

  2. Fields in green represent fields that have been edited.

  3. To track changes made to a Bulk Adjustment,

    1. Click on “View

    2. An audit log showing past changes made to the Bulk Adjustment will appear.


Setting up OIL Automation

Instead of manually creating bulk adjustments, you can also opt for the system to automatically reward Off-In-Lieus to your staff using our OIL automation feature! With this feature, our system will automatically create and assign users to bulk adjustments whenever they work on a PH!

Note: We are currently testing this feature with selected users, if you are interested in this feature, reach out to our customer support!

Setting up Special Dates for Public Holidays

To use the OIL Automation feature, you have to ensure your Special Dates (or Public Holidays) have been set up.

Go to Settings > Special Dates

  1. Add new events, or public holidays as needed, by specifying the date and name for the the PH.

  2. Check on "Include in Auto Off-in-lieu" column for event dates that you want to be considered by our OIL Automation engine. These event dates will be automatically populated into all new and existing rules.

  3. Click "Save" to finish.

For more information related to special dates, please refer to this Help Article.

Create a Rule for OIL Automation

In our Off and Leave tab, click on the Off-in-lieu leave type and you will see a side drawer appear. Here, you can set up your automation rules. These rules determine the conditions in which staff will be automatically awarded balances (via Bulk Adjustments).

To add an OIL Automation Rule:

  1. On the leave details side drawer, click on the Add Automation Rule button.

  2. The popup modal to create a new rule will appear. Next, proceed to fill in the following:

    1. Rule Name: e.g. PH OIL Automation

    2. Amount Awarded: This is the number of days of leave balances automatically awarded to staff if they fulfill the specified condition

    3. Expiry: Fill in the expiry period for the OIL balances awarded.

  3. Select the intended Adjustment (or Automation Rule) Type: Currently, we only support awarded staff OIL for their work on a PH (or Special Events in our system).
    Note: Automation for working on OFF days & clearing OFF on PH will be coming soon!

  4. Fill in the "Total Duration" staff needs to clock in a day before the automation will award them with leave balances. For example, if a staff should only be awarded OIL if they work more than 4 hours, you should set up as [Min Duration - 4 hours, Max Duration - 24 hours]

  5. Double-check "Falls on" to make sure the correct PH dates are reflected in the automation rule.

    1. Note: Reach out to customer service if you want the ability to manually select which PH/event dates apply to each rule!

  6. Click on Save.

Example

If your company has the following policy of awarding OIL on a PH:

  1. 0.5 day OIL for staff who worked less than 4 hours

  2. 1 day OIL for staff who worked more than 4 hours

You should set up 2 separate rules, one for each case above

Case

0.5 day for 0-4 hours worked

1 day for 4 or more hours worked

Rule Name

PH OIL (<4hrs) Automation

PH OIL (>4hrs) Automation

Amount Awarded

0.5

1

Balance will expire in

3 months (same for both)

3 months (same for both)

Adjustment Type (or Automation Rule Type)

Work on Special Event Day

Work on Special Event Day

Min Duration

(more than or equal to)

0

4

Max Duration

(strictly less than)

4

24

Important: Ensure the duration for both rules do not overlap. If they overlap, e.g. in the case of 0-5 and 4-24 hrs, then a staff who clocked 4 hours will receive OIL balances from both rules!

Rule Archival

In the event of a change in company policy for awarding OIL, you can archive the old rules that you no longer require and set up new ones. The balance that has been awarded from previous rules will not be affected when archiving the rule. The new rule will only affect dates that have not yet been run by the OIL automation

Activating Rules with Automation Scheduler

Upon the creation of a rule, the system will show a new section called “Automation Scheduler”. The automation scheduler decides when all the rules will run for all staff in the organization.

In the above example, the system will reward OIL for staff 1 day after the event date (e.g. Public Holiday).

Once the automation rules & scheduler are set up, all staff tagged to the OIL Leave Type will automatically receive OIL balances whenever they work on a PH!

Timesheet

Whenever the automation is triggered, there will be an indication displayed under the “Status” column in the timesheet. For example, if 2 days of balances are awarded for the Off-In-Lieu leave type “DOI”, then 2 DOI [automation] will be shown.

Track Automated Off-In-Lieu Creation in Leave Management

Our OIL Automation engine creates a Bulk Adjustment whenever users fulfill the conditions of a rule (e.g. worked on a PH). This created Bulk Adjustment, like user-created ones, can be viewed and edited on our Leave Management page.

Bulk Adjustments created by our Automation Engine will display “StaffAny” under the column “Edit by”. This is to distinguish them from user-created Bulk Adjustments. You may continue to edit the bulk adjustments by tagging/untagging staff from it.

On the Adjustment Detail page, you will find a comprehensive list of staff members who have been awarded balances through the automation.


Delete Bulk Adjustments

If you notice a mistake in either a user or system-created Bulk Adjustment, you can delete them via:

  1. Click “Delete” for the row corresponding to the Bulk Adjustment to be deleted.

  2. Click on “Yes” after reading the warning modal to proceed with deleting the Bulk Adjustment. Note that deleting a Bulk Adjustment is an irreversible action.


Track OIL Balances & Expiry

Unlike other leave types, OIL balances typically start being active the day after it has been earned and expire a few months after being earned.

With our Adjustment Detail page, you can easily track the breakdown of OIL balances each of your Staff has, and whether any of their earned OIL balances are expiring soon!

  1. Click on the Adjustments Detail tab. Here, you can view the details of each OIL balance adjustment awarded to each staff.

  2. To view individual OIL balances that have not been cleared, simply filter by “Show untaken leave” under our search and filter feature.

  3. To view OIL balances that have expired or are expiring soon, use the sorting function by clicking on the “Expiry Date” column header.


    Note: Remember to remind your staff to clear their OIL before it expires! (They will not have access to this page)


Assign & Apply OIL Leave

Balances for OIL Leave Types (awarded via Bulk Adjustments) can be consumed like normal leave types via schedule and/or our Mobile App. When you assign the leave through the Web App schedule menu, you will see the Off-in-Lieu balances available for the user. The available balances are separated into individual adjustments, each containing a different adjustment reason and validity period.

On the Mobile App, you can also assign OIL leave balances through the schedule menu.

Employees can also apply for leave via the My Leaves menu and keep track of the balances for the OIL leave type.


Special Use Case: Giving PH OIL / PH Leave in Advance

Some companies practice awarding PH OIL or PH Leave upfront for the year. This can be easily performed through Bulk Adjustments:

  1. Create one Bulk Adjustment for each Public Holiday in the year, at the start of the year. Ensure all existing staff are tagged to each Bulk Adjustment created

    1. You may want to have staggered expiry dates for each created bulk adjustment during your set-up.

    2. E.g. New Year’s Day PH leave expires on 1st April 2024 (3 months after the new year), while CNY Day 1 PH leave expires on 10th May 2024 (3 months from CNY)

  2. Whenever a new employee joins the company, tag them to the relevant Bulk Adjustments corresponding to PH occurring after their join date.


Special Use Case: Auto OIL setup when not all staff are eligible for the same PH

In some cases, not all staff in a company are eligible for the same PH dates in a year. For example, staff from a certain religion might be eligible for PH related to their religion.

In such cases, reach out to our customer service to enable the ability to define which PH dates are eligible for each Auto OIL rule. Once this is enabled, setup your Auto OIL for PH as such:

  1. Create one non-entitlement-based (PH OIL) leave type for each group of users eligible for the same PH dates.

  2. Tag users to only one PH OIL leave type, depending on which PH they are eligible for.

  3. Set up one Auto OIL rule for each leave type, based on your practice

    1. You should now be able to select different PH dates when creating each rule.

    2. After a rule is created, you can also edit the PH dates applicable for the rule. This is useful when you need to add new PH dates for the next year into the rules.

      1. Select the Edit icon

      2. Edit the "Falls On" section to include only the intended PH dates.

      3. Click "Save.

  4. Proceed with the rest of the Auto OIL setup as per normal.


FAQ

Q: I’m currently using a normal leave type to track OIL balances, how should I migrate over to the new OIL leave type?

A: You can migrate over by the following:

  1. Create a new OIL leave type

  2. Tag all eligible staff to this new leave type

  3. Start awarding only via the new OIL leave type moving forward

  4. Allow your staff to finish clearing current balances in the old leave type

    1. Once the balances have been cleared, you may want to download your staff(s) current leave report and untag them from the old leave type

  5. Once all balances for all staff have been cleared, download the leave report for the leave type, and delete the previous leave type.

Q: My staff clocks in for his shift on a PH but did not receive PH OIL? Why?

A: Auto OIL will not run with a missing clockout. Missing clock out has to be overridden before the scheduler run for auto OIL to apply. If the missing clock out is overriden after the scheduler run, create adjustment to award PH OIL

Q: When does OIL automation run?

A: The automation runs between D+1 on 00:00 to 03:00 (GMT+8) time.

Q: If my staff have multiple shift and all of them have clock in and clock out records, will they get multiple Off in Lieu balances?

A: No, the system will accumulate the total worked hours for the day and then will compare against the rule.

Did this answer your question?