How to pay variable amounts

Some amounts change from one month to the next and cannot be computed from the contract: a holiday bonus, a commission, a fine. For these, create a salary rule marked Input Salary?. Every payslip of the structure then gets a line in Inputs Salary where you type the amount of the month, and the rule adds it to the salary or deducts it.

Who

Users with the Payroll ‣ Administrator access right create the rule. Users with the Payroll ‣ Officer access right enter the amounts.

App

Payroll

Before you start

How do I create an input salary rule?

  1. Go to Payroll ‣ Configuration ‣ Payroll Entry ‣ Salary Rules and click New.

  2. Fill in the rule. The example is a Holiday Bonus with the code BONUS:

    The Holiday Bonus salary rule with its code, its sequence and the Input Salary option ticked
    • Code: the code you use in the formulas, here BONUS.

    • Salary Structure and Category: the structure that pays the amount and its category, for example Allowance so that the bonus is part of the gross salary.

    • Sequence: the order of computation. Give a number lower than the rule that uses the amount: here 590, lower than the gross salary at 1000.

    • Input Salary?: tick it. This is what creates the input line on the payslips.

    • Appears on Payslip: tick it to print the line on the payslip.

  3. In the tab General, set when the line applies and how its amount is computed:

    The condition and the Python code of the Holiday Bonus rule
    • Condition Based on: Always True shows the line on every payslip, even at 0. With Python Expression, the line appears only when the expression is true, for example result = inputs.BONUS and inputs.BONUS.amount > 0.

    • Amount Type: choose Python Code and enter result = inputs.BONUS.amount to add the amount, or result = -1 * inputs.BONUS.amount to deduct it, for a fine.

  4. Click Save.

How do I enter the amount on a payslip?

  1. Open the payslip in Draft and go to the tab Work Information. The section Inputs Salary has one line per input rule of the structure.

  2. Click the line and type the Amount, and a Description if you want.

    A holiday bonus of 2,000,000 entered in the Inputs Salary section of a payslip
  3. Save and click Compute Sheet. The amount appears in the tab Salary Computation and in the totals of the payslip.

How do I enter the amounts of a whole batch?

For many employees, export the input lines, fill in the amounts in a spreadsheet and import them back.

  1. Open the payslip batch and click the Payslips button.

  2. Select all the payslips, open the Actions menu (gear icon) and click Export.

    The payslips of a batch selected, with Export in the Actions menu
  3. Tick I want to update data (import-compatible export). Remove the proposed fields and add Payslip Name and, under Payslip Inputs, External ID, Salary Rule and Amount. Click Export.

    The export window with the input lines of the payslips selected for an import-compatible export
  4. In the file, type the amount of each employee in the Payslip Inputs/Amount column. Do not change the other columns.

  5. Back in the list of payslips, open the Actions menu (gear icon), click Import records, upload the file and click Import.

  6. In the batch, click Compute Payslip Batch so that the payslips use the new amounts.

Warning

Import the amounts while the payslips are in Draft, then compute them. The import does not recompute the payslips, so an amount imported into a computed payslip is not paid until the payslip is computed again.

Common errors

Problem

What to do

The input line is missing on the payslip.

The rule is not in the structure of the payslip, or Input Salary? is not ticked. Fix the rule, then change the structure of the payslip and set it back, or create the payslip again.

The amount is entered but the salary does not change.

Click Compute Sheet on the payslip, or Compute Payslip Batch on the batch.

The bonus is not part of the gross salary.

Give the rule a category included in the gross salary and a sequence lower than the gross salary rule.

Next steps