From f83f151ac3926ce867d420a54e14839cad867f10 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 30 Jan 2013 00:42:41 +0530 Subject: [PATCH] fix in get_currency -- using :Company --- public/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/utils.js b/public/js/utils.js index 06d3a53c5d..0f78705294 100644 --- a/public/js/utils.js +++ b/public/js/utils.js @@ -20,7 +20,7 @@ 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; + return wn.model.get(":Company", company).default_currency || wn.boot.sysdefaults.currency; else return wn.boot.sysdefaults.currency; }