@forwardslashns/taskit-validation-messages 1.10.2 → 1.10.3
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/package.json +1 -1
- package/src/validation/features/client-relationships-common.validation-messages.ts +4 -4
- package/src/validation/features/client-relationships-income-sources.validation-messages.ts +7 -7
- package/src/validation/features/client-relationships-owners.validation-messages.ts +7 -7
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export const CLIENT_RELATIONSHIPS_COMMON = {
|
|
2
2
|
CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
|
|
3
3
|
message: `A client cannot have a relationship with itself.`,
|
|
4
|
-
affectedFields: ['
|
|
4
|
+
affectedFields: ['relatedClient'],
|
|
5
5
|
},
|
|
6
6
|
INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
|
|
7
7
|
message: `{clientName} is a/an {entityType}, which can't have {relationshipType}s. Please update the relationship type.`,
|
|
8
8
|
params: ['clientName', 'entityType', 'relationshipType'],
|
|
9
|
-
affectedFields: ['
|
|
9
|
+
affectedFields: ['relationshipType'],
|
|
10
10
|
},
|
|
11
11
|
STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
|
|
12
12
|
message: `This relationship's start date cannot be before {clientName}'s date established, {clientDateEstablished}. Please adjust the dates to proceed.`,
|
|
@@ -54,12 +54,12 @@ export const CLIENT_RELATIONSHIPS_COMMON = {
|
|
|
54
54
|
CIRCULAR_RELATIONSHIP_DETECTED: {
|
|
55
55
|
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
56
|
params: ['clientName', 'relatedClientName', 'relationshipType'],
|
|
57
|
-
affectedFields: ['
|
|
57
|
+
affectedFields: ['relationshipType', 'relatedClient', 'startingDate', 'endingDate'],
|
|
58
58
|
},
|
|
59
59
|
CONFLICTING_RELATIONSHIP_TYPES_SAME_TIMEFRAME: {
|
|
60
60
|
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
61
|
params: ['relatedClientName', 'clientName'],
|
|
62
|
-
affectedFields: ['
|
|
62
|
+
affectedFields: ['relationshipType', 'relatedClient', 'startingDate', 'endingDate'],
|
|
63
63
|
},
|
|
64
64
|
CONSECUTIVE_DUPLICATE_RELATIONSHIPS: {
|
|
65
65
|
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.`,
|
|
@@ -2,27 +2,27 @@ export const CLIENT_RELATIONSHIPS_INCOME_SOURCES = {
|
|
|
2
2
|
SUBSIDIARY_CANNOT_HAVE_PARENT: {
|
|
3
3
|
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
4
|
params: ['clientName', 'parentClientName'],
|
|
5
|
-
affectedFields: ['
|
|
5
|
+
affectedFields: ['relationshipType', 'startingDate', 'endingDate'],
|
|
6
6
|
},
|
|
7
7
|
SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
|
|
8
8
|
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
|
-
affectedFields: ['
|
|
9
|
+
affectedFields: ['relationshipType', 'filingStatus'],
|
|
10
10
|
},
|
|
11
11
|
SUBSIDIARY_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
12
12
|
message: `A subsidiary must allocate 100% profit to its parent. Please update the percentage to 100% or change the relationship type.`,
|
|
13
|
-
affectedFields: ['profit', '
|
|
13
|
+
affectedFields: ['profit', 'relationshipType'],
|
|
14
14
|
},
|
|
15
15
|
SUBSIDIARY_LOSS_PERCENTAGE_MUST_BE_100: {
|
|
16
16
|
message: `A subsidiary must allocate 100% loss to its parent. Please update the percentage to 100% or change the relationship type.`,
|
|
17
|
-
affectedFields: ['loss', '
|
|
17
|
+
affectedFields: ['loss', 'relationshipType'],
|
|
18
18
|
},
|
|
19
19
|
SUBSIDIARY_CAPITAL_PERCENTAGE_MUST_BE_100: {
|
|
20
20
|
message: `A subsidiary must allocate 100% capital to its parent. Please update the percentage to 100% or change the relationship type.`,
|
|
21
|
-
affectedFields: ['capital', '
|
|
21
|
+
affectedFields: ['capital', 'relationshipType'],
|
|
22
22
|
},
|
|
23
23
|
SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
|
|
24
24
|
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
|
-
affectedFields: ['
|
|
25
|
+
affectedFields: ['relatedClient', 'relationshipType'],
|
|
26
26
|
},
|
|
27
27
|
K1_ISSUER_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
28
28
|
message: `A K1 issuer must allocate a profit percentage greater than 0%. Please enter a profit percentage, or change Receives K1 to 'No'.`,
|
|
@@ -51,7 +51,7 @@ export const CLIENT_RELATIONSHIPS_INCOME_SOURCES = {
|
|
|
51
51
|
K1_ISSUER_INVALID_ENTITY_TYPE: {
|
|
52
52
|
message: `{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.`,
|
|
53
53
|
params: ['relatedClient', 'entityType'],
|
|
54
|
-
affectedFields: ['
|
|
54
|
+
affectedFields: ['relatedClient', 'relationshipType'],
|
|
55
55
|
},
|
|
56
56
|
INCOME_SOURCE_TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
|
|
57
57
|
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%.`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const CLIENT_RELATIONSHIPS_OWNERS = {
|
|
2
2
|
PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
|
|
3
3
|
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
|
-
affectedFields: ['
|
|
4
|
+
affectedFields: ['relationshipType', 'filingStatus'],
|
|
5
5
|
},
|
|
6
6
|
MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
|
|
7
7
|
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.`,
|
|
@@ -10,28 +10,28 @@ export const CLIENT_RELATIONSHIPS_OWNERS = {
|
|
|
10
10
|
MULTIPLE_PARENT_RELATIONSHIPS_SAME_TIMEFRAME: {
|
|
11
11
|
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
12
|
params: ['parentRelatedClientName', 'relationshipStarting'],
|
|
13
|
-
affectedFields: ['
|
|
13
|
+
affectedFields: ['relationshipType', 'startingDate'],
|
|
14
14
|
},
|
|
15
15
|
PARENT_CANNOT_BE_SUB_ENTITY: {
|
|
16
16
|
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
17
|
params: ['relatedClientName', 'clientName'],
|
|
18
|
-
affectedFields: ['
|
|
18
|
+
affectedFields: ['relatedClient', 'relationshipType', 'startingDate', 'endingDate'],
|
|
19
19
|
},
|
|
20
20
|
PARENT_ENTITY_TYPE_MISMATCH: {
|
|
21
21
|
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
|
-
affectedFields: ['
|
|
22
|
+
affectedFields: ['relatedClient', 'relationshipType'],
|
|
23
23
|
},
|
|
24
24
|
PARENT_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
25
25
|
message: `A parent must own a profit percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
|
|
26
|
-
affectedFields: ['profit', '
|
|
26
|
+
affectedFields: ['profit', 'relationshipType'],
|
|
27
27
|
},
|
|
28
28
|
PARENT_LOSS_PERCENTAGE_MUST_BE_100: {
|
|
29
29
|
message: `A parent must own a loss percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
|
|
30
|
-
affectedFields: ['loss', '
|
|
30
|
+
affectedFields: ['loss', 'relationshipType'],
|
|
31
31
|
},
|
|
32
32
|
PARENT_CAPITAL_PERCENTAGE_MUST_BE_100: {
|
|
33
33
|
message: `A parent must own a capital percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
|
|
34
|
-
affectedFields: ['capital', '
|
|
34
|
+
affectedFields: ['capital', 'relationshipType'],
|
|
35
35
|
},
|
|
36
36
|
SHAREHOLDER_K1_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
37
37
|
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'.`,
|