Total Debit/Credit in words on ERPNext 14

On my Journal Entry print format, I want to put Total Debit/Credit in words but the only field that I can see relate to “in words” is “Total Amount In Words”.
But the other issue come out since “Total Amount” is not always identical with Total Debit/Credit.
Total Amount can be Zero value.

How to make my Total Debit/Credit in words appear on my Journal Entry print format?

I just found the solution on How to use frappe.utils.money_in_words - Frappe Forum this post.

on 3rd post, @kennethsequeira answered:
Here’s an example:

In print format, enter the following in HTML:

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

So this is the answer I need for my Post.