mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 04:59:18 +00:00
shifted get_company_currency from transaction base to setup/utils.py
This commit is contained in:
@@ -229,14 +229,6 @@ class TransactionBase(DocListController):
|
||||
ch.incentives = d and flt(d[3]) or 0
|
||||
ch.idx = idx
|
||||
idx += 1
|
||||
|
||||
# Get Company Specific Default Currency
|
||||
# -------------------------------------
|
||||
def get_company_currency(self, name):
|
||||
ret = webnotes.conn.sql("select default_currency from tabCompany where name = '%s'" %(name))
|
||||
dcc = ret and ret[0][0] or get_defaults()['currency']
|
||||
return dcc
|
||||
|
||||
|
||||
def load_notification_message(self):
|
||||
dt = self.doc.doctype.lower().replace(" ", "_")
|
||||
|
||||
Reference in New Issue
Block a user