def METHOD_NAME(filters, period_list, partner_doctype):
	sales_field = frappe.scrub(partner_doctype)
	sales_users_data = get_parents_data(filters, partner_doctype)
	if not sales_users_data:
		return
	sales_users = []
	sales_user_wise_item_groups = {}
	for d in sales_users_data:
		if d.parent not in sales_users:
			sales_users.append(d.parent)
		sales_user_wise_item_groups.setdefault(d.parent, [])
		if d.item_group:
			sales_user_wise_item_groups[d.parent].append(d.item_group)
	date_field = "transaction_date" if filters.get("doctype") == "Sales Order" else "posting_date"
	actual_data = get_actual_data(filters, sales_users, date_field, sales_field)
	return prepare_data(
		filters,
		sales_users_data,
		sales_user_wise_item_groups,
		actual_data,
		date_field,
		period_list,
		sales_field,
	)