Use 4 decimal places when calculating hours for worked shift excel download
This commit is contained in:
parent
61fa77b752
commit
e100e0ea72
|
@ -190,7 +190,7 @@ class WorkedShiftsView(MasterView):
|
||||||
# add hours
|
# add hours
|
||||||
if shift.punch_in and shift.punch_out:
|
if shift.punch_in and shift.punch_out:
|
||||||
if shift.punch_in <= shift.punch_out:
|
if shift.punch_in <= shift.punch_out:
|
||||||
row['hours'] = hours_as_decimal(shift.punch_out - shift.punch_in)
|
row['hours'] = hours_as_decimal(shift.punch_out - shift.punch_in, places=4)
|
||||||
else:
|
else:
|
||||||
row['hours'] = "??"
|
row['hours'] = "??"
|
||||||
elif shift.punch_in or shift.punch_out:
|
elif shift.punch_in or shift.punch_out:
|
||||||
|
|
Loading…
Reference in a new issue