mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 05:39:12 +00:00
added format_currency and added options to all currency fields
This commit is contained in:
@@ -112,9 +112,8 @@ erpnext.AccountsChart = Class.extend({
|
||||
if (ctype == 'Account') {
|
||||
var bal = treenode.data && treenode.data.balance.split(' ') || ['',''];
|
||||
if (bal && flt(bal[1])) {
|
||||
treenode.parent.append('<span class="balance-area">\
|
||||
<span style="color: #aaa">'+ bal[0] + '</span> '
|
||||
+ fmt_money(bal[1]) + '</span>');
|
||||
treenode.parent.append('<span class="balance-area">'
|
||||
+ format_currency(bal[1], bal[0]) + '</span>');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user