@@ -703,7 +703,7 class Issue < ActiveRecord::Base | |||||
703 | # Is the amount of work done less than it should for the due date |
|
703 | # Is the amount of work done less than it should for the due date | |
704 | def behind_schedule? |
|
704 | def behind_schedule? | |
705 | return false if start_date.nil? || due_date.nil? |
|
705 | return false if start_date.nil? || due_date.nil? | |
706 | done_date = start_date + ((due_date - start_date+1)* done_ratio/100).floor |
|
706 | done_date = start_date + ((due_date - start_date + 1) * done_ratio / 100).floor | |
707 | return done_date <= Date.today |
|
707 | return done_date <= Date.today | |
708 | end |
|
708 | end | |
709 |
|
709 |
General Comments 0
You need to be logged in to leave comments.
Login now