mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
Merge pull request #40947 from frappe/mergify/bp/version-14-hotfix/pr-40931
fix: Don't call get_fiscal_year if setup is not done yet (backport #40931)
This commit is contained in:
@@ -397,7 +397,10 @@ $.extend(erpnext.utils, {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
get_fiscal_year: function (date) {
|
get_fiscal_year: function (date, with_dates = false, boolean = false) {
|
||||||
|
if (!frappe.boot.setup_complete) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!date) {
|
if (!date) {
|
||||||
date = frappe.datetime.get_today();
|
date = frappe.datetime.get_today();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user