mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 13:24:47 +00:00
fix in chart of accounts balance display
This commit is contained in:
@@ -109,11 +109,11 @@ erpnext.AccountsChart = Class.extend({
|
||||
|
||||
},
|
||||
onrender: function(treenode) {
|
||||
if (ctype == 'Account') {
|
||||
var bal = treenode.data && treenode.data.balance.split(' ') || ['',''];
|
||||
if (bal && flt(bal[1])) {
|
||||
if (ctype == 'Account' && treenode.data) {
|
||||
if(treenode.data.balance) {
|
||||
treenode.parent.append('<span class="balance-area">'
|
||||
+ format_currency(bal[1], bal[0]) + '</span>');
|
||||
+ format_currency(treenode.data.balance, treenode.data.currency)
|
||||
+ '</span>');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user