asanghi-fiscali 1.2.1 → 1.2.2
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 +6 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.2
|
data/fiscali.gemspec
CHANGED
data/lib/rising_sun/fiscali.rb
CHANGED
@@ -18,7 +18,7 @@ module RisingSun
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def fy_start_month
|
21
|
-
read_inheritable_attribute(:start_month)
|
21
|
+
read_inheritable_attribute(:start_month) || FY_START_MONTH
|
22
22
|
end
|
23
23
|
|
24
24
|
def fiscal_zone
|
@@ -33,6 +33,11 @@ module RisingSun
|
|
33
33
|
def financial_year_start(year=Date.today.year)
|
34
34
|
Date.new(year,fy_start_month,1)
|
35
35
|
end
|
36
|
+
|
37
|
+
def financial_months
|
38
|
+
(1..12).map{|m| ((m - 1 + fy_start_month)%12.1).ceil }
|
39
|
+
end
|
40
|
+
|
36
41
|
end
|
37
42
|
|
38
43
|
module InstanceMethods
|