Commit 939c2978 authored by cosine's avatar cosine

- Fixed division by zero

parent 88a0da1a
......@@ -171,7 +171,7 @@ UNION
select t.user_id,
null as project_id,
t.im_day_enumerator as day,
8.0 * t.availability / 100.0 * t.duration_days * 100.0 / t.day_percentages as hours
8.0 * t.availability / 100.0 * t.duration_days * 100.0 / (0.000000001 + t.day_percentages) as hours
from (
select u.user_id,
ua.absence_id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment