mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 11:50:56 +00:00
Fix estimation hour floor (#2282)
Signed-off-by: Ruslan Bayandinov <ruslan.bayandinov@xored.com>
This commit is contained in:
parent
d761662c21
commit
26b319b294
@ -27,9 +27,7 @@
|
||||
$: childEstimationTime = (value.childInfo ?? []).map((it) => it.estimation).reduce((a, b) => a + b, 0)
|
||||
|
||||
function hourFloor (value: number): number {
|
||||
const days = Math.ceil(value)
|
||||
const hours = value - days
|
||||
return days + Math.floor(hours * 100) / 100
|
||||
return Number(value.toFixed(2))
|
||||
}
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user