def METHOD_NAME(orders, report_filters):
	if not orders:
		return []
	fields = [
		"parent",
		"main_item_code",
		"rm_item_code",
		"required_qty",
		"supplied_qty",
		"returned_qty",
		"total_supplied_qty",
		"consumed_qty",
		"reference_name",
	]
	filters = {"parent": ("in", [d.order_id for d in orders]), "docstatus": 1}
	supplied_items = {}
	supplied_items_table = (
		"Purchase Order Item Supplied"
		if report_filters.order_type == "Purchase Order"
		else "Subcontracting Order Supplied Item"
	)
	for row in frappe.get_all(supplied_items_table, fields=fields, filters=filters):
		new_key = (row.parent, row.reference_name, row.main_item_code)
		supplied_items.setdefault(new_key, []).append(row)
	return supplied_items