[fix] Get defaults based on doctype or fieldname

This commit is contained in:
Nabin Hait
2015-12-23 16:37:00 +05:30
parent d55d0c06e3
commit b6b56453e1
37 changed files with 39 additions and 39 deletions

View File

@@ -383,7 +383,7 @@ def get_actual_expense(args):
def get_currency_precision(currency=None):
if not currency:
currency = frappe.db.get_value("Company",
frappe.db.get_default("company"), "default_currency", cache=True)
frappe.db.get_default("Company"), "default_currency", cache=True)
currency_format = frappe.db.get_value("Currency", currency, "number_format", cache=True)
from frappe.utils import get_number_format_info