Skip to main content

Create Compensation Rules and Time Type Rates

Use Compensation Rules and Time Type Rates to assign recurring pay or deductions and add payroll lines for time-type hours in a Payroll Territory.

Who can use this?

HR Admins and payroll teams in Salesforce. Salesforce Admin access is required to create formula fields in Object Manager or grant API permissions. A Payroll Territory, the relevant Time Types, and Pay Types must already exist for Time Type Rates.

Create a fixed Compensation Rule​

  1. Open the Payroll Territory, then select Compensation Rules.
  2. Click New. You can also find Compensation Rules in the App Launcher (⋮⋮ grid icon) and click New.
  3. Enter a rule name.
  4. Set Start Date and End Date.
  5. In Recurring Period in Months, enter the interval. Use 1 for monthly, 2 for every two months, or 0 for every Payroll Run.
  6. In Amount, enter the fixed compensation value.
  7. Click Save. flair applies the rule to employees in the territory for the defined period.

If Payroll Territory is empty, the rule applies to employees who do not belong to a territory. flair also applies rules when a new employee joins a territory or an employee changes territory.

Fixed Compensation Rule with its period and amount

Review the current Payroll Run or Employee Recurring Compensation – Rules on an employee record to confirm the results. To see how rule-based pay fits with pay bands and pay gap analysis, see Prepare for pay transparency with flair.

warning

Changing the rule's Payroll Territory deletes future compensations and creates replacements for the new territory. Deleting a rule deletes related compensation except line items in locked or completed Payroll Runs.

Create a Pay Type​

A Pay Type is a wage type, such as a regular salary, a bonus, or a public-holiday supplement. Its Code is the wage type code your payroll provider expects. Salaries, compensations, Compensation Rules, Time Type Rates, and Payroll Run line items can carry a Pay Type, and the ASCII payroll export uses its Code.

The Pay Types tab is visible to users with the Payroll Manager or Salary Manager custom permission, for example through the Flair Payroll Manager or Flair Salary Manager permission set.

  1. In the flair HR app, open Compensations → Pay Types.
  2. Click New record.
  3. In Pay Type Name, enter a name, such as Public holiday supplement.
  4. In Code, enter the wage type code from your payroll provider.
  5. Click Save. The Pay Type appears in the list with its Code.

The Pay Types sub-tab of Compensations with the New record modal open, showing the Pay Type Name and Code fields

Add a Time Type Rate​

Configure a Time Type Rate for each type of work that needs an additional payroll line. Payroll Runs use the employee's contracted hours to calculate the hourly rate, then apply the configured multiplier and Pay Type. To pay supplements (surcharges), such as for public holiday work, see Pay night, Sunday, and public holiday supplements.

  1. In the flair HR app, open HR Admin → Payroll Territories.
  2. Open the Payroll Territory where the rate applies, then select Time Type Rates (under More when the tab bar is full).
  3. Click the add icon (Add Row).
  4. In the new row, select a Time Type, select a Pay Type, and enter a Salary Multiplier.
  5. Submit the row with the save icon. The rate appears in the territory's list.

The Time Type Rates tab of a Payroll Territory with a new row for Public Holiday Hours, the Pay Type lookup, the default Salary Multiplier of 100%, and the save and delete icons

Each Time Type can have one rate in a Payroll Territory. Add a separate row for each Time Type that needs a payroll line.

Understand the Salary Multiplier​

The multiplier creates an additional pay line on top of the employee's base pay. Enter the percentage of the employee's hourly salary that the additional line should pay:

Salary MultiplierAdditional pay line
50%Adds half of the employee's hourly salary for the matching hours.
150%Adds one and a half times the employee's hourly salary for the matching hours.
100%Pays the matching hours a second time at the employee's hourly salary.

The default is 100%. Change it when you intend to add a different premium.

flair derives the hourly rate from the employee's actual contracted hours. This supports part-time contracts and monthly workloads without assuming a fixed 40-hour week.

If the employee has no workload covering the payroll period, flair falls back to a 5-day, 8-hour work schedule.

Check the Payroll Run result​

  1. Create or open a Payroll Run for the Payroll Territory.
  2. Include employees whose timesheets contain the configured Time Types.
  3. Complete the payroll calculation. flair adds a pay line for each configured Time Type worked during the run and assigns the selected Pay Type.
warning

Do not configure the same Time Type through both a Time Type Rate and a Compensation Rule with an Employee Rate. Both paths can add pay for the same hours, which can pay the hours twice.

Set Pay Types for absences and public holidays​

A Payroll Territory's Absence Configuration tab links public holidays and each absence category to a Pay Type. Payroll Runs use these settings to add lines for public-holiday hours and for absence hours in each category that has a Pay Type, for employees whose hourly salary has Compensate absences and public holidays selected. Each absence line carries the Pay Type of its own category, and the public-holiday line carries the Public Holidays Pay Type. See Add an employee salary. ASCII export files can also include the Code of these Pay Types on absence and public-holiday rows.

  1. In the flair HR app, open HR Admin → Payroll Territories, then open the Payroll Territory.
  2. Select Absence Configuration.
  3. Under Absence Categories, in the Pay Type field next to Public Holidays, select a Pay Type.
  4. For each absence category that should be paid, select a Pay Type next to the category. Leave the field empty for categories that shouldn't add payroll lines. The list shows active absence categories that have Export in Payroll selected.
  5. Click Save.

The Absence Configuration tab of a Payroll Territory with a Pay Type field next to Public Holidays and each absence category

Create a dynamic rule from employee data​

An employee compensation rule can vary by employee data, such as years of service or performance, instead of using a fixed Amount.

Create the formula field​

  1. In Salesforce Setup, open Object Manager.
  2. Enter Employee Recurring Compensation in Quick Find, then open the object.
  3. Open Fields & Relationships, then click New.
  4. Select Formula, then click Next.
  5. Enter a Field Label, such as Years of Service Bonus.
  6. Set Formula Return Type to Currency, then click Next.
  7. In Advanced Formula, click Insert Field.
  8. Select Employee Recurring Compensation → Employee → Years of Service, then click Insert.
  9. Add the required operator or enter the formula. For a value of 10 per service year, multiply the field by 10.
  10. Click Next, skip the field-level security step if appropriate, then click Save.

Formula editor for a years-of-service compensation field

Apply the formula to the rule​

  1. In Fields & Relationships, open the formula field and copy Field Name.
  2. Return to the Compensation Rule.
  3. In Amount Formula, paste the field name.
  4. In Base Object API Name, enter flair__Employee_Additional_Compensation__c.
  5. For a rule that does not use Employee Rates, keep Rate Type set to None.
  6. Click Save.
  7. Open Related, then review the calculated values in Amount.

If Rate Type is None, the rule applies to all employees in the selected Payroll Territory.

Dynamic formula connected to a Compensation Rule

Create a dynamic rule from salary​

This example multiplies years of service by one percent of salary. Every affected employee needs an Employee Rate.

Create the Employee Rate​

  1. Open the employee record, then select Salary.
  2. In Employee Rates, click New.
  3. Enter Employee Rate Name.
  4. Set Rate Type to Salary.
  5. In Amount, enter the employee's salary.
  6. Click Save.

Employee Rate with Salary selected as its Rate Type

Update the salary formula​

  1. Create or edit the formula field for the rule.
  2. Add flair__Employee1__r.flair__Years_of_Service__c.
  3. Click Insert Field, then select Employee Recurring Compensation → Reference Employee Rate → Amount.
  4. Multiply the reference rate by 0.01.
  5. Confirm that the complete formula is flair__Employee1__r.flair__Years_of_Service__c * flair__Reference_Employee_Rate__r.flair__Amount__c * 0.01.
  6. Click Save.
  7. On the Compensation Rule, set Rate Type to Salary.
  8. If you edited an existing formula, click Recalculate Compensation.

Recalculate Compensation action on an updated rule

Create a Payroll Run Rule​

Payroll Run Rules calculate compensation from run-specific data, including standard, overtime, or public-holiday hours.

  1. Create a Compensation Rule with a name and Start Date.
  2. In Recurring Period in Months, enter 0 to apply it to every Payroll Run.
  3. In Dynamic Formula, set Base Entity API Name to flair__Employee_Payroll_Run_Line_Item__c.
  4. In Rate Type, select Public Holiday Hours, Overtime Hours, or Standard Hours.
  5. In Salesforce Setup, open Object Manager → Employee Payroll Run Line Item → Fields & Relationships.
  6. Find the formula field, such as Public Holidays Compensation, then copy Field Name.
  7. Return to the rule and paste the value into Amount Formula.
  8. Click Save.

The recurring compensation initially shows 0 because the calculation needs hours from a Payroll Run.

Base Entity API Name and Rate Type for a Payroll Run Rule

For each affected employee, create an Employee Rate on Salary with the matching Rate Type and hourly Amount. For example, an amount of 30 for Public Holiday Hours pays €30 per public-holiday hour.

Add a deduction​

Negative compensation appears in the Deductions column. Total shows compensation before deductions, and Total Net shows the value after deductions.

Add a deduction to one Payroll Run​

  1. Open the Payroll Run and select the employee.
  2. Under Incomes, click Add new line.
  3. In the new row under Other compensations, enter a name for the deduction.
  4. In Amount, enter a negative value, such as -100.
  5. Click Save. The value appears under Deductions, and Total Net updates.

Deduction and updated Total Net in a Payroll Run

Add a recurring or one-time deduction​

  • For a regular deduction, open the employee's Salary tab and create Employee Recurring Compensation with a negative amount.
  • For a single deduction, create Employee One-Time Compensation with a negative amount.

Add deductions through an API​

  1. Move the Payroll Run to a locked Submitted stage.
  2. Assign the custom permission for payroll API access to the integration user.
  3. Through the API, create compensation line items with negative amounts.

Use the available method based on the deduction:

MethodWhen to use it
Employee Recurring CompensationA fixed deduction that repeats, such as a monthly loan repayment.
Employee One-Time CompensationOne deduction in a specific period.
Payroll Run Line ItemAn ad hoc deduction in one run or imported from another system.
Compensation RulesA rule-based deduction for several employees.