From bd027e46bb90453d8331cbc85432edfdf566f839 Mon Sep 17 00:00:00 2001 From: Corentin Flr <8860073-cforler_dokos@users.noreply.gitlab.com> Date: Tue, 9 Apr 2024 14:59:58 +0200 Subject: [PATCH] fix: Don't call get_fiscal_year if setup is not done yet --- erpnext/public/js/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/public/js/utils.js b/erpnext/public/js/utils.js index 7f870be8df9..eb87780d969 100755 --- a/erpnext/public/js/utils.js +++ b/erpnext/public/js/utils.js @@ -411,11 +411,11 @@ $.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(); } -- GitLab