asanghi-fiscali 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/fiscali.gemspec +1 -1
- data/lib/rising_sun/fiscali.rb +8 -0
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.3
|
data/fiscali.gemspec
CHANGED
data/lib/rising_sun/fiscali.rb
CHANGED
@@ -117,6 +117,14 @@ module RisingSun
|
|
117
117
|
beginning_of_financial_half.months_ago(6)
|
118
118
|
end
|
119
119
|
|
120
|
+
def financial_month_of(month)
|
121
|
+
if month < start_month
|
122
|
+
Date.new(year+1,month,1)
|
123
|
+
else
|
124
|
+
Date.new(year,month,1)
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
120
128
|
private
|
121
129
|
|
122
130
|
def months_between
|