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
Read How to set up salary rules and salary rule categories to know how a salary rule works.
Know the code of the rule that computes the gross salary in your structure (GROSS): the input rule must come before it if the amount is part of the gross salary.
How do I create an input salary rule?¶
Go to and click New.
Fill in the rule. The example is a Holiday Bonus with the code BONUS:
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.
In the tab General, set when the line applies and how its amount is computed:
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.amountto add the amount, orresult = -1 * inputs.BONUS.amountto deduct it, for a fine.
Click Save.
How do I enter the amount on a payslip?¶
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.
Click the line and type the Amount, and a Description if you want.
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.
Open the payslip batch and click the Payslips button.
Select all the payslips, open the Actions menu (gear icon) and click Export.
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.
In the file, type the amount of each employee in the Payslip Inputs/Amount column. Do not change the other columns.
Back in the list of payslips, open the Actions menu (gear icon), click Import records, upload the file and click Import.
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¶
How to create a payslip: check the payslip after the computation.
How to analyse the payroll: follow the bonuses paid, grouped by salary rule.
See also
Related articles
Optional modules