How to hide Shareholder and Employee from PAYMENT ENTRYs party type link field

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

Refer this @Rebaz_Balisani

1 Like

frappe.ui.form.on(“Payment Entry”, {
setup: function(frm) {
frm.set_query(“party_type”, function() {
return {
filters: [
[“Doctype”,“name”, “in”, [“Customer”, “Supplier”]]
]
}
});
}
});

2 Likes