@things-factory/organization 10.1.299 → 10.1.303

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,5 +2,5 @@ import { ApprovalLine } from './approval-line';
2
2
  import { ApprovalLineQuery } from './approval-line-query';
3
3
  import { ApprovalLineMutation } from './approval-line-mutation';
4
4
  export declare const entities: (typeof ApprovalLine)[];
5
- export declare const resolvers: (typeof ApprovalLineMutation | typeof ApprovalLineQuery)[];
5
+ export declare const resolvers: (typeof ApprovalLineQuery | typeof ApprovalLineMutation)[];
6
6
  export declare const subscribers: any[];
@@ -3,6 +3,6 @@ import { DepartmentHistory } from './department-history';
3
3
  import { DepartmentQuery } from './department-query';
4
4
  import { DepartmentMutation } from './department-mutation';
5
5
  import { DepartmentHistoryEntitySubscriber } from './event-subscriber';
6
- export declare const entities: (typeof DepartmentHistory | typeof Department)[];
7
- export declare const resolvers: (typeof DepartmentMutation | typeof DepartmentQuery)[];
6
+ export declare const entities: (typeof Department | typeof DepartmentHistory)[];
7
+ export declare const resolvers: (typeof DepartmentQuery | typeof DepartmentMutation)[];
8
8
  export declare const subscribers: (typeof DepartmentHistoryEntitySubscriber)[];
@@ -0,0 +1,4 @@
1
+ import { Counterparty } from '@things-factory/biz-base';
2
+ export declare class CounterpartyEmployeeResolver {
3
+ isEmployee(party: Counterparty, context: ResolverContext): Promise<boolean>;
4
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CounterpartyEmployeeResolver = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const type_graphql_1 = require("type-graphql");
6
+ const typeorm_1 = require("typeorm");
7
+ const biz_base_1 = require("@things-factory/biz-base");
8
+ const shell_1 = require("@things-factory/shell");
9
+ const employee_1 = require("./employee");
10
+ /*
11
+ * Whether a counterparty is an employee - the person counterparty an employee record points at (ADR-0218 decision 1).
12
+ * Read from the records, never stored on the counterparty. A list asks it of every row, so the tied ids of a domain
13
+ * are read once per request.
14
+ */
15
+ const CACHE = Symbol('employee counterparties');
16
+ async function tiedOf(context, domainId) {
17
+ const state = context.state;
18
+ const cache = (state[CACHE] ??= new Map());
19
+ if (!cache.has(domainId))
20
+ cache.set(domainId, (0, shell_1.getRepository)(employee_1.Employee, state.tx)
21
+ .find({ where: { domain: { id: domainId }, counterparty: (0, typeorm_1.Not)((0, typeorm_1.IsNull)()) }, withDeleted: true })
22
+ .then(rows => new Set(rows.map(one => one.counterpartyId))));
23
+ return await cache.get(domainId);
24
+ }
25
+ let CounterpartyEmployeeResolver = class CounterpartyEmployeeResolver {
26
+ async isEmployee(party, context) {
27
+ const domainId = party.domainId ?? party.domain?.id ?? context.state.domain?.id;
28
+ if (!domainId || !party?.id)
29
+ return false;
30
+ return (await tiedOf(context, domainId)).has(party.id);
31
+ }
32
+ };
33
+ exports.CounterpartyEmployeeResolver = CounterpartyEmployeeResolver;
34
+ tslib_1.__decorate([
35
+ (0, type_graphql_1.FieldResolver)(type => Boolean, { description: 'Whether the counterparty is an employee - the person counterparty an employee record points at' }),
36
+ tslib_1.__param(0, (0, type_graphql_1.Root)()),
37
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
38
+ tslib_1.__metadata("design:type", Function),
39
+ tslib_1.__metadata("design:paramtypes", [biz_base_1.Counterparty, Object]),
40
+ tslib_1.__metadata("design:returntype", Promise)
41
+ ], CounterpartyEmployeeResolver.prototype, "isEmployee", null);
42
+ exports.CounterpartyEmployeeResolver = CounterpartyEmployeeResolver = tslib_1.__decorate([
43
+ (0, type_graphql_1.Resolver)(biz_base_1.Counterparty)
44
+ ], CounterpartyEmployeeResolver);
45
+ //# sourceMappingURL=counterparty-employee-resolver.js.map
@@ -0,0 +1,13 @@
1
+ import { EntitySubscriberInterface, InsertEvent, UpdateEvent } from 'typeorm';
2
+ import { Employee } from './employee';
3
+ /** Which existing counterparty the employee is, `'new'` to register one, `undefined` to leave it to a person. Pure. */
4
+ export declare function counterpartyChoice(name: string, people: readonly {
5
+ id: string;
6
+ name: string;
7
+ aliases?: string | null;
8
+ }[], held: ReadonlySet<string>): string | 'new' | undefined;
9
+ export declare class EmployeeCounterpartySubscriber implements EntitySubscriberInterface<Employee> {
10
+ listenTo(): typeof Employee;
11
+ beforeInsert(event: InsertEvent<Employee>): Promise<void>;
12
+ beforeUpdate(event: UpdateEvent<Employee>): Promise<void>;
13
+ }
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmployeeCounterpartySubscriber = void 0;
4
+ exports.counterpartyChoice = counterpartyChoice;
5
+ const tslib_1 = require("tslib");
6
+ const typeorm_1 = require("typeorm");
7
+ const biz_base_1 = require("@things-factory/biz-base");
8
+ const shell_1 = require("@things-factory/shell");
9
+ const employee_1 = require("./employee");
10
+ /*
11
+ * An employee is one person counterparty (operato-application ADR-0218 decisions 1-3). Money to and from the employee -
12
+ * a claim paid back, a final pay - is booked against it; the employee record points at it.
13
+ *
14
+ * Tied when the record is saved, whatever door saves it (the roster, a grid, an import, the AI): a person counterparty
15
+ * of the name that no other employee holds - one only, a name two go by answers neither - else a new one through
16
+ * biz-base's one writer. A domain that reads its counterparties from another keeps none of its own, so it ties none.
17
+ */
18
+ /** Which existing counterparty the employee is, `'new'` to register one, `undefined` to leave it to a person. Pure. */
19
+ function counterpartyChoice(name, people, held) {
20
+ const named = (0, biz_base_1.sameNamed)(people, name);
21
+ if (named.length > 1)
22
+ return undefined;
23
+ if (named.length === 1)
24
+ return held.has(named[0].id) ? undefined : named[0].id;
25
+ return 'new';
26
+ }
27
+ async function tie(tx, domain, name, user) {
28
+ const scope = await (0, biz_base_1.counterpartyScopeOf)(tx, domain);
29
+ if (scope.ownerId !== domain.id)
30
+ return undefined;
31
+ const people = await tx.getRepository(biz_base_1.Counterparty).find({ where: { domain: { id: domain.id }, kind: biz_base_1.CounterpartyKind.PERSON }, select: ['id', 'name', 'aliases'] });
32
+ const held = new Set((await tx.getRepository(employee_1.Employee).find({ where: { domain: { id: domain.id }, counterparty: { id: (0, typeorm_1.In)(people.map(one => one.id)) } }, withDeleted: true })).map(one => one.counterpartyId));
33
+ const choice = counterpartyChoice(name, people, held);
34
+ if (choice !== 'new')
35
+ return choice;
36
+ const [made] = await (0, biz_base_1.saveCounterparties)(tx, domain, user, [{ name, kind: biz_base_1.CounterpartyKind.PERSON, cuFlag: '+' }]);
37
+ return made.id;
38
+ }
39
+ const domainIdOf = (row) => row?.domain?.id ?? row?.domainId ?? (typeof row?.domain === 'string' ? row.domain : undefined);
40
+ let EmployeeCounterpartySubscriber = class EmployeeCounterpartySubscriber {
41
+ listenTo() {
42
+ return employee_1.Employee;
43
+ }
44
+ async beforeInsert(event) {
45
+ const row = event.entity;
46
+ const domainId = domainIdOf(row);
47
+ if (!row?.name?.trim() || !domainId || row.counterparty)
48
+ return;
49
+ const id = await tie(event.manager, { id: domainId }, row.name.trim(), row.updater ?? row.creator ?? null);
50
+ if (id)
51
+ row.counterparty = { id };
52
+ }
53
+ /* Only a save of the whole row - a query builder's update names no employee. */
54
+ async beforeUpdate(event) {
55
+ const row = event.entity;
56
+ if (!row?.id || !event.databaseEntity)
57
+ return;
58
+ const current = await event.manager.getRepository(employee_1.Employee).findOne({ where: { id: row.id }, relations: ['domain'], withDeleted: true });
59
+ if (!current?.domain)
60
+ return;
61
+ const name = String(row.name ?? current.name ?? '').trim();
62
+ const chosen = row.counterparty === undefined ? current.counterpartyId : row.counterparty?.id;
63
+ if (!chosen) {
64
+ if (!name)
65
+ return;
66
+ const id = await tie(event.manager, current.domain, name, row.updater ?? null);
67
+ if (id)
68
+ row.counterparty = { id };
69
+ return;
70
+ }
71
+ /* The employee's name is the record's: a rename renames the counterparty. */
72
+ if (name && name !== current.name) {
73
+ const party = await event.manager.getRepository(biz_base_1.Counterparty).findOne({ where: { id: chosen } });
74
+ if (party && party.name !== name)
75
+ await (0, biz_base_1.saveCounterparties)(event.manager, current.domain, row.updater ?? null, [{ id: chosen, name, cuFlag: 'M' }]);
76
+ }
77
+ }
78
+ };
79
+ exports.EmployeeCounterpartySubscriber = EmployeeCounterpartySubscriber;
80
+ exports.EmployeeCounterpartySubscriber = EmployeeCounterpartySubscriber = tslib_1.__decorate([
81
+ (0, typeorm_1.EventSubscriber)()
82
+ ], EmployeeCounterpartySubscriber);
83
+ /* The employee's account is the pay account on the record (ADR-0139: HR's); the counterparty keeps none beside it. */
84
+ (0, biz_base_1.onCounterpartyBankAccountsSaved)(async (tx, domain, saved) => {
85
+ const parties = [...new Set(saved.map(one => one.counterpartyId).filter(Boolean))];
86
+ if (!parties.length)
87
+ return;
88
+ const employee = await tx.getRepository(employee_1.Employee).findOne({ where: { domain: { id: domain.id }, counterparty: { id: (0, typeorm_1.In)(parties) } }, withDeleted: true });
89
+ if (employee)
90
+ throw new shell_1.Refusal('counterparty-account-of-employee', { name: employee.name }, `${employee.name} is an employee - the account is the pay account on the employee record`);
91
+ });
92
+ //# sourceMappingURL=employee-counterparty.js.map
@@ -1,6 +1,7 @@
1
1
  import { HistoryActionType, HistoryEntityInterface } from '@operato/typeorm-history';
2
2
  import { User } from '@things-factory/auth-base';
3
3
  import { Contact } from '@things-factory/contact';
4
+ import { Counterparty } from '@things-factory/biz-base';
4
5
  import { Domain } from '@things-factory/shell';
5
6
  import { Employee, EmployeeType } from './employee';
6
7
  import { Department } from '../department/department';
@@ -40,6 +41,8 @@ export declare class EmployeeHistory implements HistoryEntityInterface<Employee>
40
41
  userId?: string;
41
42
  contact?: Contact;
42
43
  contactId?: string;
44
+ counterparty?: Counterparty;
45
+ counterpartyId?: string;
43
46
  originalId: string;
44
47
  action: HistoryActionType;
45
48
  }
@@ -7,6 +7,7 @@ const typeorm_1 = require("typeorm");
7
7
  const typeorm_history_1 = require("@operato/typeorm-history");
8
8
  const auth_base_1 = require("@things-factory/auth-base");
9
9
  const contact_1 = require("@things-factory/contact");
10
+ const biz_base_1 = require("@things-factory/biz-base");
10
11
  const env_1 = require("@things-factory/env");
11
12
  const shell_1 = require("@things-factory/shell");
12
13
  const employee_1 = require("./employee");
@@ -189,6 +190,14 @@ tslib_1.__decorate([
189
190
  (0, typeorm_1.RelationId)((employee) => employee.contact),
190
191
  tslib_1.__metadata("design:type", String)
191
192
  ], EmployeeHistory.prototype, "contactId", void 0);
193
+ tslib_1.__decorate([
194
+ (0, typeorm_1.ManyToOne)(type => biz_base_1.Counterparty, { nullable: true }),
195
+ tslib_1.__metadata("design:type", biz_base_1.Counterparty)
196
+ ], EmployeeHistory.prototype, "counterparty", void 0);
197
+ tslib_1.__decorate([
198
+ (0, typeorm_1.RelationId)((employee) => employee.counterparty),
199
+ tslib_1.__metadata("design:type", String)
200
+ ], EmployeeHistory.prototype, "counterpartyId", void 0);
192
201
  tslib_1.__decorate([
193
202
  (0, typeorm_history_1.HistoryOriginalIdColumn)(),
194
203
  tslib_1.__metadata("design:type", String)
@@ -1,6 +1,7 @@
1
1
  import { Domain } from '@things-factory/shell';
2
2
  import { User } from '@things-factory/auth-base';
3
3
  import { Contact, Profile } from '@things-factory/contact';
4
+ import { Counterparty } from '@things-factory/biz-base';
4
5
  import { Department } from '../department/department';
5
6
  import { ApprovalLine } from '../approval-line/approval-line';
6
7
  export declare enum EmployeeType {
@@ -33,6 +34,8 @@ export declare class Employee {
33
34
  userId?: string;
34
35
  contact?: Contact;
35
36
  contactId?: string;
37
+ counterparty?: Counterparty;
38
+ counterpartyId?: string;
36
39
  email?: string;
37
40
  phone?: string;
38
41
  profile?: Profile;
@@ -8,6 +8,7 @@ const graphql_scalars_1 = require("graphql-scalars");
8
8
  const shell_1 = require("@things-factory/shell");
9
9
  const auth_base_1 = require("@things-factory/auth-base");
10
10
  const contact_1 = require("@things-factory/contact");
11
+ const biz_base_1 = require("@things-factory/biz-base");
11
12
  const department_1 = require("../department/department");
12
13
  const approval_line_1 = require("../approval-line/approval-line");
13
14
  var EmployeeType;
@@ -140,6 +141,15 @@ tslib_1.__decorate([
140
141
  (0, typeorm_1.RelationId)((employee) => employee.contact),
141
142
  tslib_1.__metadata("design:type", String)
142
143
  ], Employee.prototype, "contactId", void 0);
144
+ tslib_1.__decorate([
145
+ (0, typeorm_1.ManyToOne)(type => biz_base_1.Counterparty, { nullable: true }),
146
+ tslib_1.__metadata("design:type", biz_base_1.Counterparty)
147
+ ], Employee.prototype, "counterparty", void 0);
148
+ tslib_1.__decorate([
149
+ (0, typeorm_1.RelationId)((employee) => employee.counterparty),
150
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true, description: 'The person counterparty the employee is in the counterparty list as' }),
151
+ tslib_1.__metadata("design:type", String)
152
+ ], Employee.prototype, "counterpartyId", void 0);
143
153
  tslib_1.__decorate([
144
154
  (0, type_graphql_1.Field)(type => graphql_scalars_1.GraphQLEmailAddress, { nullable: true }),
145
155
  tslib_1.__metadata("design:type", String)
@@ -227,6 +237,10 @@ exports.Employee = Employee = tslib_1.__decorate([
227
237
  (0, typeorm_1.Index)('ix_employee_0', (employee) => [employee.domain, employee.controlNo, employee.deletedAt], {
228
238
  unique: true
229
239
  }),
240
+ (0, typeorm_1.Index)('ix_employee_1', (employee) => [employee.domain, employee.counterparty], {
241
+ unique: true,
242
+ where: '"counterparty_id" IS NOT NULL AND "deleted_at" IS NULL'
243
+ }),
230
244
  (0, type_graphql_1.ObjectType)({ description: 'Entity for Employee' })
231
245
  ], Employee);
232
246
  //# sourceMappingURL=employee.js.map
@@ -3,7 +3,10 @@ import { EmployeeHistory } from './employee-history';
3
3
  import { EmployeeQuery } from './employee-query';
4
4
  import { EmployeeMutation } from './employee-mutation';
5
5
  import { EmployeeHistoryEntitySubscriber } from './event-subscriber';
6
- export declare const entities: (typeof EmployeeHistory | typeof Employee)[];
7
- export declare const resolvers: (typeof EmployeeMutation | typeof EmployeeQuery)[];
8
- export declare const subscribers: (typeof EmployeeHistoryEntitySubscriber)[];
6
+ import { EmployeeCounterpartySubscriber } from './employee-counterparty';
7
+ import { CounterpartyEmployeeResolver } from './counterparty-employee-resolver';
8
+ export declare const entities: (typeof Employee | typeof EmployeeHistory)[];
9
+ export declare const resolvers: (typeof EmployeeQuery | typeof EmployeeMutation | typeof CounterpartyEmployeeResolver)[];
10
+ export declare const subscribers: (typeof EmployeeHistoryEntitySubscriber | typeof EmployeeCounterpartySubscriber)[];
11
+ export { counterpartyChoice } from './employee-counterparty.js';
9
12
  export * from './my-employee.js';
@@ -1,15 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.subscribers = exports.resolvers = exports.entities = void 0;
3
+ exports.counterpartyChoice = exports.subscribers = exports.resolvers = exports.entities = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const employee_1 = require("./employee");
6
6
  const employee_history_1 = require("./employee-history");
7
7
  const employee_query_1 = require("./employee-query");
8
8
  const employee_mutation_1 = require("./employee-mutation");
9
9
  const event_subscriber_1 = require("./event-subscriber");
10
+ const employee_counterparty_1 = require("./employee-counterparty");
11
+ const counterparty_employee_resolver_1 = require("./counterparty-employee-resolver");
10
12
  exports.entities = [employee_1.Employee, employee_history_1.EmployeeHistory];
11
- exports.resolvers = [employee_query_1.EmployeeQuery, employee_mutation_1.EmployeeMutation];
12
- exports.subscribers = [event_subscriber_1.EmployeeHistoryEntitySubscriber];
13
+ exports.resolvers = [employee_query_1.EmployeeQuery, employee_mutation_1.EmployeeMutation, counterparty_employee_resolver_1.CounterpartyEmployeeResolver];
14
+ exports.subscribers = [event_subscriber_1.EmployeeHistoryEntitySubscriber, employee_counterparty_1.EmployeeCounterpartySubscriber];
15
+ var employee_counterparty_js_1 = require("./employee-counterparty.js");
16
+ Object.defineProperty(exports, "counterpartyChoice", { enumerable: true, get: function () { return employee_counterparty_js_1.counterpartyChoice; } });
13
17
  /* 「이 사용자의 사원 기록」 판정 — 소비처가 다시 정하지 않게 밖으로 낸다. */
14
18
  tslib_1.__exportStar(require("./my-employee.js"), exports);
15
19
  //# sourceMappingURL=index.js.map
@@ -2,4 +2,4 @@ import { EmployeeProfile } from './employee-profile';
2
2
  import { EmployeeProfileMutation } from './employee-profile-mutation';
3
3
  import { EmployeeProfileQuery } from './employee-profile-query';
4
4
  export declare const entities: (typeof EmployeeProfile)[];
5
- export declare const resolvers: (typeof EmployeeProfileQuery | typeof EmployeeProfileMutation)[];
5
+ export declare const resolvers: (typeof EmployeeProfileMutation | typeof EmployeeProfileQuery)[];
@@ -5,8 +5,8 @@ export * from './employee/working-employees';
5
5
  export * from './employee-profile/employee-profile';
6
6
  export * from './audience/audience';
7
7
  export * from './audience/audience-member';
8
- export declare const entities: (typeof import("./employee/employee-history").EmployeeHistory | typeof import("./department/department-history").DepartmentHistory | typeof import("./employee-profile/employee-profile").EmployeeProfile | typeof import("./approval-line/approval-line").ApprovalLine | typeof import("./employee/employee").Employee | typeof import("./department/department").Department)[];
9
- export declare const subscribers: (typeof import("./department/event-subscriber").DepartmentHistoryEntitySubscriber | typeof import("./employee/event-subscriber").EmployeeHistoryEntitySubscriber)[];
8
+ export declare const entities: (typeof import("./department/department").Department | typeof import("./employee/employee").Employee | typeof import("./approval-line/approval-line").ApprovalLine | typeof import("./employee-profile/employee-profile").EmployeeProfile | typeof import("./department/department-history").DepartmentHistory | typeof import("./employee/employee-history").EmployeeHistory)[];
9
+ export declare const subscribers: (typeof import("./department/event-subscriber").DepartmentHistoryEntitySubscriber | typeof import("./employee/event-subscriber").EmployeeHistoryEntitySubscriber | typeof import("./employee/employee-counterparty").EmployeeCounterpartySubscriber)[];
10
10
  export declare const schema: {
11
- resolverClasses: (typeof import("./employee-profile/employee-profile-query").EmployeeProfileQuery | typeof import("./employee-profile/employee-profile-mutation").EmployeeProfileMutation | typeof import("./employee/employee-mutation").EmployeeMutation | typeof import("./employee/employee-query").EmployeeQuery | typeof import("./department/department-mutation").DepartmentMutation | typeof import("./department/department-query").DepartmentQuery | typeof import("./approval-line/approval-line-mutation").ApprovalLineMutation | typeof import("./approval-line/approval-line-query").ApprovalLineQuery)[];
11
+ resolverClasses: (typeof import("./approval-line/approval-line-query").ApprovalLineQuery | typeof import("./approval-line/approval-line-mutation").ApprovalLineMutation | typeof import("./department/department-query").DepartmentQuery | typeof import("./department/department-mutation").DepartmentMutation | typeof import("./employee/employee-query").EmployeeQuery | typeof import("./employee/employee-mutation").EmployeeMutation | typeof import("./employee/counterparty-employee-resolver").CounterpartyEmployeeResolver | typeof import("./employee-profile/employee-profile-mutation").EmployeeProfileMutation | typeof import("./employee-profile/employee-profile-query").EmployeeProfileQuery)[];
12
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/organization",
3
- "version": "10.1.299",
3
+ "version": "10.1.303",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "files": [
@@ -54,13 +54,17 @@
54
54
  "@operato/p13n": "^10.0.0",
55
55
  "@operato/popup": "^10.15.0",
56
56
  "@operato/shell": "^10.29.69",
57
- "@things-factory/ai-assistant": "^10.1.299",
58
- "@things-factory/auth-base": "^10.1.298",
59
- "@things-factory/code-ui": "^10.1.299",
60
- "@things-factory/contact": "^10.1.298",
61
- "@things-factory/pdf": "^10.1.299",
62
- "@things-factory/shell": "^10.1.298",
57
+ "@things-factory/ai-assistant": "^10.1.303",
58
+ "@things-factory/auth-base": "^10.1.303",
59
+ "@things-factory/biz-base": "^10.1.303",
60
+ "@things-factory/code-ui": "^10.1.303",
61
+ "@things-factory/contact": "^10.1.303",
62
+ "@things-factory/pdf": "^10.1.303",
63
+ "@things-factory/shell": "^10.1.303",
63
64
  "exceljs": "4.2.0"
64
65
  },
65
- "gitHead": "ace61a8cc8b7c32f62a5f9bfa5495563623a96b3"
66
+ "gitHead": "2d5888ebfc0a004b000a4aa3dfb8ff9561e75ff9",
67
+ "devDependencies": {
68
+ "@things-factory/conventions": "^10.1.281"
69
+ }
66
70
  }
@@ -211,5 +211,7 @@
211
211
  "label.drafter": "drafter",
212
212
  "label.drafter-Myself": "the drafter",
213
213
  "label.drafter-MySupervisor": "drafter's supervisor",
214
- "label.drafter-MyDepartment": "drafter's department"
214
+ "label.drafter-MyDepartment": "drafter's department",
215
+ "error.counterparty-account-of-employee": "{name} is an employee. Register an employee's account as the pay account on the employee record.",
216
+ "label.row-tie-Employee": "employee"
215
217
  }
@@ -211,5 +211,7 @@
211
211
  "label.drafter": "redactor",
212
212
  "label.drafter-Myself": "el redactor",
213
213
  "label.drafter-MySupervisor": "supervisor del redactor",
214
- "label.drafter-MyDepartment": "departamento del redactor"
214
+ "label.drafter-MyDepartment": "departamento del redactor",
215
+ "error.counterparty-account-of-employee": "{name} es un empleado. Registre la cuenta del empleado como cuenta de nómina en su ficha.",
216
+ "label.row-tie-Employee": "empleado"
215
217
  }
@@ -211,5 +211,7 @@
211
211
  "label.drafter": "起案者",
212
212
  "label.drafter-Myself": "起案者本人",
213
213
  "label.drafter-MySupervisor": "起案者の上司",
214
- "label.drafter-MyDepartment": "起案者の部署"
214
+ "label.drafter-MyDepartment": "起案者の部署",
215
+ "error.counterparty-account-of-employee": "{name} さんは社員です。社員の口座は社員情報の給与口座として登録してください。",
216
+ "label.row-tie-Employee": "社員"
215
217
  }
@@ -211,5 +211,7 @@
211
211
  "label.drafter": "기안자",
212
212
  "label.drafter-Myself": "기안자 본인",
213
213
  "label.drafter-MySupervisor": "기안자의 관리자",
214
- "label.drafter-MyDepartment": "기안자의 부서"
214
+ "label.drafter-MyDepartment": "기안자의 부서",
215
+ "error.counterparty-account-of-employee": "{name} 님은 직원입니다. 직원의 계좌는 직원 정보의 급여 계좌로 등록해야 합니다.",
216
+ "label.row-tie-Employee": "직원"
215
217
  }
@@ -211,5 +211,7 @@
211
211
  "label.drafter": "penggubal",
212
212
  "label.drafter-Myself": "penggubal sendiri",
213
213
  "label.drafter-MySupervisor": "penyelia penggubal",
214
- "label.drafter-MyDepartment": "jabatan penggubal"
214
+ "label.drafter-MyDepartment": "jabatan penggubal",
215
+ "error.counterparty-account-of-employee": "{name} ialah pekerja. Daftarkan akaun pekerja sebagai akaun gaji dalam rekod pekerja.",
216
+ "label.row-tie-Employee": "pekerja"
215
217
  }
@@ -211,5 +211,7 @@
211
211
  "label.drafter": "起草人",
212
212
  "label.drafter-Myself": "起草人本人",
213
213
  "label.drafter-MySupervisor": "起草人的主管",
214
- "label.drafter-MyDepartment": "起草人的部门"
214
+ "label.drafter-MyDepartment": "起草人的部门",
215
+ "error.counterparty-account-of-employee": "{name} 是员工。员工的账户应登记为员工信息中的工资账户。",
216
+ "label.row-tie-Employee": "员工"
215
217
  }