link fix in general ledger
This commit is contained in:
parent
fe7b444903
commit
c5a8d427f1
@ -85,8 +85,7 @@ cur_frm.cscript.hide_unhide_group_ledger = function(doc) {
|
|||||||
function() { cur_frm.cscript.convert_to_group(); }, 'icon-retweet')
|
function() { cur_frm.cscript.convert_to_group(); }, 'icon-retweet')
|
||||||
|
|
||||||
cur_frm.add_custom_button('View Ledger', function() {
|
cur_frm.add_custom_button('View Ledger', function() {
|
||||||
wn.set_route('Report', 'GL Entry', 'General Ledger',
|
wn.set_route("general-ledger", "account=" + doc.name);
|
||||||
'Account=' + doc.name);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,6 +43,7 @@ erpnext.GeneralLedger = wn.views.GridReport.extend({
|
|||||||
link_formatter: {
|
link_formatter: {
|
||||||
filter_input: "account",
|
filter_input: "account",
|
||||||
open_btn: true,
|
open_btn: true,
|
||||||
|
doctype: "'Account'"
|
||||||
}},
|
}},
|
||||||
{id: "debit", name: "Debit", field: "debit", width: 100,
|
{id: "debit", name: "Debit", field: "debit", width: 100,
|
||||||
formatter: this.currency_formatter},
|
formatter: this.currency_formatter},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user