changed remote totals to traditional time
This commit is contained in:
parent
87607da643
commit
3b4ae7a55a
@ -297,7 +297,9 @@ class Table {
|
||||
Array.from(this.clockings.querySelector(".clocking.remote-total").cells).forEach((cell, i) => {
|
||||
let endI = startI + cell.colSpan
|
||||
let remote = this.clockingRemotes.slice(startI, endI).reduce((a, b) => a + b, 0)
|
||||
cell.innerText = Math.round(remote * 100) / 100
|
||||
let hour = Math.floor(remote)
|
||||
let min = Math.floor((remote - hour) * 60)
|
||||
cell.innerText = hour.toString().padStart(2, "0") + ":" + min.toString().padStart(2, "0")
|
||||
startI = endI
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user