[fix] value returned by frappe._ will always be unicode
This commit is contained in:
parent
b46069d44b
commit
0bcd9efa88
@ -63,9 +63,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-sm-2 col-xs-3 text-right">
|
<div class="col-sm-2 col-xs-3 text-right">
|
||||||
{{ d.get_formatted("amount") }}
|
{{ d.get_formatted("amount") }}
|
||||||
{# output of get_formatted("rate") is unicode, to replace unicode use _("text {0}").decode("utf8").format(val) #}
|
|
||||||
<p class="text-muted small">{{
|
<p class="text-muted small">{{
|
||||||
_("Rate: {0}").decode("utf8").format(d.get_formatted("rate")) }}</p>
|
_("Rate: {0}").format(d.get_formatted("rate")) }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user