mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
added format_currency and added options to all currency fields
This commit is contained in:
@@ -16,6 +16,15 @@
|
||||
|
||||
wn.provide('erpnext.utils');
|
||||
|
||||
erpnext.get_currency = function(company) {
|
||||
if(!company && cur_frm)
|
||||
company = cur_frm.doc.company;
|
||||
if(company)
|
||||
return wn.boot.company[company].default_currency || wn.boot.sysdefaults.currency;
|
||||
else
|
||||
return wn.boot.sysdefaults.currency;
|
||||
}
|
||||
|
||||
// TODO
|
||||
erpnext.utils.Controller = Class.extend({
|
||||
init: function(opts) {
|
||||
|
||||
Reference in New Issue
Block a user