Custom Script for new Field in payment entry (In words)

Custom script created for the Amount_in_words

frappe.ui.form.on(“Payment Entry”,‘paid_amount’, function(frm) {

    frappe.model.set_value(frm.doctype, frm.docname, "amount_in_words", frappe.utils.money_in_words(frm.paid_amount));
        });
        frm.reload_doc();

});

Any Help appreciated to make the script work

I think frappe.utils.money_in_words is not available in JS

To use it see this.

It should be frm.doc.paid_amount instead of frm.paid_amount.

I also need a solution for this issue