Try ERPNext Try Frappe Cloud Buy Support Partners Foundation

How to sum in jinja format

Hi everyone, i want to add two values and get the sum is there anyway to be done in custon print format?

If you want to use Arithmetic operators in print format

You can use like this:
{{ β€˜{:20,.2f}’.format(doc.rate / 2,’’) }}

also you can use it to calculate variable
{{ β€˜{:20,.2f}’.format(doc.rate / doc.quantity,’’) }}

1 Like