Hi! Can someone help me with this?
For doctype: PCF Report, I need to filter child table with field name: ‘expense_details’ (Child Table Doctype is ‘PCV Table’).
Under expense_details child table, I need to filter fieldname ‘pcv_no’ which is a Link Field for Doctype ‘Petty Cash Voucher’. pcv_no selected should have filter (status: “Liquidated”) Can someone help me with my script? It’s not working
frappe.ui.form.on('PCF Report', {
refresh(frm) {
frappe.ui.form.on('PCF Report', {
onload: function(frm) {
frm.set_query('pcv_no', 'expense_details', function(){
return {
"filters": {
status: 'Liquidated'
}
};
});
}
});
}
});