Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding financial month

  • Loading branch information...
commit 8898f5894cf8939e2bc7aec276073b34a4fe18f4 1 parent f9243c1
@asanghi authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/rising_sun/fiscali.rb
View
8 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
Please sign in to comment.
Something went wrong with that request. Please try again.