fix: Don't call get_fiscal_year if setup is not done yet
This commit is contained in:
@@ -452,6 +452,9 @@ $.extend(erpnext.utils, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
get_fiscal_year: function (date, with_dates = false, boolean = false) {
|
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