I need to calculate the overtime (rate hour) for the salary slip time sheet based on the employee salary and not based on flat rate. The main question is: the custom script to do this task should be build based on which event (activity)? Is it based on refresh for example?
Actually, it should be executed when we need to create salary slip (from Payroll --> Process Payroll, or from Project --> timesheet, or from Payroll --> Salary Slip).
Another question: if we said that the custom script to be executed based on Refresh event, then: do I have to create this custom script under the document Salary Slip or where?
I am trying to understand if creating salary slip from timesheet or from process payroll is same as creating salary slip (Payroll --> Salary Slip)?