@forwardslashns/taskit-validation-messages 1.5.0 → 1.6.1
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.
- package/dist/validation/features/client-relationships-common.validation-messages.d.ts +70 -0
- package/dist/validation/features/client-relationships-common.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/client-relationships-common.validation-messages.js +72 -0
- package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts +72 -0
- package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/client-relationships-income-sources.validation-messages.js +74 -0
- package/dist/validation/features/client-relationships-owners.validation-messages.d.ts +73 -0
- package/dist/validation/features/client-relationships-owners.validation-messages.d.ts.map +1 -0
- package/dist/validation/features/client-relationships-owners.validation-messages.js +75 -0
- package/dist/validation/validation-messages.d.ts +46 -42
- package/dist/validation/validation-messages.d.ts.map +1 -1
- package/dist/validation/validation-messages.js +6 -2
- package/package.json +1 -1
- package/src/validation/features/client-relationships-common.validation-messages.ts +69 -0
- package/src/validation/features/client-relationships-income-sources.validation-messages.ts +71 -0
- package/src/validation/features/client-relationships-owners.validation-messages.ts +72 -0
- package/src/validation/validation-messages.ts +6 -2
- package/dist/validation/features/client-relationships.validation-messages.d.ts +0 -209
- package/dist/validation/features/client-relationships.validation-messages.d.ts.map +0 -1
- package/dist/validation/features/client-relationships.validation-messages.js +0 -211
- package/src/validation/features/client-relationships.validation-messages.ts +0 -208
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare const CLIENT_RELATIONSHIPS_COMMON: {
|
|
2
|
+
readonly CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
|
|
3
|
+
readonly message: "A client cannot have a relationship with itself.";
|
|
4
|
+
readonly affectedFields: readonly ["relatedClientId"];
|
|
5
|
+
};
|
|
6
|
+
readonly INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
|
|
7
|
+
readonly message: "{clientName} is a/an {entityType}, which can't have {relationshipType}s. Please update the relationship type.";
|
|
8
|
+
readonly params: readonly ["clientName", "entityType", "relationshipType"];
|
|
9
|
+
readonly affectedFields: readonly ["relationshipTypeId"];
|
|
10
|
+
};
|
|
11
|
+
readonly STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
|
|
12
|
+
readonly message: "This relationship's start date cannot be before {clientName}'s date established, {clientDateEstablished}. Please adjust the dates to proceed.";
|
|
13
|
+
readonly params: readonly ["clientName", "clientDateEstablished"];
|
|
14
|
+
readonly affectedFields: readonly ["startingDate"];
|
|
15
|
+
};
|
|
16
|
+
readonly STARTING_DATE_ON_OR_AFTER_CLIENT_CLOSE_DATE: {
|
|
17
|
+
readonly message: "This relationship's start date cannot be on or after {clientName}'s close date, {clientCloseDate}. Please adjust the dates to proceed.";
|
|
18
|
+
readonly params: readonly ["clientName", "clientCloseDate"];
|
|
19
|
+
readonly affectedFields: readonly ["startingDate"];
|
|
20
|
+
};
|
|
21
|
+
readonly STARTING_DATE_BEFORE_RELATED_CLIENT_DATE_ESTABLISHED: {
|
|
22
|
+
readonly message: "This relationship's start date cannot be before {relatedClientName}'s date established, {relatedClientDateEstablished}. Please adjust the dates to proceed.";
|
|
23
|
+
readonly params: readonly ["relatedClientName", "relatedClientDateEstablished"];
|
|
24
|
+
readonly affectedFields: readonly ["startingDate"];
|
|
25
|
+
};
|
|
26
|
+
readonly STARTING_DATE_ON_OR_AFTER_RELATED_CLIENT_CLOSE_DATE: {
|
|
27
|
+
readonly message: "This relationship's start date cannot be on or after {relatedClientName}'s close date, {relatedClientCloseDate}. Please adjust the dates to proceed.";
|
|
28
|
+
readonly params: readonly ["relatedClientName", "relatedClientCloseDate"];
|
|
29
|
+
readonly affectedFields: readonly ["startingDate"];
|
|
30
|
+
};
|
|
31
|
+
readonly ENDING_DATE_ON_OR_BEFORE_STARTING_DATE: {
|
|
32
|
+
readonly message: "Please update the relationship ending date to be after the starting date, {startingDate}.";
|
|
33
|
+
readonly params: readonly ["startingDate"];
|
|
34
|
+
readonly affectedFields: readonly ["endingDate"];
|
|
35
|
+
};
|
|
36
|
+
readonly ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
|
|
37
|
+
readonly message: "Please update the relationship ending date to be on or before the client's close date, {clientCloseDate}.";
|
|
38
|
+
readonly params: readonly ["clientCloseDate"];
|
|
39
|
+
readonly affectedFields: readonly ["endingDate"];
|
|
40
|
+
};
|
|
41
|
+
readonly ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
|
|
42
|
+
readonly message: "Please update the relationship ending date to be on or before {relatedClientName}'s close date, {relatedClientCloseDate}.";
|
|
43
|
+
readonly params: readonly ["relatedClientName", "relatedClientCloseDate"];
|
|
44
|
+
readonly affectedFields: readonly ["endingDate"];
|
|
45
|
+
};
|
|
46
|
+
readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
|
|
47
|
+
readonly message: "The client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.";
|
|
48
|
+
readonly affectedFields: readonly ["isFinal"];
|
|
49
|
+
};
|
|
50
|
+
readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
|
|
51
|
+
readonly message: "The related client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.";
|
|
52
|
+
readonly affectedFields: readonly ["isFinal"];
|
|
53
|
+
};
|
|
54
|
+
readonly CIRCULAR_RELATIONSHIP_DETECTED: {
|
|
55
|
+
readonly message: "{clientName} is listed as a {relationshipType} of {relatedClientName}, during the same timeframe that {relatedClientName} is listed as a {relationshipType} of {clientName}. Please review the relationship records for both clients and adjust the dates or relationship types to prevent a circular loop.";
|
|
56
|
+
readonly params: readonly ["clientName", "relatedClientName", "relationshipType"];
|
|
57
|
+
readonly affectedFields: readonly ["relationshipTypeId", "relatedClientId", "startingDate", "endingDate"];
|
|
58
|
+
};
|
|
59
|
+
readonly CONFLICTING_RELATIONSHIP_TYPES_SAME_TIMEFRAME: {
|
|
60
|
+
readonly message: "{relatedClientName} cannot be associated with {clientName} more than once within the same timeframe. Please ensure there are no conflicting relationships for these clients in this timeframe.";
|
|
61
|
+
readonly params: readonly ["relatedClientName", "clientName"];
|
|
62
|
+
readonly affectedFields: readonly ["relationshipTypeId", "relatedClientId", "startingDate", "endingDate"];
|
|
63
|
+
};
|
|
64
|
+
readonly CONSECUTIVE_DUPLICATE_RELATIONSHIPS: {
|
|
65
|
+
readonly message: "There is another {relationshipType} relationship between {relatedClientName} and {clientName} ending on {relationshipEnding}. Please review and adjust the dates to track this relationship in one record.";
|
|
66
|
+
readonly params: readonly ["relationshipType", "relatedClientName", "clientName", "relationshipEnding"];
|
|
67
|
+
readonly affectedFields: readonly ["startingDate", "endingDate"];
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=client-relationships-common.validation-messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-relationships-common.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-relationships-common.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoE9B,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CLIENT_RELATIONSHIPS_COMMON = void 0;
|
|
4
|
+
exports.CLIENT_RELATIONSHIPS_COMMON = {
|
|
5
|
+
CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
|
|
6
|
+
message: `A client cannot have a relationship with itself.`,
|
|
7
|
+
affectedFields: ['relatedClientId'],
|
|
8
|
+
},
|
|
9
|
+
INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
|
|
10
|
+
message: `{clientName} is a/an {entityType}, which can't have {relationshipType}s. Please update the relationship type.`,
|
|
11
|
+
params: ['clientName', 'entityType', 'relationshipType'],
|
|
12
|
+
affectedFields: ['relationshipTypeId'],
|
|
13
|
+
},
|
|
14
|
+
STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
|
|
15
|
+
message: `This relationship's start date cannot be before {clientName}'s date established, {clientDateEstablished}. Please adjust the dates to proceed.`,
|
|
16
|
+
params: ['clientName', 'clientDateEstablished'],
|
|
17
|
+
affectedFields: ['startingDate'],
|
|
18
|
+
},
|
|
19
|
+
STARTING_DATE_ON_OR_AFTER_CLIENT_CLOSE_DATE: {
|
|
20
|
+
message: `This relationship's start date cannot be on or after {clientName}'s close date, {clientCloseDate}. Please adjust the dates to proceed.`,
|
|
21
|
+
params: ['clientName', 'clientCloseDate'],
|
|
22
|
+
affectedFields: ['startingDate'],
|
|
23
|
+
},
|
|
24
|
+
STARTING_DATE_BEFORE_RELATED_CLIENT_DATE_ESTABLISHED: {
|
|
25
|
+
message: `This relationship's start date cannot be before {relatedClientName}'s date established, {relatedClientDateEstablished}. Please adjust the dates to proceed.`,
|
|
26
|
+
params: ['relatedClientName', 'relatedClientDateEstablished'],
|
|
27
|
+
affectedFields: ['startingDate'],
|
|
28
|
+
},
|
|
29
|
+
STARTING_DATE_ON_OR_AFTER_RELATED_CLIENT_CLOSE_DATE: {
|
|
30
|
+
message: `This relationship's start date cannot be on or after {relatedClientName}'s close date, {relatedClientCloseDate}. Please adjust the dates to proceed.`,
|
|
31
|
+
params: ['relatedClientName', 'relatedClientCloseDate'],
|
|
32
|
+
affectedFields: ['startingDate'],
|
|
33
|
+
},
|
|
34
|
+
ENDING_DATE_ON_OR_BEFORE_STARTING_DATE: {
|
|
35
|
+
message: `Please update the relationship ending date to be after the starting date, {startingDate}.`,
|
|
36
|
+
params: ['startingDate'],
|
|
37
|
+
affectedFields: ['endingDate'],
|
|
38
|
+
},
|
|
39
|
+
ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
|
|
40
|
+
message: `Please update the relationship ending date to be on or before the client's close date, {clientCloseDate}.`,
|
|
41
|
+
params: ['clientCloseDate'],
|
|
42
|
+
affectedFields: ['endingDate'],
|
|
43
|
+
},
|
|
44
|
+
ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
|
|
45
|
+
message: `Please update the relationship ending date to be on or before {relatedClientName}'s close date, {relatedClientCloseDate}.`,
|
|
46
|
+
params: ['relatedClientName', 'relatedClientCloseDate'],
|
|
47
|
+
affectedFields: ['endingDate'],
|
|
48
|
+
},
|
|
49
|
+
FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
|
|
50
|
+
message: `The client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.`,
|
|
51
|
+
affectedFields: ['isFinal'],
|
|
52
|
+
},
|
|
53
|
+
FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
|
|
54
|
+
message: `The related client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.`,
|
|
55
|
+
affectedFields: ['isFinal'],
|
|
56
|
+
},
|
|
57
|
+
CIRCULAR_RELATIONSHIP_DETECTED: {
|
|
58
|
+
message: `{clientName} is listed as a {relationshipType} of {relatedClientName}, during the same timeframe that {relatedClientName} is listed as a {relationshipType} of {clientName}. Please review the relationship records for both clients and adjust the dates or relationship types to prevent a circular loop.`,
|
|
59
|
+
params: ['clientName', 'relatedClientName', 'relationshipType'],
|
|
60
|
+
affectedFields: ['relationshipTypeId', 'relatedClientId', 'startingDate', 'endingDate'],
|
|
61
|
+
},
|
|
62
|
+
CONFLICTING_RELATIONSHIP_TYPES_SAME_TIMEFRAME: {
|
|
63
|
+
message: `{relatedClientName} cannot be associated with {clientName} more than once within the same timeframe. Please ensure there are no conflicting relationships for these clients in this timeframe.`,
|
|
64
|
+
params: ['relatedClientName', 'clientName'],
|
|
65
|
+
affectedFields: ['relationshipTypeId', 'relatedClientId', 'startingDate', 'endingDate'],
|
|
66
|
+
},
|
|
67
|
+
CONSECUTIVE_DUPLICATE_RELATIONSHIPS: {
|
|
68
|
+
message: `There is another {relationshipType} relationship between {relatedClientName} and {clientName} ending on {relationshipEnding}. Please review and adjust the dates to track this relationship in one record.`,
|
|
69
|
+
params: ['relationshipType', 'relatedClientName', 'clientName', 'relationshipEnding'],
|
|
70
|
+
affectedFields: ['startingDate', 'endingDate'],
|
|
71
|
+
},
|
|
72
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export declare const CLIENT_RELATIONSHIPS_INCOME_SOURCES: {
|
|
2
|
+
readonly SUBSIDIARY_CANNOT_HAVE_PARENT: {
|
|
3
|
+
readonly message: "{clientName} cannot have subsidiary relationships since it is filing as a subsidiary under {parentClientName} during this timeframe. Please adjust the timeframe or select a different relationship type.";
|
|
4
|
+
readonly params: readonly ["clientName", "parentClientName"];
|
|
5
|
+
readonly affectedFields: readonly ["relationshipTypeId", "startingDate", "endingDate"];
|
|
6
|
+
};
|
|
7
|
+
readonly SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
|
|
8
|
+
readonly message: "A subsidiary relationship can only be added to an entity that files separately. Please update the Sub/Parent status before adding a subsidiary relationship, or choose a different relationship type.";
|
|
9
|
+
readonly affectedFields: readonly ["relationshipTypeId", "filingTypeId"];
|
|
10
|
+
};
|
|
11
|
+
readonly SUBSIDIARY_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
12
|
+
readonly message: "A subsidiary must allocate 100% profit to its parent. Please update the percentage to 100% or change the relationship type.";
|
|
13
|
+
readonly affectedFields: readonly ["profit", "relationshipTypeId"];
|
|
14
|
+
};
|
|
15
|
+
readonly SUBSIDIARY_LOSS_PERCENTAGE_MUST_BE_100: {
|
|
16
|
+
readonly message: "A subsidiary must allocate 100% loss to its parent. Please update the percentage to 100% or change the relationship type.";
|
|
17
|
+
readonly affectedFields: readonly ["loss", "relationshipTypeId"];
|
|
18
|
+
};
|
|
19
|
+
readonly SUBSIDIARY_CAPITAL_PERCENTAGE_MUST_BE_100: {
|
|
20
|
+
readonly message: "A subsidiary must allocate 100% capital to its parent. Please update the percentage to 100% or change the relationship type.";
|
|
21
|
+
readonly affectedFields: readonly ["capital", "relationshipTypeId"];
|
|
22
|
+
};
|
|
23
|
+
readonly SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
|
|
24
|
+
readonly message: "A subsidiary entity must be the same entity type as the client during the relationship's timeframe (besides DBA or LLC subsidiaries). Please select a different relationship type, or update either client's entity type.";
|
|
25
|
+
readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
|
|
26
|
+
};
|
|
27
|
+
readonly K1_ISSUER_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
28
|
+
readonly message: "A K1 issuer must allocate a profit percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.";
|
|
29
|
+
readonly affectedFields: readonly ["profit", "k1Applicable"];
|
|
30
|
+
};
|
|
31
|
+
readonly K1_ISSUER_LOSS_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
32
|
+
readonly message: "A K1 issuer must allocate a loss percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.";
|
|
33
|
+
readonly affectedFields: readonly ["loss", "k1Applicable"];
|
|
34
|
+
};
|
|
35
|
+
readonly K1_ISSUER_CAPITAL_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
36
|
+
readonly message: "A K1 issuer must allocate a capital percentage greater than 0%. Please enter a capital percentage, or change Receives K1 to 'No'.";
|
|
37
|
+
readonly affectedFields: readonly ["capital", "k1Applicable"];
|
|
38
|
+
};
|
|
39
|
+
readonly K1_ISSUER_NO_K1_PROFIT_PERCENTAGE_MUST_BE_0: {
|
|
40
|
+
readonly message: "A K1 issuer that does not issue a K1 cannot allocate a profit percentage. Please update the profit percentage to 0%, or change Receives K1 to 'Yes'.";
|
|
41
|
+
readonly affectedFields: readonly ["profit", "k1Applicable"];
|
|
42
|
+
};
|
|
43
|
+
readonly K1_ISSUER_NO_K1_LOSS_PERCENTAGE_MUST_BE_0: {
|
|
44
|
+
readonly message: "A K1 issuer that does not issue a K1 cannot allocate a loss percentage. Please update the loss percentage to 0%, or change Receives K1 to 'Yes'.";
|
|
45
|
+
readonly affectedFields: readonly ["loss", "k1Applicable"];
|
|
46
|
+
};
|
|
47
|
+
readonly K1_ISSUER_NO_K1_CAPITAL_PERCENTAGE_MUST_BE_0: {
|
|
48
|
+
readonly message: "A K1 issuer that does not issue a K1 cannot allocate a capital percentage. Please update the capital percentage to 0%, or change Receives K1 to 'Yes'.";
|
|
49
|
+
readonly affectedFields: readonly ["capital", "k1Applicable"];
|
|
50
|
+
};
|
|
51
|
+
readonly K1_ISSUER_INVALID_ENTITY_TYPE: {
|
|
52
|
+
readonly message: "{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.";
|
|
53
|
+
readonly params: readonly ["relatedClient", "entityType"];
|
|
54
|
+
readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
|
|
55
|
+
};
|
|
56
|
+
readonly INCOME_SOURCE_TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
|
|
57
|
+
readonly message: "The ownership percentages for {relatedClient}'s profit exceeds 100% for this timeframe. Please update their shareholder percentages so that the total between all owners does not exceed 100%.";
|
|
58
|
+
readonly params: readonly ["relatedClient"];
|
|
59
|
+
readonly affectedFields: readonly ["profit", "startingDate", "endingDate"];
|
|
60
|
+
};
|
|
61
|
+
readonly INCOME_SOURCE_TOTAL_LOSS_PERCENTAGE_EXCEEDS_100: {
|
|
62
|
+
readonly message: "The ownership percentages for {relatedClient}'s loss exceeds 100% for this timeframe. Please update their shareholder percentages so that the total between all owners does not exceed 100%.";
|
|
63
|
+
readonly params: readonly ["relatedClient"];
|
|
64
|
+
readonly affectedFields: readonly ["loss", "startingDate", "endingDate"];
|
|
65
|
+
};
|
|
66
|
+
readonly INCOME_SOURCE_TOTAL_CAPITAL_PERCENTAGE_EXCEEDS_100: {
|
|
67
|
+
readonly message: "The ownership percentages for {relatedClient}'s capital exceeds 100% for this timeframe. Please update their shareholder percentages so that the total between all owners does not exceed 100%.";
|
|
68
|
+
readonly params: readonly ["relatedClient"];
|
|
69
|
+
readonly affectedFields: readonly ["capital", "startingDate", "endingDate"];
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=client-relationships-income-sources.validation-messages.d.ts.map
|
package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-relationships-income-sources.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-relationships-income-sources.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsEtC,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CLIENT_RELATIONSHIPS_INCOME_SOURCES = void 0;
|
|
4
|
+
exports.CLIENT_RELATIONSHIPS_INCOME_SOURCES = {
|
|
5
|
+
SUBSIDIARY_CANNOT_HAVE_PARENT: {
|
|
6
|
+
message: `{clientName} cannot have subsidiary relationships since it is filing as a subsidiary under {parentClientName} during this timeframe. Please adjust the timeframe or select a different relationship type.`,
|
|
7
|
+
params: ['clientName', 'parentClientName'],
|
|
8
|
+
affectedFields: ['relationshipTypeId', 'startingDate', 'endingDate'],
|
|
9
|
+
},
|
|
10
|
+
SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
|
|
11
|
+
message: `A subsidiary relationship can only be added to an entity that files separately. Please update the Sub/Parent status before adding a subsidiary relationship, or choose a different relationship type.`,
|
|
12
|
+
affectedFields: ['relationshipTypeId', 'filingTypeId'],
|
|
13
|
+
},
|
|
14
|
+
SUBSIDIARY_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
15
|
+
message: `A subsidiary must allocate 100% profit to its parent. Please update the percentage to 100% or change the relationship type.`,
|
|
16
|
+
affectedFields: ['profit', 'relationshipTypeId'],
|
|
17
|
+
},
|
|
18
|
+
SUBSIDIARY_LOSS_PERCENTAGE_MUST_BE_100: {
|
|
19
|
+
message: `A subsidiary must allocate 100% loss to its parent. Please update the percentage to 100% or change the relationship type.`,
|
|
20
|
+
affectedFields: ['loss', 'relationshipTypeId'],
|
|
21
|
+
},
|
|
22
|
+
SUBSIDIARY_CAPITAL_PERCENTAGE_MUST_BE_100: {
|
|
23
|
+
message: `A subsidiary must allocate 100% capital to its parent. Please update the percentage to 100% or change the relationship type.`,
|
|
24
|
+
affectedFields: ['capital', 'relationshipTypeId'],
|
|
25
|
+
},
|
|
26
|
+
SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
|
|
27
|
+
message: `A subsidiary entity must be the same entity type as the client during the relationship's timeframe (besides DBA or LLC subsidiaries). Please select a different relationship type, or update either client's entity type.`,
|
|
28
|
+
affectedFields: ['relatedClientId', 'relationshipTypeId'],
|
|
29
|
+
},
|
|
30
|
+
K1_ISSUER_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
31
|
+
message: `A K1 issuer must allocate a profit percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.`,
|
|
32
|
+
affectedFields: ['profit', 'k1Applicable'],
|
|
33
|
+
},
|
|
34
|
+
K1_ISSUER_LOSS_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
35
|
+
message: `A K1 issuer must allocate a loss percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.`,
|
|
36
|
+
affectedFields: ['loss', 'k1Applicable'],
|
|
37
|
+
},
|
|
38
|
+
K1_ISSUER_CAPITAL_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
39
|
+
message: `A K1 issuer must allocate a capital percentage greater than 0%. Please enter a capital percentage, or change Receives K1 to 'No'.`,
|
|
40
|
+
affectedFields: ['capital', 'k1Applicable'],
|
|
41
|
+
},
|
|
42
|
+
K1_ISSUER_NO_K1_PROFIT_PERCENTAGE_MUST_BE_0: {
|
|
43
|
+
message: `A K1 issuer that does not issue a K1 cannot allocate a profit percentage. Please update the profit percentage to 0%, or change Receives K1 to 'Yes'.`,
|
|
44
|
+
affectedFields: ['profit', 'k1Applicable'],
|
|
45
|
+
},
|
|
46
|
+
K1_ISSUER_NO_K1_LOSS_PERCENTAGE_MUST_BE_0: {
|
|
47
|
+
message: `A K1 issuer that does not issue a K1 cannot allocate a loss percentage. Please update the loss percentage to 0%, or change Receives K1 to 'Yes'.`,
|
|
48
|
+
affectedFields: ['loss', 'k1Applicable'],
|
|
49
|
+
},
|
|
50
|
+
K1_ISSUER_NO_K1_CAPITAL_PERCENTAGE_MUST_BE_0: {
|
|
51
|
+
message: `A K1 issuer that does not issue a K1 cannot allocate a capital percentage. Please update the capital percentage to 0%, or change Receives K1 to 'Yes'.`,
|
|
52
|
+
affectedFields: ['capital', 'k1Applicable'],
|
|
53
|
+
},
|
|
54
|
+
K1_ISSUER_INVALID_ENTITY_TYPE: {
|
|
55
|
+
message: `{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.`,
|
|
56
|
+
params: ['relatedClient', 'entityType'],
|
|
57
|
+
affectedFields: ['relatedClientId', 'relationshipTypeId'],
|
|
58
|
+
},
|
|
59
|
+
INCOME_SOURCE_TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
|
|
60
|
+
message: `The ownership percentages for {relatedClient}'s profit exceeds 100% for this timeframe. Please update their shareholder percentages so that the total between all owners does not exceed 100%.`,
|
|
61
|
+
params: ['relatedClient'],
|
|
62
|
+
affectedFields: ['profit', 'startingDate', 'endingDate'],
|
|
63
|
+
},
|
|
64
|
+
INCOME_SOURCE_TOTAL_LOSS_PERCENTAGE_EXCEEDS_100: {
|
|
65
|
+
message: `The ownership percentages for {relatedClient}'s loss exceeds 100% for this timeframe. Please update their shareholder percentages so that the total between all owners does not exceed 100%.`,
|
|
66
|
+
params: ['relatedClient'],
|
|
67
|
+
affectedFields: ['loss', 'startingDate', 'endingDate'],
|
|
68
|
+
},
|
|
69
|
+
INCOME_SOURCE_TOTAL_CAPITAL_PERCENTAGE_EXCEEDS_100: {
|
|
70
|
+
message: `The ownership percentages for {relatedClient}'s capital exceeds 100% for this timeframe. Please update their shareholder percentages so that the total between all owners does not exceed 100%.`,
|
|
71
|
+
params: ['relatedClient'],
|
|
72
|
+
affectedFields: ['capital', 'startingDate', 'endingDate'],
|
|
73
|
+
},
|
|
74
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export declare const CLIENT_RELATIONSHIPS_OWNERS: {
|
|
2
|
+
readonly PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
|
|
3
|
+
readonly message: "A Parent relationship can only be added to an entity that files under parent. Please update the Sub/Parent status before adding a parent relationship, or choose a different relationship type.";
|
|
4
|
+
readonly affectedFields: readonly ["relationshipTypeId", "filingTypeId"];
|
|
5
|
+
};
|
|
6
|
+
readonly MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
|
|
7
|
+
readonly message: "All parent relationships besides the current one must have an ending date. Please add an ending date for any parent relationships that are no longer current, before adding this parent relationship.";
|
|
8
|
+
readonly affectedFields: readonly ["endingDate"];
|
|
9
|
+
};
|
|
10
|
+
readonly MULTIPLE_PARENT_RELATIONSHIPS_SAME_TIMEFRAME: {
|
|
11
|
+
readonly message: "There can only be one parent relationship associated to a client during the same timeframe. There is a current parent relationship with {parentRelatedClientName} starting {relationshipStarting}. Please add an end date to that relationship before adding a new one.";
|
|
12
|
+
readonly params: readonly ["parentRelatedClientName", "relationshipStarting"];
|
|
13
|
+
readonly affectedFields: readonly ["relationshipTypeId", "startingDate"];
|
|
14
|
+
};
|
|
15
|
+
readonly PARENT_CANNOT_BE_SUB_ENTITY: {
|
|
16
|
+
readonly message: "{relatedClientName} cannot be the parent of {clientName}, since it is filing as a sub-entity under another parent during this timeframe. Please adjust the timeframe or select a different relationship type.";
|
|
17
|
+
readonly params: readonly ["relatedClientName", "clientName"];
|
|
18
|
+
readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId", "startingDate", "endingDate"];
|
|
19
|
+
};
|
|
20
|
+
readonly PARENT_ENTITY_TYPE_MISMATCH: {
|
|
21
|
+
readonly message: "A parent entity must be the same entity type as the client during the relationship's timeframe. Please select a different relationship type or update either client's entity type.";
|
|
22
|
+
readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
|
|
23
|
+
};
|
|
24
|
+
readonly PARENT_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
25
|
+
readonly message: "A parent must own a profit percentage of 100%. Please update the percentage to 100% or change the relationship type.";
|
|
26
|
+
readonly affectedFields: readonly ["profit", "relationshipTypeId"];
|
|
27
|
+
};
|
|
28
|
+
readonly PARENT_LOSS_PERCENTAGE_MUST_BE_100: {
|
|
29
|
+
readonly message: "A parent must own a loss percentage of 100%. Please update the percentage to 100% or change the relationship type.";
|
|
30
|
+
readonly affectedFields: readonly ["loss", "relationshipTypeId"];
|
|
31
|
+
};
|
|
32
|
+
readonly PARENT_CAPITAL_PERCENTAGE_MUST_BE_100: {
|
|
33
|
+
readonly message: "A parent must own a capital percentage of 100%. Please update the percentage to 100% or change the relationship type.";
|
|
34
|
+
readonly affectedFields: readonly ["capital", "relationshipTypeId"];
|
|
35
|
+
};
|
|
36
|
+
readonly SHAREHOLDER_K1_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
37
|
+
readonly message: "A shareholder relationship that issues a K1 must have a profit percentage greater than 0%. Please enter a profit percentage, or change Issues K1 to 'No'.";
|
|
38
|
+
readonly affectedFields: readonly ["profit", "k1Applicable"];
|
|
39
|
+
};
|
|
40
|
+
readonly SHAREHOLDER_K1_LOSS_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
41
|
+
readonly message: "A shareholder relationship that issues a K1 must have a loss percentage greater than 0%. Please enter a loss percentage, or change Issues K1 to 'No'.";
|
|
42
|
+
readonly affectedFields: readonly ["loss", "k1Applicable"];
|
|
43
|
+
};
|
|
44
|
+
readonly SHAREHOLDER_K1_CAPITAL_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
45
|
+
readonly message: "A shareholder relationship that issues a K1 must have a capital percentage greater than 0%. Please enter a capital percentage, or change Issues K1 to 'No'.";
|
|
46
|
+
readonly affectedFields: readonly ["capital", "k1Applicable"];
|
|
47
|
+
};
|
|
48
|
+
readonly SHAREHOLDER_NO_K1_PROFIT_PERCENTAGE_MUST_BE_0: {
|
|
49
|
+
readonly message: "A shareholder relationship that does not issue a K1 must have a 0% profit percentage. Please update the profit percentage, or change Issues K1 to 'Yes'.";
|
|
50
|
+
readonly affectedFields: readonly ["profit", "k1Applicable"];
|
|
51
|
+
};
|
|
52
|
+
readonly SHAREHOLDER_NO_K1_LOSS_PERCENTAGE_MUST_BE_0: {
|
|
53
|
+
readonly message: "A shareholder relationship that does not issue a K1 must have a 0% loss percentage. Please update the loss percentage, or change Issues K1 to 'Yes'.";
|
|
54
|
+
readonly affectedFields: readonly ["loss", "k1Applicable"];
|
|
55
|
+
};
|
|
56
|
+
readonly SHAREHOLDER_NO_K1_CAPITAL_PERCENTAGE_MUST_BE_0: {
|
|
57
|
+
readonly message: "A shareholder relationship that does not issue a K1 must have a 0% capital percentage. Please update the capital percentage, or change Issues K1 to 'Yes'.";
|
|
58
|
+
readonly affectedFields: readonly ["capital", "k1Applicable"];
|
|
59
|
+
};
|
|
60
|
+
readonly TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
|
|
61
|
+
readonly message: "The total profit percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.";
|
|
62
|
+
readonly affectedFields: readonly ["profit", "startingDate", "endingDate"];
|
|
63
|
+
};
|
|
64
|
+
readonly TOTAL_LOSS_PERCENTAGE_EXCEEDS_100: {
|
|
65
|
+
readonly message: "The total loss percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.";
|
|
66
|
+
readonly affectedFields: readonly ["loss", "startingDate", "endingDate"];
|
|
67
|
+
};
|
|
68
|
+
readonly TOTAL_CAPITAL_PERCENTAGE_EXCEEDS_100: {
|
|
69
|
+
readonly message: "The total capital percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.";
|
|
70
|
+
readonly affectedFields: readonly ["capital", "startingDate", "endingDate"];
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=client-relationships-owners.validation-messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-relationships-owners.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-relationships-owners.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuE9B,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CLIENT_RELATIONSHIPS_OWNERS = void 0;
|
|
4
|
+
exports.CLIENT_RELATIONSHIPS_OWNERS = {
|
|
5
|
+
PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
|
|
6
|
+
message: `A Parent relationship can only be added to an entity that files under parent. Please update the Sub/Parent status before adding a parent relationship, or choose a different relationship type.`,
|
|
7
|
+
affectedFields: ['relationshipTypeId', 'filingTypeId'],
|
|
8
|
+
},
|
|
9
|
+
MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
|
|
10
|
+
message: `All parent relationships besides the current one must have an ending date. Please add an ending date for any parent relationships that are no longer current, before adding this parent relationship.`,
|
|
11
|
+
affectedFields: ['endingDate'],
|
|
12
|
+
},
|
|
13
|
+
MULTIPLE_PARENT_RELATIONSHIPS_SAME_TIMEFRAME: {
|
|
14
|
+
message: `There can only be one parent relationship associated to a client during the same timeframe. There is a current parent relationship with {parentRelatedClientName} starting {relationshipStarting}. Please add an end date to that relationship before adding a new one.`,
|
|
15
|
+
params: ['parentRelatedClientName', 'relationshipStarting'],
|
|
16
|
+
affectedFields: ['relationshipTypeId', 'startingDate'],
|
|
17
|
+
},
|
|
18
|
+
PARENT_CANNOT_BE_SUB_ENTITY: {
|
|
19
|
+
message: `{relatedClientName} cannot be the parent of {clientName}, since it is filing as a sub-entity under another parent during this timeframe. Please adjust the timeframe or select a different relationship type.`,
|
|
20
|
+
params: ['relatedClientName', 'clientName'],
|
|
21
|
+
affectedFields: ['relatedClientId', 'relationshipTypeId', 'startingDate', 'endingDate'],
|
|
22
|
+
},
|
|
23
|
+
PARENT_ENTITY_TYPE_MISMATCH: {
|
|
24
|
+
message: `A parent entity must be the same entity type as the client during the relationship's timeframe. Please select a different relationship type or update either client's entity type.`,
|
|
25
|
+
affectedFields: ['relatedClientId', 'relationshipTypeId'],
|
|
26
|
+
},
|
|
27
|
+
PARENT_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
28
|
+
message: `A parent must own a profit percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
|
|
29
|
+
affectedFields: ['profit', 'relationshipTypeId'],
|
|
30
|
+
},
|
|
31
|
+
PARENT_LOSS_PERCENTAGE_MUST_BE_100: {
|
|
32
|
+
message: `A parent must own a loss percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
|
|
33
|
+
affectedFields: ['loss', 'relationshipTypeId'],
|
|
34
|
+
},
|
|
35
|
+
PARENT_CAPITAL_PERCENTAGE_MUST_BE_100: {
|
|
36
|
+
message: `A parent must own a capital percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
|
|
37
|
+
affectedFields: ['capital', 'relationshipTypeId'],
|
|
38
|
+
},
|
|
39
|
+
SHAREHOLDER_K1_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
40
|
+
message: `A shareholder relationship that issues a K1 must have a profit percentage greater than 0%. Please enter a profit percentage, or change Issues K1 to 'No'.`,
|
|
41
|
+
affectedFields: ['profit', 'k1Applicable'],
|
|
42
|
+
},
|
|
43
|
+
SHAREHOLDER_K1_LOSS_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
44
|
+
message: `A shareholder relationship that issues a K1 must have a loss percentage greater than 0%. Please enter a loss percentage, or change Issues K1 to 'No'.`,
|
|
45
|
+
affectedFields: ['loss', 'k1Applicable'],
|
|
46
|
+
},
|
|
47
|
+
SHAREHOLDER_K1_CAPITAL_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
48
|
+
message: `A shareholder relationship that issues a K1 must have a capital percentage greater than 0%. Please enter a capital percentage, or change Issues K1 to 'No'.`,
|
|
49
|
+
affectedFields: ['capital', 'k1Applicable'],
|
|
50
|
+
},
|
|
51
|
+
SHAREHOLDER_NO_K1_PROFIT_PERCENTAGE_MUST_BE_0: {
|
|
52
|
+
message: `A shareholder relationship that does not issue a K1 must have a 0% profit percentage. Please update the profit percentage, or change Issues K1 to 'Yes'.`,
|
|
53
|
+
affectedFields: ['profit', 'k1Applicable'],
|
|
54
|
+
},
|
|
55
|
+
SHAREHOLDER_NO_K1_LOSS_PERCENTAGE_MUST_BE_0: {
|
|
56
|
+
message: `A shareholder relationship that does not issue a K1 must have a 0% loss percentage. Please update the loss percentage, or change Issues K1 to 'Yes'.`,
|
|
57
|
+
affectedFields: ['loss', 'k1Applicable'],
|
|
58
|
+
},
|
|
59
|
+
SHAREHOLDER_NO_K1_CAPITAL_PERCENTAGE_MUST_BE_0: {
|
|
60
|
+
message: `A shareholder relationship that does not issue a K1 must have a 0% capital percentage. Please update the capital percentage, or change Issues K1 to 'Yes'.`,
|
|
61
|
+
affectedFields: ['capital', 'k1Applicable'],
|
|
62
|
+
},
|
|
63
|
+
TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
|
|
64
|
+
message: `The total profit percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.`,
|
|
65
|
+
affectedFields: ['profit', 'startingDate', 'endingDate'],
|
|
66
|
+
},
|
|
67
|
+
TOTAL_LOSS_PERCENTAGE_EXCEEDS_100: {
|
|
68
|
+
message: `The total loss percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.`,
|
|
69
|
+
affectedFields: ['loss', 'startingDate', 'endingDate'],
|
|
70
|
+
},
|
|
71
|
+
TOTAL_CAPITAL_PERCENTAGE_EXCEEDS_100: {
|
|
72
|
+
message: `The total capital percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.`,
|
|
73
|
+
affectedFields: ['capital', 'startingDate', 'endingDate'],
|
|
74
|
+
},
|
|
75
|
+
};
|
|
@@ -606,7 +606,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
606
606
|
readonly affectedFields: readonly ["stateEndingDate"];
|
|
607
607
|
};
|
|
608
608
|
};
|
|
609
|
-
readonly
|
|
609
|
+
readonly CLIENT_RELATIONSHIPS_COMMON: {
|
|
610
610
|
readonly CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
|
|
611
611
|
readonly message: "A client cannot have a relationship with itself.";
|
|
612
612
|
readonly affectedFields: readonly ["relatedClientId"];
|
|
@@ -616,10 +616,6 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
616
616
|
readonly params: readonly ["clientName", "entityType", "relationshipType"];
|
|
617
617
|
readonly affectedFields: readonly ["relationshipTypeId"];
|
|
618
618
|
};
|
|
619
|
-
readonly PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
|
|
620
|
-
readonly message: "A Parent relationship can only be added to an entity that files under parent. Please update the Sub/Parent status before adding a parent relationship, or choose a different relationship type.";
|
|
621
|
-
readonly affectedFields: readonly ["relationshipTypeId", "filingTypeId"];
|
|
622
|
-
};
|
|
623
619
|
readonly STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
|
|
624
620
|
readonly message: "This relationship's start date cannot be before {clientName}'s date established, {clientDateEstablished}. Please adjust the dates to proceed.";
|
|
625
621
|
readonly params: readonly ["clientName", "clientDateEstablished"];
|
|
@@ -655,10 +651,6 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
655
651
|
readonly params: readonly ["relatedClientName", "relatedClientCloseDate"];
|
|
656
652
|
readonly affectedFields: readonly ["endingDate"];
|
|
657
653
|
};
|
|
658
|
-
readonly MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
|
|
659
|
-
readonly message: "All parent relationships besides the current one must have an ending date. Please add an ending date for any parent relationships that are no longer current, before adding this parent relationship.";
|
|
660
|
-
readonly affectedFields: readonly ["endingDate"];
|
|
661
|
-
};
|
|
662
654
|
readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
|
|
663
655
|
readonly message: "The client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.";
|
|
664
656
|
readonly affectedFields: readonly ["isFinal"];
|
|
@@ -677,6 +669,21 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
677
669
|
readonly params: readonly ["relatedClientName", "clientName"];
|
|
678
670
|
readonly affectedFields: readonly ["relationshipTypeId", "relatedClientId", "startingDate", "endingDate"];
|
|
679
671
|
};
|
|
672
|
+
readonly CONSECUTIVE_DUPLICATE_RELATIONSHIPS: {
|
|
673
|
+
readonly message: "There is another {relationshipType} relationship between {relatedClientName} and {clientName} ending on {relationshipEnding}. Please review and adjust the dates to track this relationship in one record.";
|
|
674
|
+
readonly params: readonly ["relationshipType", "relatedClientName", "clientName", "relationshipEnding"];
|
|
675
|
+
readonly affectedFields: readonly ["startingDate", "endingDate"];
|
|
676
|
+
};
|
|
677
|
+
};
|
|
678
|
+
readonly CLIENT_RELATIONSHIPS_OWNERS: {
|
|
679
|
+
readonly PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
|
|
680
|
+
readonly message: "A Parent relationship can only be added to an entity that files under parent. Please update the Sub/Parent status before adding a parent relationship, or choose a different relationship type.";
|
|
681
|
+
readonly affectedFields: readonly ["relationshipTypeId", "filingTypeId"];
|
|
682
|
+
};
|
|
683
|
+
readonly MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
|
|
684
|
+
readonly message: "All parent relationships besides the current one must have an ending date. Please add an ending date for any parent relationships that are no longer current, before adding this parent relationship.";
|
|
685
|
+
readonly affectedFields: readonly ["endingDate"];
|
|
686
|
+
};
|
|
680
687
|
readonly MULTIPLE_PARENT_RELATIONSHIPS_SAME_TIMEFRAME: {
|
|
681
688
|
readonly message: "There can only be one parent relationship associated to a client during the same timeframe. There is a current parent relationship with {parentRelatedClientName} starting {relationshipStarting}. Please add an end date to that relationship before adding a new one.";
|
|
682
689
|
readonly params: readonly ["parentRelatedClientName", "relationshipStarting"];
|
|
@@ -691,20 +698,6 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
691
698
|
readonly message: "A parent entity must be the same entity type as the client during the relationship's timeframe. Please select a different relationship type or update either client's entity type.";
|
|
692
699
|
readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
|
|
693
700
|
};
|
|
694
|
-
readonly CONSECUTIVE_DUPLICATE_RELATIONSHIPS: {
|
|
695
|
-
readonly message: "There is another {relationshipType} relationship between {relatedClientName} and {clientName} ending on {relationshipEnding}. Please review and adjust the dates to track this relationship in one record.";
|
|
696
|
-
readonly params: readonly ["relationshipType", "relatedClientName", "clientName", "relationshipEnding"];
|
|
697
|
-
readonly affectedFields: readonly ["startingDate", "endingDate"];
|
|
698
|
-
};
|
|
699
|
-
readonly SUBSIDIARY_CANNOT_HAVE_PARENT: {
|
|
700
|
-
readonly message: "{clientName} cannot have subsidiary relationships since it is filing as a subsidiary under {parentClientName} during this timeframe. Please adjust the timeframe or select a different relationship type.";
|
|
701
|
-
readonly params: readonly ["clientName", "parentClientName"];
|
|
702
|
-
readonly affectedFields: readonly ["relationshipTypeId", "startingDate", "endingDate"];
|
|
703
|
-
};
|
|
704
|
-
readonly SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
|
|
705
|
-
readonly message: "A subsidiary relationship can only be added to an entity that files separately. Please update the Sub/Parent status before adding a subsidiary relationship, or choose a different relationship type.";
|
|
706
|
-
readonly affectedFields: readonly ["relationshipTypeId", "filingTypeId"];
|
|
707
|
-
};
|
|
708
701
|
readonly PARENT_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
709
702
|
readonly message: "A parent must own a profit percentage of 100%. Please update the percentage to 100% or change the relationship type.";
|
|
710
703
|
readonly affectedFields: readonly ["profit", "relationshipTypeId"];
|
|
@@ -729,6 +722,18 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
729
722
|
readonly message: "A shareholder relationship that issues a K1 must have a capital percentage greater than 0%. Please enter a capital percentage, or change Issues K1 to 'No'.";
|
|
730
723
|
readonly affectedFields: readonly ["capital", "k1Applicable"];
|
|
731
724
|
};
|
|
725
|
+
readonly SHAREHOLDER_NO_K1_PROFIT_PERCENTAGE_MUST_BE_0: {
|
|
726
|
+
readonly message: "A shareholder relationship that does not issue a K1 must have a 0% profit percentage. Please update the profit percentage, or change Issues K1 to 'Yes'.";
|
|
727
|
+
readonly affectedFields: readonly ["profit", "k1Applicable"];
|
|
728
|
+
};
|
|
729
|
+
readonly SHAREHOLDER_NO_K1_LOSS_PERCENTAGE_MUST_BE_0: {
|
|
730
|
+
readonly message: "A shareholder relationship that does not issue a K1 must have a 0% loss percentage. Please update the loss percentage, or change Issues K1 to 'Yes'.";
|
|
731
|
+
readonly affectedFields: readonly ["loss", "k1Applicable"];
|
|
732
|
+
};
|
|
733
|
+
readonly SHAREHOLDER_NO_K1_CAPITAL_PERCENTAGE_MUST_BE_0: {
|
|
734
|
+
readonly message: "A shareholder relationship that does not issue a K1 must have a 0% capital percentage. Please update the capital percentage, or change Issues K1 to 'Yes'.";
|
|
735
|
+
readonly affectedFields: readonly ["capital", "k1Applicable"];
|
|
736
|
+
};
|
|
732
737
|
readonly TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
|
|
733
738
|
readonly message: "The total profit percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.";
|
|
734
739
|
readonly affectedFields: readonly ["profit", "startingDate", "endingDate"];
|
|
@@ -741,17 +746,16 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
741
746
|
readonly message: "The total capital percentage for this timeframe exceeds 100%. Please adjust the shareholder percentages to total no more than 100% for all shareholders in this timeframe.";
|
|
742
747
|
readonly affectedFields: readonly ["capital", "startingDate", "endingDate"];
|
|
743
748
|
};
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
readonly
|
|
750
|
-
readonly affectedFields: readonly ["loss", "k1Applicable"];
|
|
749
|
+
};
|
|
750
|
+
readonly CLIENT_RELATIONSHIPS_INCOME_SOURCES: {
|
|
751
|
+
readonly SUBSIDIARY_CANNOT_HAVE_PARENT: {
|
|
752
|
+
readonly message: "{clientName} cannot have subsidiary relationships since it is filing as a subsidiary under {parentClientName} during this timeframe. Please adjust the timeframe or select a different relationship type.";
|
|
753
|
+
readonly params: readonly ["clientName", "parentClientName"];
|
|
754
|
+
readonly affectedFields: readonly ["relationshipTypeId", "startingDate", "endingDate"];
|
|
751
755
|
};
|
|
752
|
-
readonly
|
|
753
|
-
readonly message: "A
|
|
754
|
-
readonly affectedFields: readonly ["
|
|
756
|
+
readonly SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
|
|
757
|
+
readonly message: "A subsidiary relationship can only be added to an entity that files separately. Please update the Sub/Parent status before adding a subsidiary relationship, or choose a different relationship type.";
|
|
758
|
+
readonly affectedFields: readonly ["relationshipTypeId", "filingTypeId"];
|
|
755
759
|
};
|
|
756
760
|
readonly SUBSIDIARY_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
757
761
|
readonly message: "A subsidiary must allocate 100% profit to its parent. Please update the percentage to 100% or change the relationship type.";
|
|
@@ -765,6 +769,10 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
765
769
|
readonly message: "A subsidiary must allocate 100% capital to its parent. Please update the percentage to 100% or change the relationship type.";
|
|
766
770
|
readonly affectedFields: readonly ["capital", "relationshipTypeId"];
|
|
767
771
|
};
|
|
772
|
+
readonly SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
|
|
773
|
+
readonly message: "A subsidiary entity must be the same entity type as the client during the relationship's timeframe (besides DBA or LLC subsidiaries). Please select a different relationship type, or update either client's entity type.";
|
|
774
|
+
readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
|
|
775
|
+
};
|
|
768
776
|
readonly K1_ISSUER_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
769
777
|
readonly message: "A K1 issuer must allocate a profit percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.";
|
|
770
778
|
readonly affectedFields: readonly ["profit", "k1Applicable"];
|
|
@@ -789,6 +797,11 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
789
797
|
readonly message: "A K1 issuer that does not issue a K1 cannot allocate a capital percentage. Please update the capital percentage to 0%, or change Receives K1 to 'Yes'.";
|
|
790
798
|
readonly affectedFields: readonly ["capital", "k1Applicable"];
|
|
791
799
|
};
|
|
800
|
+
readonly K1_ISSUER_INVALID_ENTITY_TYPE: {
|
|
801
|
+
readonly message: "{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.";
|
|
802
|
+
readonly params: readonly ["relatedClient", "entityType"];
|
|
803
|
+
readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
|
|
804
|
+
};
|
|
792
805
|
readonly INCOME_SOURCE_TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
|
|
793
806
|
readonly message: "The ownership percentages for {relatedClient}'s profit exceeds 100% for this timeframe. Please update their shareholder percentages so that the total between all owners does not exceed 100%.";
|
|
794
807
|
readonly params: readonly ["relatedClient"];
|
|
@@ -804,15 +817,6 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
804
817
|
readonly params: readonly ["relatedClient"];
|
|
805
818
|
readonly affectedFields: readonly ["capital", "startingDate", "endingDate"];
|
|
806
819
|
};
|
|
807
|
-
readonly SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
|
|
808
|
-
readonly message: "A subsidiary entity must be the same entity type as the client during the relationship's timeframe (besides DBA or LLC subsidiaries). Please select a different relationship type, or update either client's entity type.";
|
|
809
|
-
readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
|
|
810
|
-
};
|
|
811
|
-
readonly K1_ISSUER_INVALID_ENTITY_TYPE: {
|
|
812
|
-
readonly message: "{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.";
|
|
813
|
-
readonly params: readonly ["relatedClient", "entityType"];
|
|
814
|
-
readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
|
|
815
|
-
};
|
|
816
820
|
};
|
|
817
821
|
readonly FILING_CATEGORIES: {
|
|
818
822
|
readonly INVALID_REQUEST: {
|