Discussions
Logic behind the Deduct Breaks Parameter
Hi,
I wanted to see if you could provide some insights behind the logic that drives the parameter &deduct_breaks from the https://www.humanity.com/api/v2/payroll/report? api.
For example if I pulled the same employee from 10/2/2020 w/ breaks I get the following hours:
"regular": 5.7,
"special": 0,
"overtime": 2.916666666666666,
"d_overtime": 0,
"total": 8.616666666666667,
But if I make that same call w/o breaks I get a totally different results:
"regular": 7.685833333333342,
"special": 0,
"overtime": 0.4308333333333252,
"d_overtime": 0,
"total": 8.116666666666667,
"cost": 0,
"breaks": 0.5
I am trying to understand how this parameter works. I assume it is keeping track of the weekly break totals in making these assumptions, but if you can provide some guidance as I don't want to make assumptions about such an important topic.
Thanks.