How I can change the default filters on a Lonk filed Such as “Account Paid To” in Paymenet Entry
1 Like
This issue is giving me trouble in payment form, please let me also know!
Add this code to client scrip @ payment entry
frappe.ui.form.on('Payment Entry', {
refresh(frm) {
frm.set_query("paid_to", function() {
return {
"filters": {
"account_type": "",
}
};
}); }
});
frappe.ui.form.on('Payment Entry', {
refresh(frm) {
frm.set_query("paid_from", function() {
return {
"filters": {
"account_type": "",
}
};
}); }
});