fix: trial balance report freezes when adding filters (#37264)
fix: Only add onclick if correct data is returned workaround for https://github.com/frappe/datatable/issues/177
This commit is contained in:
parent
4ada5a488e
commit
2dc95e5d59
@ -6,8 +6,10 @@ erpnext.financial_statements = {
|
|||||||
if (data && column.fieldname=="account") {
|
if (data && column.fieldname=="account") {
|
||||||
value = data.account_name || value;
|
value = data.account_name || value;
|
||||||
|
|
||||||
|
if (data.account) {
|
||||||
column.link_onclick =
|
column.link_onclick =
|
||||||
"erpnext.financial_statements.open_general_ledger(" + JSON.stringify(data) + ")";
|
"erpnext.financial_statements.open_general_ledger(" + JSON.stringify(data) + ")";
|
||||||
|
}
|
||||||
column.is_tree = true;
|
column.is_tree = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user