Permalink
Browse files

adding financial month

  • Loading branch information...
asanghi
asanghi committed Jul 25, 2009
1 parent f9243c1 commit 8898f5894cf8939e2bc7aec276073b34a4fe18f4
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/rising_sun/fiscali.rb
@@ -117,6 +117,14 @@ def previous_financial_half
beginning_of_financial_half.months_ago(6)
end
+ def financial_month_of(month)
+ if month < start_month
+ Date.new(year+1,month,1)
+ else
+ Date.new(year,month,1)
+ end
+ end
+
private
def months_between

0 comments on commit 8898f58

Please sign in to comment.