@forwardslashns/taskit-validation-messages 1.10.22 → 1.10.23
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/account-categories.validation-messages.js +1 -1
- package/dist/validation/features/business-activities.validation-messages.js +2 -2
- package/dist/validation/features/client-records-addresses.validation-messages.js +2 -2
- package/dist/validation/features/filing-categories.validation-messages.js +1 -1
- package/dist/validation/features/template-assignments.validation-messages.js +1 -1
- package/dist/validation/features/template-information.validation-messages.js +21 -21
- package/dist/validation/features/template-recurrence-settings.validation-messages.js +1 -1
- package/dist/validation/features/template-states.validation-messages.js +4 -4
- package/package.json +1 -1
- package/src/validation/features/account-categories.validation-messages.ts +1 -1
- package/src/validation/features/business-activities.validation-messages.ts +2 -2
- package/src/validation/features/client-records-addresses.validation-messages.ts +2 -2
- package/src/validation/features/filing-categories.validation-messages.ts +1 -1
- package/src/validation/features/template-assignments.validation-messages.ts +1 -1
- package/src/validation/features/template-information.validation-messages.ts +21 -21
- package/src/validation/features/template-recurrence-settings.validation-messages.ts +1 -1
- package/src/validation/features/template-states.validation-messages.ts +4 -4
|
@@ -12,7 +12,7 @@ exports.ACCOUNT_CATEGORIES = (0, validation_message_types_1.defineValidationFeat
|
|
|
12
12
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
13
13
|
message: `Account category does not exist`,
|
|
14
14
|
params: ['id'],
|
|
15
|
-
affectedFields: ['
|
|
15
|
+
affectedFields: ['accountCategory'],
|
|
16
16
|
},
|
|
17
17
|
NAME_ALREADY_EXISTS: {
|
|
18
18
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
@@ -12,13 +12,13 @@ exports.BUSINESS_ACTIVITIES = (0, validation_message_types_1.defineValidationFea
|
|
|
12
12
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
13
13
|
message: `Business activity does not exist.`,
|
|
14
14
|
params: ['id'],
|
|
15
|
-
affectedFields: ['
|
|
15
|
+
affectedFields: ['businessActivity'],
|
|
16
16
|
},
|
|
17
17
|
NAME_ALREADY_EXISTS: {
|
|
18
18
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
19
19
|
message: `Business activity with the same name '{name}' already exists.`,
|
|
20
20
|
params: ['name'],
|
|
21
|
-
affectedFields: ['
|
|
21
|
+
affectedFields: ['businessActivity'],
|
|
22
22
|
},
|
|
23
23
|
OPTION_IN_USE: {
|
|
24
24
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
@@ -37,13 +37,13 @@ exports.CLIENT_RECORDS_ADDRESSES = (0, validation_message_types_1.defineValidati
|
|
|
37
37
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
38
38
|
message: `Contact roles do not exist`,
|
|
39
39
|
params: ['ids'],
|
|
40
|
-
affectedFields: ['
|
|
40
|
+
affectedFields: ['contact'],
|
|
41
41
|
},
|
|
42
42
|
CONTACT_TYPES_NOT_FOUND: {
|
|
43
43
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
44
44
|
message: `Contact types do not exist`,
|
|
45
45
|
params: ['ids'],
|
|
46
|
-
affectedFields: ['
|
|
46
|
+
affectedFields: ['type'],
|
|
47
47
|
},
|
|
48
48
|
LEGAL_ADDRESS_MUST_BE_PROVIDED: {
|
|
49
49
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
@@ -12,7 +12,7 @@ exports.FILING_CATEGORIES = (0, validation_message_types_1.defineValidationFeatu
|
|
|
12
12
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
13
13
|
message: `Filing category does not exist`,
|
|
14
14
|
params: ['id'],
|
|
15
|
-
affectedFields: ['
|
|
15
|
+
affectedFields: ['filingCategory'],
|
|
16
16
|
},
|
|
17
17
|
NAME_ALREADY_EXISTS: {
|
|
18
18
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
@@ -41,7 +41,7 @@ exports.TEMPLATE_ASSIGNMENTS = (0, validation_message_types_1.defineValidationFe
|
|
|
41
41
|
WORKFLOW_MUST_BE_REQUIRED: {
|
|
42
42
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
43
43
|
message: "A workflow assignment must always be required. Please check the 'Required' checkbox to continue",
|
|
44
|
-
affectedFields: ['
|
|
44
|
+
affectedFields: ['required'],
|
|
45
45
|
},
|
|
46
46
|
WORKFLOW_CANNOT_BE_DELETED: {
|
|
47
47
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
@@ -62,22 +62,22 @@ exports.TEMPLATE_INFORMATION = (0, validation_message_types_1.defineValidationFe
|
|
|
62
62
|
SEPARATELY_CHARGED_MUST_BE_YES_FOR_BILLING: {
|
|
63
63
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
64
64
|
message: "Separately charged must be 'Yes' for Billing templates",
|
|
65
|
-
affectedFields: ['
|
|
65
|
+
affectedFields: ['separatelyCharged'],
|
|
66
66
|
},
|
|
67
67
|
SEPARATELY_CHARGED_MUST_BE_NO_FOR_PAYMENT: {
|
|
68
68
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
69
69
|
message: "Separately charged must be 'No' for Payment templates",
|
|
70
|
-
affectedFields: ['
|
|
70
|
+
affectedFields: ['separatelyCharged'],
|
|
71
71
|
},
|
|
72
72
|
SUBJECT_TO_COMMISSION_REQUIRES_SEPARATELY_CHARGED: {
|
|
73
73
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
74
74
|
message: "Subject to commission can only be 'Yes' when separately charged is 'Yes'",
|
|
75
|
-
affectedFields: ['
|
|
75
|
+
affectedFields: ['subjectToCommission'],
|
|
76
76
|
},
|
|
77
77
|
SUBJECT_TO_COMMISSION_MUST_BE_YES_FOR_BILLING: {
|
|
78
78
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
79
79
|
message: "Subject to commission must be 'Yes' for Billing templates",
|
|
80
|
-
affectedFields: ['
|
|
80
|
+
affectedFields: ['subjectToCommission'],
|
|
81
81
|
},
|
|
82
82
|
ENTITY_TYPE_REQUIRED: {
|
|
83
83
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
@@ -102,68 +102,68 @@ exports.TEMPLATE_INFORMATION = (0, validation_message_types_1.defineValidationFe
|
|
|
102
102
|
FILING_TYPE_REQUIRED: {
|
|
103
103
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
104
104
|
message: 'Filing type is required',
|
|
105
|
-
affectedFields: ['
|
|
105
|
+
affectedFields: ['filingType'],
|
|
106
106
|
},
|
|
107
107
|
INVALID_FILING_TYPE: {
|
|
108
108
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
109
109
|
message: 'Invalid filing type',
|
|
110
|
-
affectedFields: ['
|
|
110
|
+
affectedFields: ['filingType'],
|
|
111
111
|
},
|
|
112
112
|
FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_STATE_SUB_FILINGS_EXIST: {
|
|
113
113
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
114
114
|
message: "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.",
|
|
115
|
-
affectedFields: ['
|
|
115
|
+
affectedFields: ['filingType'],
|
|
116
116
|
},
|
|
117
117
|
FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_SUB_ENTITY_FILINGS_EXIST: {
|
|
118
118
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
119
119
|
message: "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.",
|
|
120
|
-
affectedFields: ['
|
|
120
|
+
affectedFields: ['filingType'],
|
|
121
121
|
},
|
|
122
122
|
FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_TAX_PAYMENTS_EXIST: {
|
|
123
123
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
124
124
|
message: "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.",
|
|
125
|
-
affectedFields: ['
|
|
125
|
+
affectedFields: ['filingType'],
|
|
126
126
|
},
|
|
127
127
|
STATE_REQUIRED: {
|
|
128
128
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
129
129
|
message: 'State is required',
|
|
130
|
-
affectedFields: ['
|
|
130
|
+
affectedFields: ['state'],
|
|
131
131
|
},
|
|
132
132
|
INVALID_STATE: {
|
|
133
133
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
134
134
|
message: 'Invalid state',
|
|
135
|
-
affectedFields: ['
|
|
135
|
+
affectedFields: ['state'],
|
|
136
136
|
},
|
|
137
137
|
STATE_MISMATCH_WITH_ASSOCIATED_SUB_ENTITY_FILINGS: {
|
|
138
138
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
139
139
|
message: '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.',
|
|
140
140
|
params: ['SubEntityTemplateState'],
|
|
141
|
-
affectedFields: ['
|
|
141
|
+
affectedFields: ['state'],
|
|
142
142
|
},
|
|
143
143
|
FILING_STATUS_REQUIRED: {
|
|
144
144
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
145
145
|
message: 'Sub/Parent status is required when filing type is Income tax',
|
|
146
|
-
affectedFields: ['
|
|
146
|
+
affectedFields: ['subParentStatus'],
|
|
147
147
|
},
|
|
148
148
|
INVALID_FILING_STATUS: {
|
|
149
149
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
150
150
|
message: 'Invalid filing status',
|
|
151
|
-
affectedFields: ['
|
|
151
|
+
affectedFields: ['subParentStatus'],
|
|
152
152
|
},
|
|
153
153
|
FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_STATE_SUB_FILINGS_EXIST: {
|
|
154
154
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
155
155
|
message: '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.',
|
|
156
|
-
affectedFields: ['
|
|
156
|
+
affectedFields: ['subParentStatus'],
|
|
157
157
|
},
|
|
158
158
|
FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_SUB_ENTITY_FILINGS_EXIST: {
|
|
159
159
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
160
160
|
message: '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.',
|
|
161
|
-
affectedFields: ['
|
|
161
|
+
affectedFields: ['subParentStatus'],
|
|
162
162
|
},
|
|
163
163
|
FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_TAX_PAYMENTS_EXIST: {
|
|
164
164
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
165
165
|
message: 'A filing template with tax payments cannot file under a parent. Please select Files separately or remove the associated tax payments before saving.',
|
|
166
|
-
affectedFields: ['
|
|
166
|
+
affectedFields: ['subParentStatus'],
|
|
167
167
|
},
|
|
168
168
|
FILES_UNDER_REQUIRED: {
|
|
169
169
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
@@ -195,22 +195,22 @@ exports.TEMPLATE_INFORMATION = (0, validation_message_types_1.defineValidationFe
|
|
|
195
195
|
TAX_PAYMENT_FILING_REQUIRED: {
|
|
196
196
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
197
197
|
message: 'Tax payment filing is required',
|
|
198
|
-
affectedFields: ['
|
|
198
|
+
affectedFields: ['taxPaymentFiling'],
|
|
199
199
|
},
|
|
200
200
|
INVALID_TAX_PAYMENT_FILING: {
|
|
201
201
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
202
202
|
message: 'The selected tax payment filing does not exist',
|
|
203
|
-
affectedFields: ['
|
|
203
|
+
affectedFields: ['taxPaymentFiling'],
|
|
204
204
|
},
|
|
205
205
|
TAX_PAYMENT_FILING_MUST_BE_FILING_TYPE: {
|
|
206
206
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
207
207
|
message: 'The selected tax payment filing must be a Filing type template',
|
|
208
|
-
affectedFields: ['
|
|
208
|
+
affectedFields: ['taxPaymentFiling'],
|
|
209
209
|
},
|
|
210
210
|
SETUP_TEMPLATE_MUST_BE_SETUP_TYPE: {
|
|
211
211
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
212
212
|
message: 'The selected associated setup template must be a Setup type template',
|
|
213
|
-
affectedFields: ['
|
|
213
|
+
affectedFields: ['associatedSetupTemplate'],
|
|
214
214
|
},
|
|
215
215
|
OPTION_IN_USE: {
|
|
216
216
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
@@ -11,7 +11,7 @@ exports.TEMPLATE_RECURRENCE_SETTINGS = (0, validation_message_types_1.defineVali
|
|
|
11
11
|
RECURRENCE_FREQUENCY_REQUIRED: {
|
|
12
12
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
13
13
|
message: 'Recurrence frequency is required',
|
|
14
|
-
affectedFields: ['
|
|
14
|
+
affectedFields: ['recurrenceFrequencyId'],
|
|
15
15
|
},
|
|
16
16
|
RECURRENCE_FREQUENCY_NOT_FOUND: {
|
|
17
17
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
@@ -21,17 +21,17 @@ exports.TEMPLATE_STATES = (0, validation_message_types_1.defineValidationFeature
|
|
|
21
21
|
STATE_REQUIRED: {
|
|
22
22
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
23
23
|
message: 'State is required',
|
|
24
|
-
affectedFields: ['
|
|
24
|
+
affectedFields: ['state'],
|
|
25
25
|
},
|
|
26
26
|
INVALID_STATE: {
|
|
27
27
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
28
28
|
message: 'Invalid state',
|
|
29
|
-
affectedFields: ['
|
|
29
|
+
affectedFields: ['state'],
|
|
30
30
|
},
|
|
31
31
|
STATE_LOCKED_WHEN_IN_USE: {
|
|
32
32
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
33
33
|
message: 'The State field cannot be changed because this state is already applied to a client.',
|
|
34
|
-
affectedFields: ['
|
|
34
|
+
affectedFields: ['state'],
|
|
35
35
|
},
|
|
36
36
|
DATE_STOPPED_REQUIRED_WHEN_INACTIVE: {
|
|
37
37
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
@@ -41,7 +41,7 @@ exports.TEMPLATE_STATES = (0, validation_message_types_1.defineValidationFeature
|
|
|
41
41
|
IS_ACTIVE_REQUIRED: {
|
|
42
42
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
43
43
|
message: 'Status is required',
|
|
44
|
-
affectedFields: ['
|
|
44
|
+
affectedFields: ['active'],
|
|
45
45
|
},
|
|
46
46
|
IN_USE_CANNOT_DELETE: {
|
|
47
47
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ export const ACCOUNT_CATEGORIES = defineValidationFeatureMessages({
|
|
|
10
10
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
11
11
|
message: `Account category does not exist`,
|
|
12
12
|
params: ['id'],
|
|
13
|
-
affectedFields: ['
|
|
13
|
+
affectedFields: ['accountCategory'],
|
|
14
14
|
},
|
|
15
15
|
NAME_ALREADY_EXISTS: {
|
|
16
16
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
@@ -10,13 +10,13 @@ export const BUSINESS_ACTIVITIES = defineValidationFeatureMessages({
|
|
|
10
10
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
11
11
|
message: `Business activity does not exist.`,
|
|
12
12
|
params: ['id'],
|
|
13
|
-
affectedFields: ['
|
|
13
|
+
affectedFields: ['businessActivity'],
|
|
14
14
|
},
|
|
15
15
|
NAME_ALREADY_EXISTS: {
|
|
16
16
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
17
17
|
message: `Business activity with the same name '{name}' already exists.`,
|
|
18
18
|
params: ['name'],
|
|
19
|
-
affectedFields: ['
|
|
19
|
+
affectedFields: ['businessActivity'],
|
|
20
20
|
},
|
|
21
21
|
OPTION_IN_USE: {
|
|
22
22
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
@@ -35,13 +35,13 @@ export const CLIENT_RECORDS_ADDRESSES = defineValidationFeatureMessages({
|
|
|
35
35
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
36
36
|
message: `Contact roles do not exist`,
|
|
37
37
|
params: ['ids'],
|
|
38
|
-
affectedFields: ['
|
|
38
|
+
affectedFields: ['contact'],
|
|
39
39
|
},
|
|
40
40
|
CONTACT_TYPES_NOT_FOUND: {
|
|
41
41
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
42
42
|
message: `Contact types do not exist`,
|
|
43
43
|
params: ['ids'],
|
|
44
|
-
affectedFields: ['
|
|
44
|
+
affectedFields: ['type'],
|
|
45
45
|
},
|
|
46
46
|
LEGAL_ADDRESS_MUST_BE_PROVIDED: {
|
|
47
47
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
@@ -10,7 +10,7 @@ export const FILING_CATEGORIES = defineValidationFeatureMessages({
|
|
|
10
10
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
11
11
|
message: `Filing category does not exist`,
|
|
12
12
|
params: ['id'],
|
|
13
|
-
affectedFields: ['
|
|
13
|
+
affectedFields: ['filingCategory'],
|
|
14
14
|
},
|
|
15
15
|
NAME_ALREADY_EXISTS: {
|
|
16
16
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
@@ -39,7 +39,7 @@ export const TEMPLATE_ASSIGNMENTS = defineValidationFeatureMessages({
|
|
|
39
39
|
WORKFLOW_MUST_BE_REQUIRED: {
|
|
40
40
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
41
41
|
message: "A workflow assignment must always be required. Please check the 'Required' checkbox to continue",
|
|
42
|
-
affectedFields: ['
|
|
42
|
+
affectedFields: ['required'],
|
|
43
43
|
},
|
|
44
44
|
WORKFLOW_CANNOT_BE_DELETED: {
|
|
45
45
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
@@ -60,22 +60,22 @@ export const TEMPLATE_INFORMATION = defineValidationFeatureMessages({
|
|
|
60
60
|
SEPARATELY_CHARGED_MUST_BE_YES_FOR_BILLING: {
|
|
61
61
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
62
62
|
message: "Separately charged must be 'Yes' for Billing templates",
|
|
63
|
-
affectedFields: ['
|
|
63
|
+
affectedFields: ['separatelyCharged'],
|
|
64
64
|
},
|
|
65
65
|
SEPARATELY_CHARGED_MUST_BE_NO_FOR_PAYMENT: {
|
|
66
66
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
67
67
|
message: "Separately charged must be 'No' for Payment templates",
|
|
68
|
-
affectedFields: ['
|
|
68
|
+
affectedFields: ['separatelyCharged'],
|
|
69
69
|
},
|
|
70
70
|
SUBJECT_TO_COMMISSION_REQUIRES_SEPARATELY_CHARGED: {
|
|
71
71
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
72
72
|
message: "Subject to commission can only be 'Yes' when separately charged is 'Yes'",
|
|
73
|
-
affectedFields: ['
|
|
73
|
+
affectedFields: ['subjectToCommission'],
|
|
74
74
|
},
|
|
75
75
|
SUBJECT_TO_COMMISSION_MUST_BE_YES_FOR_BILLING: {
|
|
76
76
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
77
77
|
message: "Subject to commission must be 'Yes' for Billing templates",
|
|
78
|
-
affectedFields: ['
|
|
78
|
+
affectedFields: ['subjectToCommission'],
|
|
79
79
|
},
|
|
80
80
|
ENTITY_TYPE_REQUIRED: {
|
|
81
81
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
@@ -100,75 +100,75 @@ export const TEMPLATE_INFORMATION = defineValidationFeatureMessages({
|
|
|
100
100
|
FILING_TYPE_REQUIRED: {
|
|
101
101
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
102
102
|
message: 'Filing type is required',
|
|
103
|
-
affectedFields: ['
|
|
103
|
+
affectedFields: ['filingType'],
|
|
104
104
|
},
|
|
105
105
|
INVALID_FILING_TYPE: {
|
|
106
106
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
107
107
|
message: 'Invalid filing type',
|
|
108
|
-
affectedFields: ['
|
|
108
|
+
affectedFields: ['filingType'],
|
|
109
109
|
},
|
|
110
110
|
FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_STATE_SUB_FILINGS_EXIST: {
|
|
111
111
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
112
112
|
message:
|
|
113
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.",
|
|
114
|
-
affectedFields: ['
|
|
114
|
+
affectedFields: ['filingType'],
|
|
115
115
|
},
|
|
116
116
|
FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_SUB_ENTITY_FILINGS_EXIST: {
|
|
117
117
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
118
118
|
message:
|
|
119
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.",
|
|
120
|
-
affectedFields: ['
|
|
120
|
+
affectedFields: ['filingType'],
|
|
121
121
|
},
|
|
122
122
|
FILING_TYPE_MUST_BE_INCOME_TAX_WHEN_ASSOCIATED_TAX_PAYMENTS_EXIST: {
|
|
123
123
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
124
124
|
message:
|
|
125
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.",
|
|
126
|
-
affectedFields: ['
|
|
126
|
+
affectedFields: ['filingType'],
|
|
127
127
|
},
|
|
128
128
|
STATE_REQUIRED: {
|
|
129
129
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
130
130
|
message: 'State is required',
|
|
131
|
-
affectedFields: ['
|
|
131
|
+
affectedFields: ['state'],
|
|
132
132
|
},
|
|
133
133
|
INVALID_STATE: {
|
|
134
134
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
135
135
|
message: 'Invalid state',
|
|
136
|
-
affectedFields: ['
|
|
136
|
+
affectedFields: ['state'],
|
|
137
137
|
},
|
|
138
138
|
STATE_MISMATCH_WITH_ASSOCIATED_SUB_ENTITY_FILINGS: {
|
|
139
139
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
140
140
|
message:
|
|
141
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.',
|
|
142
142
|
params: ['SubEntityTemplateState'],
|
|
143
|
-
affectedFields: ['
|
|
143
|
+
affectedFields: ['state'],
|
|
144
144
|
},
|
|
145
145
|
FILING_STATUS_REQUIRED: {
|
|
146
146
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
147
147
|
message: 'Sub/Parent status is required when filing type is Income tax',
|
|
148
|
-
affectedFields: ['
|
|
148
|
+
affectedFields: ['subParentStatus'],
|
|
149
149
|
},
|
|
150
150
|
INVALID_FILING_STATUS: {
|
|
151
151
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
152
152
|
message: 'Invalid filing status',
|
|
153
|
-
affectedFields: ['
|
|
153
|
+
affectedFields: ['subParentStatus'],
|
|
154
154
|
},
|
|
155
155
|
FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_STATE_SUB_FILINGS_EXIST: {
|
|
156
156
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
157
157
|
message:
|
|
158
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.',
|
|
159
|
-
affectedFields: ['
|
|
159
|
+
affectedFields: ['subParentStatus'],
|
|
160
160
|
},
|
|
161
161
|
FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_SUB_ENTITY_FILINGS_EXIST: {
|
|
162
162
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
163
163
|
message:
|
|
164
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.',
|
|
165
|
-
affectedFields: ['
|
|
165
|
+
affectedFields: ['subParentStatus'],
|
|
166
166
|
},
|
|
167
167
|
FILES_UNDER_PARENT_NOT_ALLOWED_WHEN_TAX_PAYMENTS_EXIST: {
|
|
168
168
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
169
169
|
message:
|
|
170
170
|
'A filing template with tax payments cannot file under a parent. Please select Files separately or remove the associated tax payments before saving.',
|
|
171
|
-
affectedFields: ['
|
|
171
|
+
affectedFields: ['subParentStatus'],
|
|
172
172
|
},
|
|
173
173
|
FILES_UNDER_REQUIRED: {
|
|
174
174
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
@@ -202,22 +202,22 @@ export const TEMPLATE_INFORMATION = defineValidationFeatureMessages({
|
|
|
202
202
|
TAX_PAYMENT_FILING_REQUIRED: {
|
|
203
203
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
204
204
|
message: 'Tax payment filing is required',
|
|
205
|
-
affectedFields: ['
|
|
205
|
+
affectedFields: ['taxPaymentFiling'],
|
|
206
206
|
},
|
|
207
207
|
INVALID_TAX_PAYMENT_FILING: {
|
|
208
208
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
209
209
|
message: 'The selected tax payment filing does not exist',
|
|
210
|
-
affectedFields: ['
|
|
210
|
+
affectedFields: ['taxPaymentFiling'],
|
|
211
211
|
},
|
|
212
212
|
TAX_PAYMENT_FILING_MUST_BE_FILING_TYPE: {
|
|
213
213
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
214
214
|
message: 'The selected tax payment filing must be a Filing type template',
|
|
215
|
-
affectedFields: ['
|
|
215
|
+
affectedFields: ['taxPaymentFiling'],
|
|
216
216
|
},
|
|
217
217
|
SETUP_TEMPLATE_MUST_BE_SETUP_TYPE: {
|
|
218
218
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
219
219
|
message: 'The selected associated setup template must be a Setup type template',
|
|
220
|
-
affectedFields: ['
|
|
220
|
+
affectedFields: ['associatedSetupTemplate'],
|
|
221
221
|
},
|
|
222
222
|
OPTION_IN_USE: {
|
|
223
223
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
@@ -9,7 +9,7 @@ export const TEMPLATE_RECURRENCE_SETTINGS = defineValidationFeatureMessages({
|
|
|
9
9
|
RECURRENCE_FREQUENCY_REQUIRED: {
|
|
10
10
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
11
11
|
message: 'Recurrence frequency is required',
|
|
12
|
-
affectedFields: ['
|
|
12
|
+
affectedFields: ['recurrenceFrequencyId'],
|
|
13
13
|
},
|
|
14
14
|
RECURRENCE_FREQUENCY_NOT_FOUND: {
|
|
15
15
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
@@ -19,17 +19,17 @@ export const TEMPLATE_STATES = defineValidationFeatureMessages({
|
|
|
19
19
|
STATE_REQUIRED: {
|
|
20
20
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
21
21
|
message: 'State is required',
|
|
22
|
-
affectedFields: ['
|
|
22
|
+
affectedFields: ['state'],
|
|
23
23
|
},
|
|
24
24
|
INVALID_STATE: {
|
|
25
25
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
26
26
|
message: 'Invalid state',
|
|
27
|
-
affectedFields: ['
|
|
27
|
+
affectedFields: ['state'],
|
|
28
28
|
},
|
|
29
29
|
STATE_LOCKED_WHEN_IN_USE: {
|
|
30
30
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
31
31
|
message: 'The State field cannot be changed because this state is already applied to a client.',
|
|
32
|
-
affectedFields: ['
|
|
32
|
+
affectedFields: ['state'],
|
|
33
33
|
},
|
|
34
34
|
DATE_STOPPED_REQUIRED_WHEN_INACTIVE: {
|
|
35
35
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
@@ -39,7 +39,7 @@ export const TEMPLATE_STATES = defineValidationFeatureMessages({
|
|
|
39
39
|
IS_ACTIVE_REQUIRED: {
|
|
40
40
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
41
41
|
message: 'Status is required',
|
|
42
|
-
affectedFields: ['
|
|
42
|
+
affectedFields: ['active'],
|
|
43
43
|
},
|
|
44
44
|
IN_USE_CANNOT_DELETE: {
|
|
45
45
|
severity: VALIDATION_SEVERITY.ERROR,
|