fix: Multi currency in print view shows same currency symbol (#12569)

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
This commit is contained in:
Shariq Ansari 2021-03-16 10:07:23 +05:30 committed by GitHub
parent 6c9634f2bf
commit 71bb522e95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -856,6 +856,11 @@ class BaseDocument(object):
from frappe.model.meta import get_default_df
df = get_default_df(fieldname)
if not currency:
currency = self.get(df.get("options"))
if not frappe.db.exists('Currency', currency, cache=True):
currency = None
val = self.get(fieldname)
if translated: