Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for a fiscal year #11792

Closed
wants to merge 3 commits into from

Conversation

mathieucharest
Copy link

Added support for the showing of a fiscal year in the UI and the pre-processing the fiscal year through the core:archive console command.

For the fiscal year to be enabled, you need to add the following lines in the config.ini.php file :
[General]
enabled_periods_UI = "day,week,month,year,range,fisyear"
enabled_periods_API = "day,week,month,year,range,fisyear"
fiscal_year_start_month = 4

[Deletereports]
delete_reports_keep_fisyear_reports = 1

The fiscal_year_start_month is the first month of the fiscal year.
The delete_reports_keep_fisyear_reports is for the default option in the privacy settings for keeping old reports.

  - FiscalYearComparedToPreviousYear
  - PeriodFiscalYear
  - PeriodFiscalYears
…config.ini file to be enabled :

[General]
enabled_periods_UI = "day,week,month,year,range,fisyear"
enabled_periods_API = "day,week,month,year,range,fisyear"
fiscal_year_start_month = 5

[Deletereports]
delete_reports_keep_fisyear_reports = 1
@mathieucharest
Copy link
Author

I seem to be having some kind of problem with the delete_reports_keep_fisyear_reports when it is not present in the config.ini file. I'll fix this and come back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant