跳至内容
菜单
此问题已终结
2 回复
481 查看

Dear  all,

We would like to use overtime in our pay slips. We had therefore created the overtime line in other entries with the code HEURSUPP. We would like to recover the information entered in this field in order to add it to the net payable


Thank you for your help


形象
丢弃
最佳答案

Assuming that your HEURSUPP is a work entry type that you've added, you can create a new payroll rule for this work entry type to show up on pay slips. You'll most likely want to set it up with a Python Expression condition like this:

result = 'HEURSUPP' in worked_days and worked_days['HEURSUPP'] > 0

You can use something like the following for the Python condition:

OVERTIME_MULTIPLIER = 1.5  # Or whatever you need
result = worked_days['HEURSUPP'] * OVERTIME_MULTIPLIER * contract.hourly_wage

You'll of course need to configure the other fields to meet your needs. Specifically, take care when choosing the category so that the result is added appropriately to the gross pay if that's where you want it.

形象
丢弃
编写者 最佳答案

Thank you lot of for your help

形象
丢弃