Here’s what you’ll need to do, although it might be a little tricky since you have 4 entries instead of 2.
You’re wanting to see all the data on the same line. So for that you’ll need to change your data type just a little bit.
Instead of this:
- UserID (user type)
- Start time (date) -
- Start Break (date)
- Finish Break (date)
- Finish (date)
Add another date field (I’ll explain)
- UserID (user type)
- Date (date)
- Start time (date) -
- Start Break (date)
- Finish Break (date)
- Finish (date)
The 2nd field (date) will be our reference. The only thing we care about in the 2nd entry (Date), is the actual date. Time isn’t a factor. So to keep all the data in row, how the workflow should be, when a user clocks in, 2 things should happen.
1> We do a search to see if the date they are starting exists in the data file. It’s looking that the 2nd date field. If nothing exists, we create it. Since we are creating it, you’ll want to Create a new Thing, fill in the Date (Ideally change the Hours/Minutes/Seconds to 0), and then add the Start time.
2 > Check to see if the Date(2nd) Exists, if it does, edit it. If it already exists than we know that we don’t need to create a new entry, we just need to edit what we have. And we can edit what we have by determining what’s left using conditions.
So basically, how yours is set up currently, you are creating a new entry every time the action is preformed but you only want 1 entry per day, and just edit that entry throughout the day. That way all the data is consolidated into 1 line.
I have a time management system in my app and this is how I have it structured, however I only do Clock in - Clock Out, and we factor the hours worked between the two. So they usually have 2 entries per day, (In for work, out for break. In from Break, Out from work) SO when they run their reports for the Employee’s, they usually have 2 entries per day.
Hope this helps!