def METHOD_NAME(orders, supplied_items):
	order_details = {}
	for row in orders:
		key = (row.order_id, row.name, row.item_code)
		if key not in order_details:
			order_details.setdefault(key, frappe._dict({"order_item": row, "supplied_items": []}))
		details = order_details[key]
		if supplied_items.get(key):
			for supplied_item in supplied_items[key]:
				details["supplied_items"].append(supplied_item)
	return order_details