Commit 2683d6e4 authored by Frank Bergmann's avatar Frank Bergmann

- Optimized Earned Value Management portlet in order to deal with projects > 10 years.

- Added error message for Gantt Resource Portlet that it doesn't work with projects
  > 10 years
parent 60ccc37d
......@@ -117,12 +117,8 @@ db_foreach percentages $percentage_sql {
for {set j $child_start_julian} {$j <= $child_end_julian} {incr j} {
set key "$j"
# No assignments during the weekend
array unset date_comps
array set date_comps [util_memoize [list im_date_julian_to_components $j]]
set dow $date_comps(day_of_week)
# Sum up percentages, except for weekends
set dow [im_date_julian_to_dow $j]
if {6 ne $dow && 7 ne $dow} {
set perc 0.0
if {[info exists percent_hash($key)]} { set perc $percent_hash($key) }
......
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