What’s the best way to change a currency docfields currency symbol? From $ to ₹, USD to INR, for example?
I’m using format_currency and then refreshing the field but I can’t trigger a change in the symbol, when I log the output it shows “₹ 100.00”. I cant find an obvious way to do it in set_df_property which seemed like another logical place to look.
OK. So this is part of the solution (and a part I forgotten about, so I glad you pointed me to it) but it’s not changing the symbol, just the label. In the console:
The currency fieldtype can be dynamic based on Options in the field’s meta.
You can create a link field for Currency doctype and set that field’s name as “options” for the field whose symbol you want to change. (See Sales Order doctype for example)
Then you can have the label changed and dependent field refreshed on change of link field.
Can you please the script that you used to accomplish this?
I need to set the symbol for the currency field (it will be dependent on another selection), so how I can obtain this?
I tried all the suggested solutions here but couldn’t manage to change the currency symbol used in a query report. How can I adjust the currency (in a multi-currency setup) to a different currency than the standard currency? I used Currency as field type and the field is correctly displayed as a currency. However, I cannot adjust the symbol to display a different symbol from the default currency. What am I missing?
Thanks @tmatteson. I tried this (following @adam26d suggestion) but I don’t see any enabled currencies in the query report. Is it somehow different for query reports than for changing in standard doctypes (I think that was the original question here)?
This is from the report: