Hello;
Can someone advise me how I can format the d.price_list_rate
value in the below example as money value:
<div class="col-sm-1 small" style="margin-top: 8px;">
<a data-type="price_list_rate" data-name="{{ d.price_list_rate }}">
{{ d.price_list_rate }}
</a>
</div>
Really I tried to use {{ frappe.utils.fmt_money(d.price_list_rate) }}and was gaving error in java console that TypeError: frappe.utils.fmt_money is not a function
.
Also I used {{ “${:,.2f}”.format(d.price_list_rate) }} and was giving in java console TypeError: str.replace is not a function
.
So, how I can format the number?
Maybe it is required to change the data-type and data-name but I do not know what to place.
This change is required to be done in file item_dashboard_list.html
which is used for Stock Summary page.
I do not have experience in Jinja and using it in erpnext.
By the way, currently this is the look for the Stock Summary page and I need to correct the format for the Price:
Regards
Bilal