diff --git a/erpnext/public/js/utils.js b/erpnext/public/js/utils.js index 716b655d739..a52a9dbeac2 100755 --- a/erpnext/public/js/utils.js +++ b/erpnext/public/js/utils.js @@ -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) { date = frappe.datetime.get_today(); }