Open paulator opened 7 years ago
Using get_formatted
is also useful e.g. for formatting the due_date
i.e. in the payment conditions.
Workaround to use get_formatted
in terms and confitions for doctype Sales Invoice
:
frappe.get_doc("Sales Invoice", name).get_formatted("due_date")
Hi there,
I want to use Jinja in Terms and Conditions. It works if I use {{ fieldname }}.
But if I want to print a date or a currency then I want to use {{ doc.get_formatted("fieldname") }}. But the object doc is not available.