Hello,
I need assistance on how to add the HR Expense to the Employee Payslip; I believe this is done through the Salary Rules, but I do not know how to code this specifically, I don't see how I can code this with the available variables:
Available variables:
#----------------------
payslip: object containing the payslips
employee: hr.employee object
contract: hr.contract object
rules: object containing the rules code (previously computed)
categories: object containing the computed salary rule categories (sum of amount of all rules belonging to that category).
worked_days: object containing the computed worked days.
inputs: object containing the computed inputs.
Any support will be greatly appreciated.
Cheers,
Ricardo Malla