hai,
How can i get the total working hours from "my current timesheet" to salary rule to calculate the employee payslip.
In salary rule I only see the below variables. there is no variable available for timesheet
# 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.
did i can create a new variable for the timesheet object ??