Hi, I'm confuse. I need to find a way to count the number of day at work between two date, but for someone who works part-time.
Exemple : I enter two date like : 2016-09-12 to 2016-09-23 and the person worked two day and a half each week ( 2.5 => Monday, Wednesday and half a day Friday). I need to return the total number of days at work, in this case 5.
I had try many possibility but everytime at least 1 contraint was forgot.
Need to count a half day,
Need to now which day is working (optional)
Need to be interrupt by a relapse of the employee.
Right now, i use a big fat queries but i can't correctly interrupt the count of day worked.