def METHOD_NAME(filters):
	if not any([filters.warehouse, filters.item_code, filters.item_group]):
		frappe.throw(_("Any one of following filters required: warehouse, Item Code, Item Group"))
	sles = get_stock_ledger_entries(filters)
	return find_first_bad_queue(sles)