Hello,
I am trying to set up the payroll app to make all the calculations automatically for employees whose salary is in a $/hour basis. problem is, I cant find the right python expressions for it to work (I am using the enterprise and I do not have access to the py file) therefore, I can only change in the payroll app and all I am giving is the following:
# 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.
# Note: returned value have to be set in the variable 'result'
result = ___________________________
What would need to be written in the blank above so the system can multiply the worked hours times the salary?
Thank you very much!