Try ERPNext Buy Support Partners Foundation

Supplier name appears multiple time in request for quotation

Hello Team,

I have create one supplier in that i add one table in that table i add 4 item and save that supplier…when i create the request for quotation and select those 4 item in request for quotation…r8 now based on item filter the supplier …so when i select those 4 item and then select the supplier the supplier name appears multiple time …i dont this only showing one time of the supplier name …avoide the duplication…can u please help me
below are my custom script

frappe.ui.form.on(‘Request for Quotation’, {
setup: function(frm) {
frm.set_query(“supplier”, “suppliers”, function(doc) {
var items_item_code = []
cur_frm.doc.items.forEach( item => {
items_item_code.push(item.item_code)

});

return {
filters: [
[‘Suppier Item Association’, “item”, ‘in’, items_item_code],

]

}
});
}
})

please help

Thank