v 7.0 Third Party 230
Download for v 7.0
Required Apps Employee Directory (hr)
Leave Management (hr_holidays)
Included Dependencies
Technical Name hr_salary_rule_variable
LicenseAGPL-3
Websitehttps://www.savoirfairelinux.com
You bought this module and need support? Click here!

Salary Rule Variables

Salary rule variables are amounts or python expressions that change over the years. This module allows to compute these variables and reference them from salary rules.

The purpose of this module is to be able to adapt a complexe salary structures (e.g. the canadian income tax structure) from one year to another without going each time through the whole testing procedure.

Numbers change but the whole logic stays the same.

How to use it

In the python script of a salary rule, you may call it via the payslip browsable object:

variable = payslip.get_rule_variable(rule_id, payslip.date_from)

rule_id always refer to the current rule.

If you need more than one variable for a salary rule, use a python dict.

Contributors

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.