Im building a Payroll Form view which is calculating Employee’s HOURS by DATE. (pulled from ORDERS table. )
And it has different Payment RATES depending on the amount of Hours worked during the day…
They get payed 100% first 8 hours.
They get payed 125% the next two hours (8-10 h)
The get payed 150% the NEXT two hours (10-12 h)
The get payed 150% IF it is saturday.
I’ve managed to pull the Total Hours in between two dates with a virtual columns and the Saturday hours…
And now im trying to pull out the hours devided by the Payment Rates during the day.
@MteaM_Eilat
As you have said that you have VC that you have calculated the total hours and saturday hours, I have given you an example of calculating the payroll. But I do now understand that you want to split the worked hours into categories/groups. Am I correct?
@MteaM_Eilat
Can you a bit tell me about the structure of the table that you sum/lookup those working hours and the relationship between the base table of the form in your images and this working hours table? Thanks.
Added new VC (decimal type) with your expression.
but still shows me 0 (the employee in the example has 125% & 150% rates for sure) .
attaching an image.