You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnEval.Make($"{Text.StyledNum(companySkillCount)} ({(uniqueSkills.Val?"unique ":"")}skill count of {company.UILink()})",companySkillCount);
62
+
returnEval.Make($"{Text.StyledNum(companySkillCount)} ({(highest.Val?"highest ":"")}{(uniqueSkills.Val?"unique ":"")}skill count of {company.UILink()})",companySkillCount);
47
63
}
48
64
49
-
publicoverrideLocStringDescription()=>Localizer.Do($"({(UniqueSkillsisYes?"unique ":UniqueSkillsisNo?"":$"unique (when {UniqueSkills.DescribeNullSafe()}) ")}skill count of company of {LegalPerson.DescribeNullSafe()}");
65
+
publicoverrideLocStringDescription()=>Localizer.Do($"({DescribeHighest()}{DescribeUniqueSkills()}skill count of company of {LegalPerson.DescribeNullSafe()}");
Copy file name to clipboardExpand all lines: README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,13 @@ Retrieves the legal person user from a given employee user. This is helpful to d
46
46
| - | - | - |
47
47
| Citizen | User | The employee. |
48
48
49
+
#### Company CEO
50
+
Retrieves the CEO user from a given company. The legal person for the company will be needed as context.
51
+
52
+
| Property Name | Type | Description |
53
+
| - | - | - |
54
+
| LegalPerson | User | The legal person of the company being evaluated. This could be retrieved from context via Account Legal Person or Employer Legal Person, or directly if using a citizen timer combined with a Is Company Legal Person condition. |
55
+
49
56
#### Employee Count
50
57
Retrieves the number of employees of a company, including the CEO. The legal person for the company will be needed as context.
51
58
@@ -54,12 +61,13 @@ Retrieves the number of employees of a company, including the CEO. The legal per
54
61
| LegalPerson | User | The legal person of the company being evaluated. This could be retrieved from context via Account Legal Person or Employer Legal Person, or directly if using a citizen timer combined with a Is Company Legal Person condition. |
55
62
56
63
#### Skill Count
57
-
Retrieves the number of specialisations of all employees of a company, including Self Improvement. This only counts skills into which a star has been invested. There is an option to choose unique skills only or not. The legal person for the company will be needed as context.
64
+
Retrieves the number of specialisations of all employees of a company, including Self Improvement. This only counts skills into which a star has been invested. There is an option to choose unique skills only or not and an option to choose whether to pick the highest skill count or sum them. The legal person for the company will be needed as context.
58
65
59
66
| Property Name | Type | Description |
60
67
| - | - | - |
61
68
| LegalPerson | User | The legal person of the company being evaluated. This could be retrieved from context via Account Legal Person or Employer Legal Person, or directly if using a citizen timer combined with a Is Company Legal Person condition. |
62
69
| UniqueSkills | Yes/No | Whether to consider unique skills only. For example, two employees both with Mining would count as 2 skills, but only 1 unique skill. |
70
+
| Highest | Yes/No | Whether to select the highest number of skills held per employee rather than the sum. |
63
71
64
72
#### Is CEO Of Company
65
73
Gets if the given citizen is the CEO of any company.
0 commit comments