Hi guys,
So in print format you can do doc.get_formatted('currency_field')
to format a Currency field, but if it’s calculated on the fly (in the template) then you can’t.
Although it’s possible to use frappe.format_value
but it requires a field to exist for this. So in the end, the function is practically useless because I will still need to go to create a calculated field in the model to get the correct format.
I think, frappe.format_value
should be more generic to take any value and just format it (just specify a type like ‘curreny’, ‘decimal’, etc.). Do you think so as well ?