Capslock amount in words in payment entry

Hello,

How can I capslock ALL amount in words in Payment entry?

below is my initial code

{{ frappe.utils.money_in_words(doc.base_paid_amount or doc.base_received_amount) }}

Thank you!

Maybe you can use the upper filter?

{{ frappe.utils.money_in_words(doc.base_paid_amount or doc.base_received_amount)|upper }}