mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-22 16:27:22 +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)
|
$: childEstimationTime = (value.childInfo ?? []).map((it) => it.estimation).reduce((a, b) => a + b, 0)
|
||||||
|
|
||||||
function hourFloor (value: number): number {
|
function hourFloor (value: number): number {
|
||||||
const days = Math.ceil(value)
|
return Number(value.toFixed(2))
|
||||||
const hours = value - days
|
|
||||||
return days + Math.floor(hours * 100) / 100
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user