From 14f0569a391fce6a7f89b8981e0f51cd9a8b5538 Mon Sep 17 00:00:00 2001 From: Diptanil Saha Date: Wed, 18 Jun 2025 17:16:03 +0530 Subject: [PATCH] fix: setup wizard load chart of accounts and fiscal year on change of country (#48125) --- erpnext/public/js/setup_wizard.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/erpnext/public/js/setup_wizard.js b/erpnext/public/js/setup_wizard.js index 4b29ef38d76..ef9375e834f 100644 --- a/erpnext/public/js/setup_wizard.js +++ b/erpnext/public/js/setup_wizard.js @@ -61,9 +61,13 @@ erpnext.setup.slides_settings = [ onload: function (slide) { this.bind_events(slide); - this.load_chart_of_accounts(slide); - this.set_fy_dates(slide); }, + + before_show: function () { + this.load_chart_of_accounts(this); + this.set_fy_dates(this); + }, + validate: function () { if (!this.validate_fy_dates()) { return false;