Print Total Amount in Words Custom Print Template ( Stock entry Doctype)

Hi.! I want to print the Total amount in words, I have a variable for Total Amount (numbers).

Any method to also have this total amount in WORDS displaced in the custom Print Template.


got the answer from a reply by @aram_k

Created a CUSTOM HTML Field in Custom Print Template.
Entered the following code.

{{ frappe.utils.money_in_words(doc.total_amount) }}