Please enable JavaScript.
Coggle requires JavaScript to display documents.
Timekeeping - Coggle Diagram
Timekeeping
In cases missing in || out
how to calculate timekeeping
ArrayDataRaw
Count(ArrayDataRaw)
count == 0
missing in && out
count == 1
check time
time<12h
-> checkin
time>12h
-> checkout
count == 2
perfect: time2 -tim1 > 1hour
in= time1
out = time2
not perfect: checkin 2 time or checkout 2 time
check time
time<12h
-> checkin
time>12h
time>12h
count > 2
handle raw data time keeping
recive dataHandledArray
return false
only checkin or only checout
CountArray == 2
in = array[0]
out = array[1]
CountArray == 3
in1 = array[0]
out1 = array[1]
in/out2 = array[3]
CountArray == 4
in1 = array[0]
out1 = array[1]
in2 = array[2]
out2 = array[3]
Notify everyone when timekeeping to avoid errors and loss of benefits.