From 38a07cf86a2b2c2839f5f34c7b6ab4003b6e0a00 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 8 Aug 2013 18:49:58 +0530 Subject: [PATCH] [fix] [chart of accounts] view ledger should show correct account's ledger --- accounts/page/accounts_browser/accounts_browser.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/accounts/page/accounts_browser/accounts_browser.js b/accounts/page/accounts_browser/accounts_browser.js index 05989d6b5e..6b577959a1 100644 --- a/accounts/page/accounts_browser/accounts_browser.js +++ b/accounts/page/accounts_browser/accounts_browser.js @@ -170,7 +170,12 @@ erpnext.AccountsChart = Class.extend({ show_ledger: function() { var me = this; var node = me.selected_node(); - wn.set_route("general-ledger", "account=" + node.data('label')); + wn.route_options = { + "account": node.data('label'), + "from_date": sys_defaults.year_start_date, + "to_date": sys_defaults.year_end_date + }; + wn.set_route("general-ledger"); }, rename: function() { var node = this.selected_node();