commit | c203fafb1b6db875ce31d7ed19c4e4a61fcbe312 | [log] [tgz] |
---|---|---|
author | Corentin Flr <10946971+cogk@users.noreply.github.com> | Tue Apr 09 14:59:58 2024 +0200 |
committer | Corentin Flr <10946971+cogk@users.noreply.github.com> | Tue Apr 09 15:01:09 2024 +0200 |
tree | d4daade44f5fb40b134309eca4994d7737983d33 | |
parent | 5446ed7642934139370cf5f0a54234c9d384b044 [diff] |
fix: Don't call get_fiscal_year if setup is not done yet
diff --git a/erpnext/public/js/utils.js b/erpnext/public/js/utils.js index 4127218..8478e20 100755 --- a/erpnext/public/js/utils.js +++ b/erpnext/public/js/utils.js
@@ -452,6 +452,9 @@ }, get_fiscal_year: function (date, with_dates = false, boolean = false) { + if (!frappe.boot.setup_complete) { + return; + } if (!date) { date = frappe.datetime.get_today(); }