From 9beaf65d19b5a218fa12bd1f227c8ec641d67d79 Mon Sep 17 00:00:00 2001 From: Corentin Flr <10946971+cogk@users.noreply.github.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 (cherry picked from commit c203fafb1b6db875ce31d7ed19c4e4a61fcbe312) --- erpnext/public/js/utils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/public/js/utils.js b/erpnext/public/js/utils.js index ed2092fdb51..5456b6553ae 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(); }