How to filter child doctype fields

I will fetch the data from quality inspection doctype to make the stock entry. I want to fetch only the accepted item from quality inspection. Child doctype name Quality Inspection Item. This is my js code.

frm.add_custom_button(__(‘Quality Inspection’), function() {
erpnext.utils.map_current_doc({
method: “erpnext.stock.doctype.quality_inspection.quality_inspection.make_quality”,
source_doctype: “Quality Inspection”,
target: frm,
date_field: “report_date”,
setters: {
supplier: frm.doc.supplier,
},
get_query_filters: {
docstatus: 1,
},
})
}, __(“Get items from”));

@TurkerTunali

@KanchanChauhan

@Nasir_Khan

If you know this plz explain

@gokul_gk, Please share the server side script for function make_quality.