diff --git a/erpnext/public/js/utils.js b/erpnext/public/js/utils.js index 41272181249..8478e20d692 100755 --- a/erpnext/public/js/utils.js +++ b/erpnext/public/js/utils.js @@ -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(); }