Skip to content

kentan88/acts_as_fiscal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Acts As Fiscal

Extends Date and Time class to provide fiscal date helper methods.

Installation

Add the following line to your Gemfile:

gem 'acts_as_fiscal', git: 'git@github.com:kentan88/acts_as_fiscal.git'

Usage

Override the constant FY_START_MONTH anywhere under your initializers directory. Default value is 4 (April).

To get the financial year based on today's date.

Date.today.financial_year

To get the start date of the financial year based on today's date.

Date.today.beginning_of_financial_year

To get the end date of the financial year based on today's date.

Date.today.end_of_financial_year

To get the financial quarter of the financial year based on today's date.

Date.today.financial_quarter

About

Extends Date and Time class to provide fiscal date helper methods.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages