Created
September 16, 2008 19:21
-
-
Save ajmorris/11111 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def discretionary_leave | |
| self.tokens.discretionary.map {|time| time.hours}.sum | |
| end | |
| def accrued_annual_leave(year=current_fiscal_year) | |
| RateInfo.new(self, year).accrued_leave + discretionary_leave | |
| end | |
| def net_annual_leave(year=current_fiscal_year) | |
| accrued_annual_leave(year) - used_annual_leave(year) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment