link fix in general ledger
diff --git a/accounts/doctype/account/account.js b/accounts/doctype/account/account.js
index 59ed452..8535373 100644
--- a/accounts/doctype/account/account.js
+++ b/accounts/doctype/account/account.js
@@ -85,8 +85,7 @@
function() { cur_frm.cscript.convert_to_group(); }, 'icon-retweet')
cur_frm.add_custom_button('View Ledger', function() {
- wn.set_route('Report', 'GL Entry', 'General Ledger',
- 'Account=' + doc.name);
+ wn.set_route("general-ledger", "account=" + doc.name);
});
}
}
diff --git a/accounts/page/general_ledger/general_ledger.js b/accounts/page/general_ledger/general_ledger.js
index c8866fc..8e70619 100644
--- a/accounts/page/general_ledger/general_ledger.js
+++ b/accounts/page/general_ledger/general_ledger.js
@@ -43,6 +43,7 @@
link_formatter: {
filter_input: "account",
open_btn: true,
+ doctype: "'Account'"
}},
{id: "debit", name: "Debit", field: "debit", width: 100,
formatter: this.currency_formatter},