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:
parent
6c9634f2bf
commit
71bb522e95
1 changed files with 5 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue