added format_currency and added options to all currency fields

This commit is contained in:
Rushabh Mehta
2013-01-23 19:39:51 +05:30
parent 6382a42dbe
commit 597d470e63
96 changed files with 804 additions and 604 deletions

View File

@@ -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>');
}
}
}

View File

@@ -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()