Hi,
Can anyone please help me to know how to redirect to payment entry page when a button is clicked but when this payment entry loads i want to auto select the payment entry type to pay and party,party type as name field of doc-type where the button exist.
What i have done so far is
frappe.ui.form.on('My Custom Doctype ', {
refresh: function(frm) {
cur_frm.add_custom_button(__('Payment'), cur_frm.cscript.make_payment_entry, __("Make"));
}
});```