code format cleanup app/models/issue.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12087 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
85d4ac372a
commit
ae2b47afd6
|
@ -703,7 +703,7 @@ class Issue < ActiveRecord::Base
|
|||
# Is the amount of work done less than it should for the due date
|
||||
def behind_schedule?
|
||||
return false if start_date.nil? || due_date.nil?
|
||||
done_date = start_date + ((due_date - start_date+1)* done_ratio/100).floor
|
||||
done_date = start_date + ((due_date - start_date + 1) * done_ratio / 100).floor
|
||||
return done_date <= Date.today
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue