@forwardslashns/taskit-validation-messages 1.10.18 → 1.10.20
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/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/validation/features/account-categories.validation-messages.d.ts +18 -14
- package/dist/validation/features/account-categories.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/account-categories.validation-messages.js +7 -2
- package/dist/validation/features/account-ids.validation-messages.d.ts +23 -18
- package/dist/validation/features/account-ids.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/account-ids.validation-messages.js +8 -2
- package/dist/validation/features/business-activities.validation-messages.d.ts +18 -14
- package/dist/validation/features/business-activities.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/business-activities.validation-messages.js +7 -2
- package/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts +195 -158
- package/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-current-entity-statuses.validation-messages.js +45 -7
- package/dist/validation/features/client-records-addresses.validation-messages.d.ts +71 -58
- package/dist/validation/features/client-records-addresses.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-records-addresses.validation-messages.js +16 -2
- package/dist/validation/features/client-records-banks.validation-messages.d.ts +20 -15
- package/dist/validation/features/client-records-banks.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-records-banks.validation-messages.js +8 -2
- package/dist/validation/features/client-records-commission-details.validation-messages.d.ts +21 -16
- package/dist/validation/features/client-records-commission-details.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-records-commission-details.validation-messages.js +8 -2
- package/dist/validation/features/client-records-contacts.validation-messages.d.ts +41 -33
- package/dist/validation/features/client-records-contacts.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-records-contacts.validation-messages.js +11 -2
- package/dist/validation/features/client-records-credit-cards.validation-messages.d.ts +24 -18
- package/dist/validation/features/client-records-credit-cards.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-records-credit-cards.validation-messages.js +9 -2
- package/dist/validation/features/client-records-entity-states-histories.validation-messages.d.ts +97 -80
- package/dist/validation/features/client-records-entity-states-histories.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-records-entity-states-histories.validation-messages.js +30 -12
- package/dist/validation/features/client-records-entity-types-histories.validation-messages.d.ts +96 -79
- package/dist/validation/features/client-records-entity-types-histories.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-records-entity-types-histories.validation-messages.js +30 -12
- package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.d.ts +96 -79
- package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.js +30 -12
- package/dist/validation/features/client-records-outside-providers.validation-messages.d.ts +10 -8
- package/dist/validation/features/client-records-outside-providers.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-records-outside-providers.validation-messages.js +6 -3
- package/dist/validation/features/client-relationships-common.validation-messages.d.ts +69 -55
- package/dist/validation/features/client-relationships-common.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-relationships-common.validation-messages.js +30 -15
- package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts +84 -68
- package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-relationships-income-sources.validation-messages.js +21 -4
- package/dist/validation/features/client-relationships-owners.validation-messages.d.ts +86 -69
- package/dist/validation/features/client-relationships-owners.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-relationships-owners.validation-messages.js +22 -4
- package/dist/validation/features/data-filters.validation-messages.d.ts +16 -12
- package/dist/validation/features/data-filters.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/data-filters.validation-messages.js +7 -2
- package/dist/validation/features/filing-categories.validation-messages.d.ts +18 -14
- package/dist/validation/features/filing-categories.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/filing-categories.validation-messages.js +7 -2
- package/dist/validation/features/income-accounts.validation-messages.d.ts +17 -13
- package/dist/validation/features/income-accounts.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/income-accounts.validation-messages.js +7 -2
- package/dist/validation/features/roles-and-permissions.validation-messages.d.ts +29 -23
- package/dist/validation/features/roles-and-permissions.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/roles-and-permissions.validation-messages.js +9 -2
- package/dist/validation/features/states.validation-messages.d.ts +55 -45
- package/dist/validation/features/states.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/states.validation-messages.js +13 -2
- package/dist/validation/features/template-assignments.validation-messages.d.ts +85 -68
- package/dist/validation/features/template-assignments.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/template-assignments.validation-messages.js +20 -2
- package/dist/validation/features/template-information.validation-messages.d.ts +218 -175
- package/dist/validation/features/template-information.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/template-information.validation-messages.js +46 -2
- package/dist/validation/features/template-recurrence-settings.validation-messages.d.ts +164 -132
- package/dist/validation/features/template-recurrence-settings.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/template-recurrence-settings.validation-messages.js +37 -4
- package/dist/validation/features/template-states.validation-messages.d.ts +49 -39
- package/dist/validation/features/template-states.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/template-states.validation-messages.js +13 -2
- package/dist/validation/features/user-preferences.validation-messages.d.ts +17 -13
- package/dist/validation/features/user-preferences.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/user-preferences.validation-messages.js +8 -3
- package/dist/validation/features/users.validation-messages.d.ts +65 -53
- package/dist/validation/features/users.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/users.validation-messages.js +17 -4
- package/dist/validation/validation-message.formatter.d.ts +2 -0
- package/dist/validation/validation-message.formatter.d.ts.map +1 -1
- package/dist/validation/validation-message.formatter.js +1 -0
- package/dist/validation/validation-message.types.d.ts +30 -0
- package/dist/validation/validation-message.types.d.ts.map +1 -0
- package/dist/validation/validation-message.types.js +9 -0
- package/dist/validation/validation-messages.d.ts +1756 -1423
- package/dist/validation/validation-messages.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +14 -0
- package/src/validation/features/account-categories.validation-messages.ts +8 -2
- package/src/validation/features/account-ids.validation-messages.ts +9 -2
- package/src/validation/features/business-activities.validation-messages.ts +8 -2
- package/src/validation/features/client-current-entity-statuses.validation-messages.ts +46 -7
- package/src/validation/features/client-records-addresses.validation-messages.ts +17 -2
- package/src/validation/features/client-records-banks.validation-messages.ts +9 -2
- package/src/validation/features/client-records-commission-details.validation-messages.ts +9 -2
- package/src/validation/features/client-records-contacts.validation-messages.ts +12 -2
- package/src/validation/features/client-records-credit-cards.validation-messages.ts +10 -2
- package/src/validation/features/client-records-entity-states-histories.validation-messages.ts +31 -12
- package/src/validation/features/client-records-entity-types-histories.validation-messages.ts +31 -12
- package/src/validation/features/client-records-filing-statuses-histories.validation-messages.ts +31 -12
- package/src/validation/features/client-records-outside-providers.validation-messages.ts +7 -3
- package/src/validation/features/client-relationships-common.validation-messages.ts +31 -15
- package/src/validation/features/client-relationships-income-sources.validation-messages.ts +22 -4
- package/src/validation/features/client-relationships-owners.validation-messages.ts +23 -4
- package/src/validation/features/data-filters.validation-messages.ts +8 -2
- package/src/validation/features/filing-categories.validation-messages.ts +8 -2
- package/src/validation/features/income-accounts.validation-messages.ts +8 -2
- package/src/validation/features/roles-and-permissions.validation-messages.ts +10 -2
- package/src/validation/features/states.validation-messages.ts +14 -2
- package/src/validation/features/template-assignments.validation-messages.ts +21 -2
- package/src/validation/features/template-information.validation-messages.ts +47 -2
- package/src/validation/features/template-recurrence-settings.validation-messages.ts +38 -4
- package/src/validation/features/template-states.validation-messages.ts +14 -2
- package/src/validation/features/user-preferences.validation-messages.ts +9 -3
- package/src/validation/features/users.validation-messages.ts +18 -4
- package/src/validation/validation-message.formatter.ts +4 -6
- package/src/validation/validation-message.types.ts +36 -0
|
@@ -1,72 +1,91 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineValidationFeatureMessages, VALIDATION_SEVERITY } from '../validation-message.types';
|
|
2
|
+
|
|
3
|
+
export const CLIENT_RELATIONSHIPS_OWNERS = defineValidationFeatureMessages({
|
|
2
4
|
PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
|
|
5
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
3
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.`,
|
|
4
7
|
affectedFields: ['relationshipType', 'filingStatus'],
|
|
5
8
|
},
|
|
6
9
|
MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
|
|
10
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
7
11
|
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
12
|
affectedFields: ['endingDate'],
|
|
9
13
|
},
|
|
10
14
|
MULTIPLE_PARENT_RELATIONSHIPS_SAME_TIMEFRAME: {
|
|
11
|
-
|
|
15
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
16
|
+
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
17
|
params: ['parentRelatedClientName', 'relationshipStarting'],
|
|
13
18
|
affectedFields: ['relationshipType', 'startingDate'],
|
|
14
19
|
},
|
|
15
20
|
PARENT_CANNOT_BE_SUB_ENTITY: {
|
|
16
|
-
|
|
21
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
22
|
+
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
23
|
params: ['relatedClientName', 'clientName'],
|
|
18
24
|
affectedFields: ['relatedClient', 'relationshipType', 'startingDate', 'endingDate'],
|
|
19
25
|
},
|
|
20
26
|
PARENT_ENTITY_TYPE_MISMATCH: {
|
|
27
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
21
28
|
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
29
|
affectedFields: ['relatedClient', 'relationshipType'],
|
|
23
30
|
},
|
|
24
31
|
PARENT_PROFIT_PERCENTAGE_MUST_BE_100: {
|
|
32
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
25
33
|
message: `A parent must own a profit percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
|
|
26
34
|
affectedFields: ['profit', 'relationshipType'],
|
|
27
35
|
},
|
|
28
36
|
PARENT_LOSS_PERCENTAGE_MUST_BE_100: {
|
|
37
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
29
38
|
message: `A parent must own a loss percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
|
|
30
39
|
affectedFields: ['loss', 'relationshipType'],
|
|
31
40
|
},
|
|
32
41
|
PARENT_CAPITAL_PERCENTAGE_MUST_BE_100: {
|
|
42
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
33
43
|
message: `A parent must own a capital percentage of 100%. Please update the percentage to 100% or change the relationship type.`,
|
|
34
44
|
affectedFields: ['capital', 'relationshipType'],
|
|
35
45
|
},
|
|
36
46
|
SHAREHOLDER_K1_PROFIT_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
47
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
37
48
|
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
49
|
affectedFields: ['profit', 'k1Applicable'],
|
|
39
50
|
},
|
|
40
51
|
SHAREHOLDER_K1_LOSS_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
52
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
41
53
|
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
54
|
affectedFields: ['loss', 'k1Applicable'],
|
|
43
55
|
},
|
|
44
56
|
SHAREHOLDER_K1_CAPITAL_PERCENTAGE_MUST_BE_GREATER_THAN_0: {
|
|
57
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
45
58
|
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
59
|
affectedFields: ['capital', 'k1Applicable'],
|
|
47
60
|
},
|
|
48
61
|
SHAREHOLDER_NO_K1_PROFIT_PERCENTAGE_MUST_BE_0: {
|
|
62
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
49
63
|
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
64
|
affectedFields: ['profit', 'k1Applicable'],
|
|
51
65
|
},
|
|
52
66
|
SHAREHOLDER_NO_K1_LOSS_PERCENTAGE_MUST_BE_0: {
|
|
67
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
53
68
|
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
69
|
affectedFields: ['loss', 'k1Applicable'],
|
|
55
70
|
},
|
|
56
71
|
SHAREHOLDER_NO_K1_CAPITAL_PERCENTAGE_MUST_BE_0: {
|
|
72
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
57
73
|
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
74
|
affectedFields: ['capital', 'k1Applicable'],
|
|
59
75
|
},
|
|
60
76
|
TOTAL_PROFIT_PERCENTAGE_EXCEEDS_100: {
|
|
77
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
61
78
|
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
79
|
affectedFields: ['profit', 'startingDate', 'endingDate'],
|
|
63
80
|
},
|
|
64
81
|
TOTAL_LOSS_PERCENTAGE_EXCEEDS_100: {
|
|
82
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
65
83
|
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
84
|
affectedFields: ['loss', 'startingDate', 'endingDate'],
|
|
67
85
|
},
|
|
68
86
|
TOTAL_CAPITAL_PERCENTAGE_EXCEEDS_100: {
|
|
87
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
69
88
|
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
89
|
affectedFields: ['capital', 'startingDate', 'endingDate'],
|
|
71
90
|
},
|
|
72
|
-
}
|
|
91
|
+
});
|
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineValidationFeatureMessages, VALIDATION_SEVERITY } from '../validation-message.types';
|
|
2
|
+
|
|
3
|
+
export const DATA_FILTERS = defineValidationFeatureMessages({
|
|
2
4
|
MISSING_PAGE_SIZE: {
|
|
5
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
3
6
|
message: `Request is invalid, 'pageSize' must exist if 'pageNumber' exists`,
|
|
4
7
|
affectedFields: ['pageSize'],
|
|
5
8
|
},
|
|
6
9
|
MISSING_PAGE_NUMBER: {
|
|
10
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
7
11
|
message: `Request is invalid, 'pageNumber' must exist if 'pageSize' exists`,
|
|
8
12
|
affectedFields: ['pageNumber'],
|
|
9
13
|
},
|
|
10
14
|
MISSING_SORT_BY: {
|
|
15
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
11
16
|
message: `Request is invalid, 'sortBy' must exist if 'sortType' exists`,
|
|
12
17
|
affectedFields: ['sortBy'],
|
|
13
18
|
},
|
|
14
19
|
MISSING_SORT_TYPE: {
|
|
20
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
15
21
|
message: `Request is invalid, 'sortType' must exist if 'sortBy' exists`,
|
|
16
22
|
affectedFields: ['sortType'],
|
|
17
23
|
},
|
|
18
|
-
}
|
|
24
|
+
});
|
|
@@ -1,20 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineValidationFeatureMessages, VALIDATION_SEVERITY } from '../validation-message.types';
|
|
2
|
+
|
|
3
|
+
export const FILING_CATEGORIES = defineValidationFeatureMessages({
|
|
2
4
|
INVALID_REQUEST: {
|
|
5
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
3
6
|
message: 'Missing filing category id in request',
|
|
4
7
|
affectedFields: [],
|
|
5
8
|
},
|
|
6
9
|
ID_DOES_NOT_EXIST: {
|
|
10
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
7
11
|
message: `Filing category does not exist`,
|
|
8
12
|
params: ['id'],
|
|
9
13
|
affectedFields: ['filingCategoryId'],
|
|
10
14
|
},
|
|
11
15
|
NAME_ALREADY_EXISTS: {
|
|
16
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
12
17
|
message: `Filing category with the same name '{name}' already exists`,
|
|
13
18
|
params: ['name'],
|
|
14
19
|
affectedFields: ['filingCategory'],
|
|
15
20
|
},
|
|
16
21
|
OPTION_IN_USE: {
|
|
22
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
17
23
|
message: `This option is currently in use and cannot be deleted.`,
|
|
18
24
|
affectedFields: [],
|
|
19
25
|
},
|
|
20
|
-
}
|
|
26
|
+
});
|
|
@@ -1,19 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineValidationFeatureMessages, VALIDATION_SEVERITY } from '../validation-message.types';
|
|
2
|
+
|
|
3
|
+
export const INCOME_ACCOUNTS = defineValidationFeatureMessages({
|
|
2
4
|
NAME_REQUIRED: {
|
|
5
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
3
6
|
message: 'Income account name is required',
|
|
4
7
|
affectedFields: ['name'],
|
|
5
8
|
},
|
|
6
9
|
NAME_ALREADY_EXISTS: {
|
|
10
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
7
11
|
message: "Income account with the name '{name}' already exists",
|
|
8
12
|
params: ['name'],
|
|
9
13
|
affectedFields: ['name'],
|
|
10
14
|
},
|
|
11
15
|
OPTION_IN_USE: {
|
|
16
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
12
17
|
message: 'This option is currently in use and cannot be deleted',
|
|
13
18
|
affectedFields: [],
|
|
14
19
|
},
|
|
15
20
|
INCOME_ACCOUNT_NOT_FOUND: {
|
|
21
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
16
22
|
message: 'Income account not found',
|
|
17
23
|
affectedFields: [],
|
|
18
24
|
},
|
|
19
|
-
}
|
|
25
|
+
});
|
|
@@ -1,31 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineValidationFeatureMessages, VALIDATION_SEVERITY } from '../validation-message.types';
|
|
2
|
+
|
|
3
|
+
export const ROLES_AND_PERMISSIONS = defineValidationFeatureMessages({
|
|
2
4
|
ROLE_ALREADY_EXISTS: {
|
|
5
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
3
6
|
message: `Role with name '{name}' already exists`,
|
|
4
7
|
params: ['name'],
|
|
5
8
|
affectedFields: ['name'],
|
|
6
9
|
},
|
|
7
10
|
PERMISSION_ALREADY_EXISTS: {
|
|
11
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
8
12
|
message: `Permission with name '{name}' already exists`,
|
|
9
13
|
params: ['name'],
|
|
10
14
|
affectedFields: ['name'],
|
|
11
15
|
},
|
|
12
16
|
PERMISSIONS_DO_NOT_EXIST: {
|
|
17
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
13
18
|
message: `Permissions do not exist`,
|
|
14
19
|
params: ['ids'],
|
|
15
20
|
affectedFields: ['permissionIds'],
|
|
16
21
|
},
|
|
17
22
|
ROLE_DOES_NOT_EXIST: {
|
|
23
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
18
24
|
message: `Role does not exist`,
|
|
19
25
|
params: ['roleId'],
|
|
20
26
|
},
|
|
21
27
|
PERMISSION_DOES_NOT_EXIST: {
|
|
28
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
22
29
|
message: `Permission does not exist`,
|
|
23
30
|
params: ['permissionId'],
|
|
24
31
|
affectedFields: ['permissionIds'],
|
|
25
32
|
},
|
|
26
33
|
ROLE_HAS_ASSIGNED_USERS: {
|
|
34
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
27
35
|
message: `Cannot delete role with name '{roleName}' because it has users assigned to it`,
|
|
28
36
|
params: ['roleName'],
|
|
29
37
|
affectedFields: [],
|
|
30
38
|
},
|
|
31
|
-
}
|
|
39
|
+
});
|
|
@@ -1,48 +1,60 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineValidationFeatureMessages, VALIDATION_SEVERITY } from '../validation-message.types';
|
|
2
|
+
|
|
3
|
+
export const STATES = defineValidationFeatureMessages({
|
|
2
4
|
INVALID_REQUEST: {
|
|
5
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
3
6
|
message: 'Missing state id in request',
|
|
4
7
|
affectedFields: [],
|
|
5
8
|
},
|
|
6
9
|
ID_DOES_NOT_EXIST: {
|
|
10
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
7
11
|
message: `State does not exist`,
|
|
8
12
|
params: ['id'],
|
|
9
13
|
affectedFields: ['stateId'],
|
|
10
14
|
},
|
|
11
15
|
NAME_ALREADY_EXISTS: {
|
|
16
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
12
17
|
message: `State with the same name '{name}' already exists`,
|
|
13
18
|
params: ['name'],
|
|
14
19
|
affectedFields: ['name'],
|
|
15
20
|
},
|
|
16
21
|
STATE_TYPE_ID_DOES_NOT_EXIST: {
|
|
22
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
17
23
|
message: `State type does not exist`,
|
|
18
24
|
params: ['id'],
|
|
19
25
|
affectedFields: ['stateType'],
|
|
20
26
|
},
|
|
21
27
|
IS_PARENT_OF_OTHER_STATES: {
|
|
28
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
22
29
|
message: `This option is currently in use and cannot be deleted.`,
|
|
23
30
|
affectedFields: [],
|
|
24
31
|
},
|
|
25
32
|
PARENT_ID_DOES_NOT_EXIST: {
|
|
33
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
26
34
|
message: `Parent state does not exist`,
|
|
27
35
|
params: ['id'],
|
|
28
36
|
affectedFields: ['parent'],
|
|
29
37
|
},
|
|
30
38
|
NATION_PARENT_TYPE_NOT_ALLOWED: {
|
|
39
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
31
40
|
message: `Nation cannot have associated parent.`,
|
|
32
41
|
affectedFields: ['parent'],
|
|
33
42
|
},
|
|
34
43
|
STATE_PARENT_TYPE_NOT_ALLOWED: {
|
|
44
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
35
45
|
message: `There must be a nation associated with the state '{stateName}'. Please select a nation to proceed.`,
|
|
36
46
|
params: ['stateName'],
|
|
37
47
|
affectedFields: ['parent'],
|
|
38
48
|
},
|
|
39
49
|
CITY_PARENT_TYPE_NOT_ALLOWED: {
|
|
50
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
40
51
|
message: `There must be a state associated with the city '{cityName}'. Please select a state to proceed.`,
|
|
41
52
|
params: ['cityName'],
|
|
42
53
|
affectedFields: ['parent'],
|
|
43
54
|
},
|
|
44
55
|
OPTION_IN_USE: {
|
|
56
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
45
57
|
message: `This option is currently in use and cannot be deleted.`,
|
|
46
58
|
affectedFields: [],
|
|
47
59
|
},
|
|
48
|
-
}
|
|
60
|
+
});
|
|
@@ -1,72 +1,91 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineValidationFeatureMessages, VALIDATION_SEVERITY } from '../validation-message.types';
|
|
2
|
+
|
|
3
|
+
export const TEMPLATE_ASSIGNMENTS = defineValidationFeatureMessages({
|
|
2
4
|
NAME_REQUIRED: {
|
|
5
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
3
6
|
message: 'Assignment name is required',
|
|
4
7
|
affectedFields: ['name'],
|
|
5
8
|
},
|
|
6
9
|
NAME_ALREADY_EXISTS: {
|
|
10
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
7
11
|
message: 'This name is already in use on this template. Please enter a different name',
|
|
8
12
|
affectedFields: ['name'],
|
|
9
13
|
},
|
|
10
14
|
DEFAULT_STAFF_REQUIRED: {
|
|
15
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
11
16
|
message: 'Default staff is required',
|
|
12
17
|
affectedFields: ['defaultStaff'],
|
|
13
18
|
},
|
|
14
19
|
DEFAULT_STAFF_NOT_ALLOWED_FOR_TODO: {
|
|
20
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
15
21
|
message: "Default staff cannot be set when the assignment type is 'To do'",
|
|
16
22
|
affectedFields: ['defaultStaff'],
|
|
17
23
|
},
|
|
18
24
|
INVALID_STAFF: {
|
|
25
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
19
26
|
message: 'Invalid staff member',
|
|
20
27
|
affectedFields: ['defaultStaff'],
|
|
21
28
|
},
|
|
22
29
|
ASSIGNMENT_TYPE_REQUIRED: {
|
|
30
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
23
31
|
message: 'Assignment type is required',
|
|
24
32
|
affectedFields: ['assignmentType'],
|
|
25
33
|
},
|
|
26
34
|
INVALID_ASSIGNMENT_TYPE: {
|
|
35
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
27
36
|
message: 'Invalid assignment type',
|
|
28
37
|
affectedFields: ['assignmentType'],
|
|
29
38
|
},
|
|
30
39
|
WORKFLOW_MUST_BE_REQUIRED: {
|
|
40
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
31
41
|
message: "A workflow assignment must always be required. Please check the 'Required' checkbox to continue",
|
|
32
42
|
affectedFields: ['isRequired'],
|
|
33
43
|
},
|
|
34
44
|
WORKFLOW_CANNOT_BE_DELETED: {
|
|
45
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
35
46
|
message: "A workflow assignment cannot be deleted. Please uncheck the 'Can be deleted' checkbox to continue",
|
|
36
47
|
affectedFields: ['canBeDeleted'],
|
|
37
48
|
},
|
|
38
49
|
ORDER_REQUIRED: {
|
|
50
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
39
51
|
message: 'Order is required for workflow assignments',
|
|
40
52
|
affectedFields: ['order'],
|
|
41
53
|
},
|
|
42
54
|
ORDER_ALREADY_EXISTS: {
|
|
55
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
43
56
|
message:
|
|
44
57
|
'This order number is already in use on this template. Please enter a different number to set the workflow order',
|
|
45
58
|
affectedFields: ['order'],
|
|
46
59
|
},
|
|
47
60
|
TEMPLATE_NOT_FOUND: {
|
|
61
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
48
62
|
message: 'Template not found',
|
|
49
63
|
affectedFields: [],
|
|
50
64
|
},
|
|
51
65
|
ASSIGNMENT_NOT_FOUND: {
|
|
66
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
52
67
|
message: 'Assignment not found',
|
|
53
68
|
affectedFields: [],
|
|
54
69
|
},
|
|
55
70
|
CANNOT_EDIT_IN_USE: {
|
|
71
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
56
72
|
message: 'This assignment is already being used by a client, and cannot be edited',
|
|
57
73
|
affectedFields: [],
|
|
58
74
|
},
|
|
59
75
|
CANNOT_DELETE_IN_USE: {
|
|
76
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
60
77
|
message: 'This assignment is already being used by a client, and cannot be deleted',
|
|
61
78
|
affectedFields: [],
|
|
62
79
|
},
|
|
63
80
|
INVALID_FILING_CATEGORY: {
|
|
81
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
64
82
|
message: 'Invalid filing category',
|
|
65
83
|
affectedFields: ['filingCategoryId'],
|
|
66
84
|
},
|
|
67
85
|
ASSIGNMENTS_ORDER_NOT_CONSECUTIVE: {
|
|
86
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
68
87
|
message: 'Assignment orders must be consecutive starting from 1. Expected orders: {expected}',
|
|
69
88
|
params: ['expected'],
|
|
70
89
|
affectedFields: ['assignments'],
|
|
71
90
|
},
|
|
72
|
-
}
|
|
91
|
+
});
|
|
@@ -1,187 +1,232 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineValidationFeatureMessages, VALIDATION_SEVERITY } from '../validation-message.types';
|
|
2
|
+
|
|
3
|
+
export const TEMPLATE_INFORMATION = defineValidationFeatureMessages({
|
|
2
4
|
NAME_REQUIRED: {
|
|
5
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
3
6
|
message: 'Template name is required',
|
|
4
7
|
affectedFields: ['name'],
|
|
5
8
|
},
|
|
6
9
|
NAME_ALREADY_EXISTS: {
|
|
10
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
7
11
|
message: "Template with the name '{name}' already exists",
|
|
8
12
|
params: ['name'],
|
|
9
13
|
affectedFields: ['name'],
|
|
10
14
|
},
|
|
11
15
|
TYPE_REQUIRED: {
|
|
16
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
12
17
|
message: 'Template type is required',
|
|
13
18
|
affectedFields: ['type'],
|
|
14
19
|
},
|
|
15
20
|
INVALID_TYPE: {
|
|
21
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
16
22
|
message: 'Invalid template type',
|
|
17
23
|
affectedFields: ['type'],
|
|
18
24
|
},
|
|
19
25
|
DEFAULT_STAFF_REQUIRED: {
|
|
26
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
20
27
|
message: 'Default staff is required',
|
|
21
28
|
affectedFields: ['defaultStaff'],
|
|
22
29
|
},
|
|
23
30
|
INVALID_STAFF: {
|
|
31
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
24
32
|
message: 'Invalid staff member',
|
|
25
33
|
affectedFields: ['defaultStaff'],
|
|
26
34
|
},
|
|
27
35
|
INCOME_ACCOUNT_REQUIRED: {
|
|
36
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
28
37
|
message: 'Income account is required',
|
|
29
38
|
affectedFields: ['incomeAccount'],
|
|
30
39
|
},
|
|
31
40
|
INVALID_INCOME_ACCOUNT: {
|
|
41
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
32
42
|
message: 'Invalid income account',
|
|
33
43
|
affectedFields: ['incomeAccount'],
|
|
34
44
|
},
|
|
35
45
|
AMOUNT_REQUIRED: {
|
|
46
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
36
47
|
message: 'Amount is required when separately charged',
|
|
37
48
|
affectedFields: ['amount'],
|
|
38
49
|
},
|
|
39
50
|
COMMISSION_RATE_REQUIRED: {
|
|
51
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
40
52
|
message: 'Commission rate is required when subject to commission',
|
|
41
53
|
affectedFields: ['commissionRate'],
|
|
42
54
|
},
|
|
43
55
|
COMMISSION_RATE_OUT_OF_RANGE: {
|
|
56
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
44
57
|
message: 'Commission rate must be a percentage between 0 and 100. Please adjust the percent before saving.',
|
|
45
58
|
affectedFields: ['commissionRate'],
|
|
46
59
|
},
|
|
47
60
|
SEPARATELY_CHARGED_MUST_BE_YES_FOR_BILLING: {
|
|
61
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
48
62
|
message: "Separately charged must be 'Yes' for Billing templates",
|
|
49
63
|
affectedFields: ['isSeparatelyCharged'],
|
|
50
64
|
},
|
|
51
65
|
SEPARATELY_CHARGED_MUST_BE_NO_FOR_PAYMENT: {
|
|
66
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
52
67
|
message: "Separately charged must be 'No' for Payment templates",
|
|
53
68
|
affectedFields: ['isSeparatelyCharged'],
|
|
54
69
|
},
|
|
55
70
|
SUBJECT_TO_COMMISSION_REQUIRES_SEPARATELY_CHARGED: {
|
|
71
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
56
72
|
message: "Subject to commission can only be 'Yes' when separately charged is 'Yes'",
|
|
57
73
|
affectedFields: ['isSubjectToCommission'],
|
|
58
74
|
},
|
|
59
75
|
SUBJECT_TO_COMMISSION_MUST_BE_YES_FOR_BILLING: {
|
|
76
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
60
77
|
message: "Subject to commission must be 'Yes' for Billing templates",
|
|
61
78
|
affectedFields: ['isSubjectToCommission'],
|
|
62
79
|
},
|
|
63
80
|
ENTITY_TYPE_REQUIRED: {
|
|
81
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
64
82
|
message: 'At least one associated entity is required',
|
|
65
83
|
affectedFields: ['associatedEntities'],
|
|
66
84
|
},
|
|
67
85
|
INVALID_ENTITY_TYPE: {
|
|
86
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
68
87
|
message: 'Invalid entity type',
|
|
69
88
|
affectedFields: ['associatedEntities'],
|
|
70
89
|
},
|
|
71
90
|
INVALID_CLASSIFICATION: {
|
|
91
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
72
92
|
message: 'Invalid classification',
|
|
73
93
|
affectedFields: ['classification'],
|
|
74
94
|
},
|
|
75
95
|
INVALID_SETUP_TEMPLATE: {
|
|
96
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
76
97
|
message: 'Invalid associated setup template',
|
|
77
98
|
affectedFields: ['associatedSetupTemplate'],
|
|
78
99
|
},
|
|
79
100
|
FILING_TYPE_REQUIRED: {
|
|
101
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
80
102
|
message: 'Filing type is required',
|
|
81
103
|
affectedFields: ['filingTypeId'],
|
|
82
104
|
},
|
|
83
105
|
INVALID_FILING_TYPE: {
|
|
106
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
84
107
|
message: 'Invalid filing type',
|
|
85
108
|
affectedFields: ['filingTypeId'],
|
|
86
109
|
},
|
|
87
110
|
FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_STATE_SUB_FILINGS_EXIST: {
|
|
111
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
88
112
|
message:
|
|
89
113
|
"A filing template that has state sub-filings must be 'Income tax' filing type. Please select 'Income tax' or remove the associated state sub-filings before saving.",
|
|
90
114
|
affectedFields: ['filingTypeId'],
|
|
91
115
|
},
|
|
92
116
|
FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_SUB_ENTITY_FILINGS_EXIST: {
|
|
117
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
93
118
|
message:
|
|
94
119
|
"A filing template that has associated sub-entity filings must be 'Income tax' filing type. Please select 'Income tax' or remove the associated sub-entity filing before saving.",
|
|
95
120
|
affectedFields: ['filingTypeId'],
|
|
96
121
|
},
|
|
97
122
|
FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_TAX_PAYMENTS_EXIST: {
|
|
123
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
98
124
|
message:
|
|
99
125
|
"A filing template that has associated tax payments must be 'Income tax' filing type. Please select 'Income tax' or remove the associated tax payments before saving.",
|
|
100
126
|
affectedFields: ['filingTypeId'],
|
|
101
127
|
},
|
|
102
128
|
STATE_REQUIRED: {
|
|
129
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
103
130
|
message: 'State is required',
|
|
104
131
|
affectedFields: ['stateId'],
|
|
105
132
|
},
|
|
106
133
|
INVALID_STATE: {
|
|
134
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
107
135
|
message: 'Invalid state',
|
|
108
136
|
affectedFields: ['stateId'],
|
|
109
137
|
},
|
|
110
138
|
STATE_MISMATCH_WITH_ASSOCIATED_SUB_ENTITY_FILINGS: {
|
|
139
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
111
140
|
message:
|
|
112
141
|
'This template is linked to sub-entity filing templates that are set to {SubEntityTemplateState} state, which conflicts with the selected state. Please update the state before saving.',
|
|
113
142
|
params: ['SubEntityTemplateState'],
|
|
114
143
|
affectedFields: ['stateId'],
|
|
115
144
|
},
|
|
116
145
|
FILING_STATUS_REQUIRED: {
|
|
146
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
117
147
|
message: 'Sub/Parent status is required when filing type is Income tax',
|
|
118
148
|
affectedFields: ['filingStatusId'],
|
|
119
149
|
},
|
|
120
150
|
INVALID_FILING_STATUS: {
|
|
151
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
121
152
|
message: 'Invalid filing status',
|
|
122
153
|
affectedFields: ['filingStatusId'],
|
|
123
154
|
},
|
|
124
155
|
FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_STATE_SUB_FILINGS_EXIST: {
|
|
156
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
125
157
|
message:
|
|
126
158
|
'A filing template with state sub-filings cannot file under a parent. Please select Files separately or remove the associated state sub-filings before saving.',
|
|
127
159
|
affectedFields: ['filingStatusId'],
|
|
128
160
|
},
|
|
129
161
|
FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_SUB_ENTITY_FILINGS_EXIST: {
|
|
162
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
130
163
|
message:
|
|
131
164
|
'A filing template with sub entity filings cannot file under a parent. Please select Files separately or remove the associated sub entity filings before saving.',
|
|
132
165
|
affectedFields: ['filingStatusId'],
|
|
133
166
|
},
|
|
134
167
|
FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_TAX_PAYMENTS_EXIST: {
|
|
168
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
135
169
|
message:
|
|
136
170
|
'A filing template with tax payments cannot file under a parent. Please select Files separately or remove the associated tax payments before saving.',
|
|
137
171
|
affectedFields: ['filingStatusId'],
|
|
138
172
|
},
|
|
139
173
|
FILES_UNDER_REQUIRED: {
|
|
174
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
140
175
|
message: 'Files under is required when Sub/Parent status is "Files under parent"',
|
|
141
176
|
affectedFields: ['filesUnder'],
|
|
142
177
|
},
|
|
143
178
|
INVALID_FILES_UNDER: {
|
|
179
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
144
180
|
message: 'The selected parent filing does not exist',
|
|
145
181
|
affectedFields: ['filesUnder'],
|
|
146
182
|
},
|
|
147
183
|
FILES_UNDER_MUST_BE_FILING: {
|
|
184
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
148
185
|
message: 'The selected parent must be a Filing template',
|
|
149
186
|
affectedFields: ['filesUnder'],
|
|
150
187
|
},
|
|
151
188
|
FILES_UNDER_MUST_BE_INCOME_TAX: {
|
|
189
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
152
190
|
message:
|
|
153
191
|
"A parent filing must be an 'Income tax' filing. {parentName} is set to {parentFilingType}. Please select a parent filing with 'Filing type' set to 'Income tax'.",
|
|
154
192
|
params: ['parentName', 'parentFilingType'],
|
|
155
193
|
affectedFields: ['filesUnder'],
|
|
156
194
|
},
|
|
157
195
|
FILES_UNDER_MUST_HAVE_ANNUAL_RECURRENCE: {
|
|
196
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
158
197
|
message:
|
|
159
198
|
'A parent filing must be on an annual recurrence. {parentName} does not have an annual recurrence setup. Please add an annual recurrence for {parentName}, or select a different parent filing.',
|
|
160
199
|
params: ['parentName'],
|
|
161
200
|
affectedFields: ['filesUnder'],
|
|
162
201
|
},
|
|
163
202
|
TAX_PAYMENT_FILING_REQUIRED: {
|
|
203
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
164
204
|
message: 'Tax payment filing is required',
|
|
165
205
|
affectedFields: ['taxPaymentFilingId'],
|
|
166
206
|
},
|
|
167
207
|
INVALID_TAX_PAYMENT_FILING: {
|
|
208
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
168
209
|
message: 'The selected tax payment filing does not exist',
|
|
169
210
|
affectedFields: ['taxPaymentFilingId'],
|
|
170
211
|
},
|
|
171
212
|
TAX_PAYMENT_FILING_MUST_BE_FILING_TYPE: {
|
|
213
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
172
214
|
message: 'The selected tax payment filing must be a Filing type template',
|
|
173
215
|
affectedFields: ['taxPaymentFilingId'],
|
|
174
216
|
},
|
|
175
217
|
SETUP_TEMPLATE_MUST_BE_SETUP_TYPE: {
|
|
218
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
176
219
|
message: 'The selected associated setup template must be a Setup type template',
|
|
177
220
|
affectedFields: ['associatedSetupTemplateId'],
|
|
178
221
|
},
|
|
179
222
|
OPTION_IN_USE: {
|
|
223
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
180
224
|
message: 'This template is currently in use and cannot be deleted',
|
|
181
225
|
affectedFields: [],
|
|
182
226
|
},
|
|
183
227
|
TEMPLATE_NOT_FOUND: {
|
|
228
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
184
229
|
message: 'Template not found',
|
|
185
230
|
affectedFields: [],
|
|
186
231
|
},
|
|
187
|
-
}
|
|
232
|
+
});
|