dashboard figures actually indicate correct values now

This commit is contained in:
Ken Johnson
2013-05-31 15:54:25 -04:00
parent 3cab9810fc
commit c63275b3b3
3 changed files with 14 additions and 9 deletions
+4
View File
@@ -10,5 +10,9 @@ class PaidTimeOff < ActiveRecord::Base
def pto_days_remaining
self.pto_earned - self.pto_taken
end
def sick_days_taken_percentage
result = self.sick_days_taken.to_f / self.sick_days_earned.to_f * 100.0
end
end