Payslip Dictionary
by TREVI Software https://github.com/trevi-software/trevi-hr , Michael Telahun Makonnen https://github.com/trevi-software/trevi-hrAvailability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Employee Contracts (hr_contract)
• Discuss (mail) • Time Off (hr_holidays) • Employees (hr) • Calendar (calendar) |
Community Apps Dependencies | Show |
Lines of code | 4791 |
Technical Name |
payroll_payslip_dictionary |
License | AGPL-3 |
Website | https://github.com/trevi-software/trevi-hr |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Employee Contracts (hr_contract)
• Discuss (mail) • Time Off (hr_holidays) • Employees (hr) • Calendar (calendar) |
Community Apps Dependencies | Show |
Lines of code | 4791 |
Technical Name |
payroll_payslip_dictionary |
License | AGPL-3 |
Website | https://github.com/trevi-software/trevi-hr |
Payslip Dictionary
This module provides additional values that can be used in salary rules. These values are available to salary rules in two objects called “payroll” and “current_contract”. The values under “payroll” are calculated once during payslip processing. The values under “current_contract” are calculated just before each contract in the payslip is processed.
Table of contents
Usage
The new values provided by this module are: * payroll.max_weekly_hours - the maximum number of weekly work hours * payroll.max_working_days - the maximum number of working days in the period * payroll.max_working_hours - the maximum number of working days in the period * payroll.seniority - the length of employment calculated in months * payroll.contracts.cummulative_ppf - the sum of the payroll period factors of all the contracts * current_contract.ppf - the payroll period factor for the contract being processed * current_contract.daily_wage - the wage on the contract being processed converted to a daily wage * current_contract.hourly_wage - the wage on the contract being processed converted to an hourly wage
The payroll period factor is a decimal denoting the validity period of the contract between the start and end dates of the payslip. A factor of 1 means the contract covers the entire period of the payslip. A value less than one denotes the percentage of the payslip duration covered by the contract. In this case if the payslip is for the period from April 1 to April 30 and the employee’s contract ends on April 15 then the payroll period factor will be 0.5. The cummulative_ppf is the sum of all the indvidual contracts’ ppf.
Changelog
14.0.1.1.0 (2022-08-17)
- [FIX] Some functionality from this repo was incorporated into OCA/Payroll. As a result accomodate changes in the dictionary naming scheme.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
- TREVI Software
- Michael Telahun Makonnen
Other credits
- Michael Telahun Makonnen <mtm@trevi.et>
Maintainers
This module is part of the trevi-software/trevi-hr project on GitHub.
You are welcome to contribute.
Please log in to comment on this module