Merge pull request #40948 from frappe/mergify/bp/version-15-hotfix/pr-40931

fix: Don't call get_fiscal_year if setup is not done yet (backport #40931)
This commit is contained in:
Deepesh Garg
2024-04-10 21:22:22 +05:30
committed by GitHub

View File

@@ -452,6 +452,9 @@ $.extend(erpnext.utils, {
},
get_fiscal_year: function (date, with_dates = false, boolean = false) {
if (!frappe.boot.setup_complete) {
return;
}
if (!date) {
date = frappe.datetime.get_today();
}