i try to add new button in doctype and create another doc form it but i get this error
Uncaught TypeError: erpnext.utils.make_payment_voucher is not a function
at eval (journal_entry__custom_js:21:25)
at HTMLAnchorElement._action (page.js:647:19)
at HTMLAnchorElement.dispatch (jquery.js:5135:27)
at elemData.handle (jquery.js:4939:28)
client script is
refresh(frm) {
frm.add_custom_button(
__("Payment Voucher"),
function(){
erpnext.utils.make_payment_voucher(frm.doc.doctype, frm.doc.name);
},
__("Create")
);
}
how could i did it?!