ERPNext plugin that makes date related fields respect the start and end dates of default fiscal year.
In ERPNext, date related fields show the current date and there is nothing wrong with that, but if you are entering historical data manually then you might end up forgetting to change the date related fields to match the default active Fiscal Year. For such reason I created this to help myself and others with such issue.
- Frappe >= v13.0.0
- ERPNext >= v13.0.0
- Get the plugin from Github
(Required only once)
bench get-app https://github.com/kid1194/ERPNext-Fiscal-Year-Based-Date-Related-Fields
- Install the plugin on any instance/site you want
bench --site [sitename] install-app erpnext_fiscal_year_based_date_related_fields
- Check the usage section below
- Go to the app directory (frappe-bench/apps/erpnext_fiscal_year_based_date_related_fields) and execute:
git pull
- Go back to the frappe-bench directory and execute:
bench --site [sitename] migrate
- In case you need to restart bench, execute:
bench restart
- Uninstall the plugin from the instance/site
bench --site [sitename] uninstall-app erpnext_fiscal_year_based_date_related_fields
- Uninstall the plugin from bench
bench remove-app erpnext_fiscal_year_based_date_related_fields
How to make date related fields respect the default Fiscal Year
- Go to Customization > Customize Form
- Enter the form type/name (ex: 'Journal Entry')
- Scroll down to the form fields area and edit the date related fields you want
- Add
Fiscal Year
in theoptions
property of those fields to enable the plugin
- Date
- Datetime
- Date Range
MIT