link fix in general ledger

This commit is contained in:
Rushabh Mehta 2012-11-12 15:45:08 +05:30
parent fe7b444903
commit c5a8d427f1
2 changed files with 2 additions and 2 deletions

View File

@ -85,8 +85,7 @@ cur_frm.cscript.hide_unhide_group_ledger = function(doc) {
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);
});
}
}

View File

@ -43,6 +43,7 @@ erpnext.GeneralLedger = wn.views.GridReport.extend({
link_formatter: {
filter_input: "account",
open_btn: true,
doctype: "'Account'"
}},
{id: "debit", name: "Debit", field: "debit", width: 100,
formatter: this.currency_formatter},