In Payment Entry there is PARTY TYPE link field which shows “customer, employee, shareholder, supplier” i want to hide employee and shareholder. how could it be done via client scripts
frappe.ui.form.on(“Payment Entry”, {
setup: function(frm) {
frm.set_query(“party_type”, function() {
return {
filters: [
[“Doctype”,“name”, “in”, [“Customer”, “Supplier”]]
]
}
});
}
});
2 Likes