mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +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>');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from __future__ import unicode_literals
|
||||
import webnotes
|
||||
from webnotes.utils import get_defaults, fmt_money
|
||||
from webnotes.utils import get_defaults
|
||||
from accounts.utils import get_balance_on
|
||||
|
||||
@webnotes.whitelist()
|
||||
|
||||
Reference in New Issue
Block a user