how to format the docfield into currency in print format.
my problem is my docfield is Read only to another doctype.
how to format the docfield into currency in print format.
my problem is my docfield is Read only to another doctype.
this is my print format
in your print format html code, you can use the following Jinja syntax:
{{ doc.get_formatted('grand_total') }}
Enter your field and it will format it accordingly. This requires the field to be defined as βCurrencyβ (see DocType/Customization).
Hope this helps.
hi!
@lasalesi thanks for your response, ill try your code but it doesnt work.
my COST($) is Read Only from another doctype and i think thats the reason why i cannot format.
You can try
{{ frappe.utils.fmt_money(doc.cost,currency=β$β) }}
you may closed this topic