@forwardslashns/taskit-validation-messages 1.10.45 → 1.10.47
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-templates.validation-messages.d.ts +85 -0
- package/dist/validation/features/client-templates.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-templates.validation-messages.js +85 -0
- package/dist/validation/validation-messages.d.ts +85 -0
- package/dist/validation/validation-messages.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/validation/features/client-templates.validation-messages.ts +90 -0
|
@@ -180,5 +180,90 @@ export declare const CLIENT_TEMPLATES: {
|
|
|
180
180
|
message: string;
|
|
181
181
|
affectedFields: string[];
|
|
182
182
|
};
|
|
183
|
+
BILLING_SUBJECT_TO_COMMISSION_MISMATCH: {
|
|
184
|
+
severity: "error";
|
|
185
|
+
message: string;
|
|
186
|
+
affectedFields: string[];
|
|
187
|
+
};
|
|
188
|
+
BILLING_COMMISSION_RATE_MISMATCH: {
|
|
189
|
+
severity: "error";
|
|
190
|
+
message: string;
|
|
191
|
+
affectedFields: string[];
|
|
192
|
+
};
|
|
193
|
+
PAYMENT_COMMISSION_RATE_MUST_BE_EMPTY: {
|
|
194
|
+
severity: "error";
|
|
195
|
+
message: string;
|
|
196
|
+
affectedFields: string[];
|
|
197
|
+
};
|
|
198
|
+
AMOUNT_MUST_BE_NULL_WHEN_NOT_SEPARATELY_CHARGED: {
|
|
199
|
+
severity: "error";
|
|
200
|
+
message: string;
|
|
201
|
+
affectedFields: string[];
|
|
202
|
+
};
|
|
203
|
+
AMOUNT_MUST_BE_ZERO_FOR_FIXED_FEE_BILLING: {
|
|
204
|
+
severity: "error";
|
|
205
|
+
message: string;
|
|
206
|
+
affectedFields: string[];
|
|
207
|
+
};
|
|
208
|
+
AMOUNT_MUST_MATCH_TEMPLATE: {
|
|
209
|
+
severity: "error";
|
|
210
|
+
message: string;
|
|
211
|
+
affectedFields: string[];
|
|
212
|
+
};
|
|
213
|
+
SEPARATELY_CHARGED_MUST_BE_NO_FOR_FIXED_FEE: {
|
|
214
|
+
severity: "error";
|
|
215
|
+
message: string;
|
|
216
|
+
affectedFields: string[];
|
|
217
|
+
};
|
|
218
|
+
SUBJECT_TO_COMMISSION_MUST_BE_NO: {
|
|
219
|
+
severity: "error";
|
|
220
|
+
message: string;
|
|
221
|
+
affectedFields: string[];
|
|
222
|
+
};
|
|
223
|
+
COMMISSION_RATE_MUST_MATCH_TEMPLATE: {
|
|
224
|
+
severity: "error";
|
|
225
|
+
message: string;
|
|
226
|
+
affectedFields: string[];
|
|
227
|
+
};
|
|
228
|
+
COMMISSION_RATE_MUST_BE_EMPTY: {
|
|
229
|
+
severity: "error";
|
|
230
|
+
message: string;
|
|
231
|
+
affectedFields: string[];
|
|
232
|
+
};
|
|
233
|
+
STATES_ONLY_ALLOWED_FOR_FILING: {
|
|
234
|
+
severity: "error";
|
|
235
|
+
message: string;
|
|
236
|
+
affectedFields: string[];
|
|
237
|
+
};
|
|
238
|
+
DUPLICATE_STATE_SUBFILING: {
|
|
239
|
+
severity: "error";
|
|
240
|
+
message: string;
|
|
241
|
+
affectedFields: string[];
|
|
242
|
+
};
|
|
243
|
+
STATE_TEMPLATE_STATE_NOT_FOUND: {
|
|
244
|
+
severity: "error";
|
|
245
|
+
message: string;
|
|
246
|
+
affectedFields: string[];
|
|
247
|
+
};
|
|
248
|
+
STATE_CLIENT_STATE_NOT_FOUND: {
|
|
249
|
+
severity: "error";
|
|
250
|
+
message: string;
|
|
251
|
+
affectedFields: string[];
|
|
252
|
+
};
|
|
253
|
+
STATE_ENDING_BEFORE_STARTING: {
|
|
254
|
+
severity: "error";
|
|
255
|
+
message: string;
|
|
256
|
+
affectedFields: string[];
|
|
257
|
+
};
|
|
258
|
+
STATE_IS_FINAL_REQUIRED_WITH_ENDING_DATE: {
|
|
259
|
+
severity: "error";
|
|
260
|
+
message: string;
|
|
261
|
+
affectedFields: string[];
|
|
262
|
+
};
|
|
263
|
+
STATE_PAYMENT_METHOD_NOT_FOUND: {
|
|
264
|
+
severity: "error";
|
|
265
|
+
message: string;
|
|
266
|
+
affectedFields: string[];
|
|
267
|
+
};
|
|
183
268
|
};
|
|
184
269
|
//# sourceMappingURL=client-templates.validation-messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-templates.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-templates.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"client-templates.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-templates.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoR3B,CAAC"}
|
|
@@ -184,4 +184,89 @@ exports.CLIENT_TEMPLATES = (0, validation_message_types_1.defineValidationFeatur
|
|
|
184
184
|
message: 'The fourth month must fall within 12 months of the first month selected. Please update your selection before saving.',
|
|
185
185
|
affectedFields: ['recurrence.fourthMonth'],
|
|
186
186
|
},
|
|
187
|
+
BILLING_SUBJECT_TO_COMMISSION_MISMATCH: {
|
|
188
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
189
|
+
message: "Billing template must match the client's 'Subject to commission' setting.",
|
|
190
|
+
affectedFields: ['billingAndPayments.isSubjectToCommission'],
|
|
191
|
+
},
|
|
192
|
+
BILLING_COMMISSION_RATE_MISMATCH: {
|
|
193
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
194
|
+
message: "Billing template commission rate must match the client's commission rate.",
|
|
195
|
+
affectedFields: ['billingAndPayments.commissionRate'],
|
|
196
|
+
},
|
|
197
|
+
PAYMENT_COMMISSION_RATE_MUST_BE_EMPTY: {
|
|
198
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
199
|
+
message: 'Payment template cannot have a commission rate.',
|
|
200
|
+
affectedFields: ['billingAndPayments.commissionRate'],
|
|
201
|
+
},
|
|
202
|
+
AMOUNT_MUST_BE_NULL_WHEN_NOT_SEPARATELY_CHARGED: {
|
|
203
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
204
|
+
message: "Amount must be empty when 'Separately charged' is No.",
|
|
205
|
+
affectedFields: ['billingAndPayments.amount'],
|
|
206
|
+
},
|
|
207
|
+
AMOUNT_MUST_BE_ZERO_FOR_FIXED_FEE_BILLING: {
|
|
208
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
209
|
+
message: "Amount must be 0 for Billing templates when client billing type is 'Fixed annual fee'.",
|
|
210
|
+
affectedFields: ['billingAndPayments.amount'],
|
|
211
|
+
},
|
|
212
|
+
AMOUNT_MUST_MATCH_TEMPLATE: {
|
|
213
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
214
|
+
message: "Amount must match the template's amount when 'Separately charged' is Yes.",
|
|
215
|
+
affectedFields: ['billingAndPayments.amount'],
|
|
216
|
+
},
|
|
217
|
+
SEPARATELY_CHARGED_MUST_BE_NO_FOR_FIXED_FEE: {
|
|
218
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
219
|
+
message: "'Separately charged' must be No for this template type when client billing type is 'Fixed annual fee'.",
|
|
220
|
+
affectedFields: ['billingAndPayments.isSeparatelyCharged'],
|
|
221
|
+
},
|
|
222
|
+
SUBJECT_TO_COMMISSION_MUST_BE_NO: {
|
|
223
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
224
|
+
message: "'Subject to commission' must be No for this template type with the client's current settings.",
|
|
225
|
+
affectedFields: ['billingAndPayments.isSubjectToCommission'],
|
|
226
|
+
},
|
|
227
|
+
COMMISSION_RATE_MUST_MATCH_TEMPLATE: {
|
|
228
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
229
|
+
message: "Commission rate must match the template's commission rate when 'Subject to commission' is Yes.",
|
|
230
|
+
affectedFields: ['billingAndPayments.commissionRate'],
|
|
231
|
+
},
|
|
232
|
+
COMMISSION_RATE_MUST_BE_EMPTY: {
|
|
233
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
234
|
+
message: "Commission rate must be empty when 'Subject to commission' is No.",
|
|
235
|
+
affectedFields: ['billingAndPayments.commissionRate'],
|
|
236
|
+
},
|
|
237
|
+
STATES_ONLY_ALLOWED_FOR_FILING: {
|
|
238
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
239
|
+
message: 'State sub-filings are only allowed for Filing template types.',
|
|
240
|
+
affectedFields: ['states'],
|
|
241
|
+
},
|
|
242
|
+
DUPLICATE_STATE_SUBFILING: {
|
|
243
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
244
|
+
message: 'A state sub-filing with the same template state and client state already exists.',
|
|
245
|
+
affectedFields: ['states'],
|
|
246
|
+
},
|
|
247
|
+
STATE_TEMPLATE_STATE_NOT_FOUND: {
|
|
248
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
249
|
+
message: 'Selected template state does not exist or does not belong to the selected template.',
|
|
250
|
+
affectedFields: ['states'],
|
|
251
|
+
},
|
|
252
|
+
STATE_CLIENT_STATE_NOT_FOUND: {
|
|
253
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
254
|
+
message: 'Selected client entity state does not exist or does not belong to the client.',
|
|
255
|
+
affectedFields: ['states'],
|
|
256
|
+
},
|
|
257
|
+
STATE_ENDING_BEFORE_STARTING: {
|
|
258
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
259
|
+
message: 'State sub-filing ending date cannot be earlier than its starting date.',
|
|
260
|
+
affectedFields: ['states'],
|
|
261
|
+
},
|
|
262
|
+
STATE_IS_FINAL_REQUIRED_WITH_ENDING_DATE: {
|
|
263
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
264
|
+
message: 'isFinal must be provided when an ending date is set on a state sub-filing.',
|
|
265
|
+
affectedFields: ['states'],
|
|
266
|
+
},
|
|
267
|
+
STATE_PAYMENT_METHOD_NOT_FOUND: {
|
|
268
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
269
|
+
message: 'Selected payment method does not exist.',
|
|
270
|
+
affectedFields: ['states'],
|
|
271
|
+
},
|
|
187
272
|
});
|
|
@@ -2163,6 +2163,91 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
2163
2163
|
message: string;
|
|
2164
2164
|
affectedFields: string[];
|
|
2165
2165
|
};
|
|
2166
|
+
BILLING_SUBJECT_TO_COMMISSION_MISMATCH: {
|
|
2167
|
+
severity: "error";
|
|
2168
|
+
message: string;
|
|
2169
|
+
affectedFields: string[];
|
|
2170
|
+
};
|
|
2171
|
+
BILLING_COMMISSION_RATE_MISMATCH: {
|
|
2172
|
+
severity: "error";
|
|
2173
|
+
message: string;
|
|
2174
|
+
affectedFields: string[];
|
|
2175
|
+
};
|
|
2176
|
+
PAYMENT_COMMISSION_RATE_MUST_BE_EMPTY: {
|
|
2177
|
+
severity: "error";
|
|
2178
|
+
message: string;
|
|
2179
|
+
affectedFields: string[];
|
|
2180
|
+
};
|
|
2181
|
+
AMOUNT_MUST_BE_NULL_WHEN_NOT_SEPARATELY_CHARGED: {
|
|
2182
|
+
severity: "error";
|
|
2183
|
+
message: string;
|
|
2184
|
+
affectedFields: string[];
|
|
2185
|
+
};
|
|
2186
|
+
AMOUNT_MUST_BE_ZERO_FOR_FIXED_FEE_BILLING: {
|
|
2187
|
+
severity: "error";
|
|
2188
|
+
message: string;
|
|
2189
|
+
affectedFields: string[];
|
|
2190
|
+
};
|
|
2191
|
+
AMOUNT_MUST_MATCH_TEMPLATE: {
|
|
2192
|
+
severity: "error";
|
|
2193
|
+
message: string;
|
|
2194
|
+
affectedFields: string[];
|
|
2195
|
+
};
|
|
2196
|
+
SEPARATELY_CHARGED_MUST_BE_NO_FOR_FIXED_FEE: {
|
|
2197
|
+
severity: "error";
|
|
2198
|
+
message: string;
|
|
2199
|
+
affectedFields: string[];
|
|
2200
|
+
};
|
|
2201
|
+
SUBJECT_TO_COMMISSION_MUST_BE_NO: {
|
|
2202
|
+
severity: "error";
|
|
2203
|
+
message: string;
|
|
2204
|
+
affectedFields: string[];
|
|
2205
|
+
};
|
|
2206
|
+
COMMISSION_RATE_MUST_MATCH_TEMPLATE: {
|
|
2207
|
+
severity: "error";
|
|
2208
|
+
message: string;
|
|
2209
|
+
affectedFields: string[];
|
|
2210
|
+
};
|
|
2211
|
+
COMMISSION_RATE_MUST_BE_EMPTY: {
|
|
2212
|
+
severity: "error";
|
|
2213
|
+
message: string;
|
|
2214
|
+
affectedFields: string[];
|
|
2215
|
+
};
|
|
2216
|
+
STATES_ONLY_ALLOWED_FOR_FILING: {
|
|
2217
|
+
severity: "error";
|
|
2218
|
+
message: string;
|
|
2219
|
+
affectedFields: string[];
|
|
2220
|
+
};
|
|
2221
|
+
DUPLICATE_STATE_SUBFILING: {
|
|
2222
|
+
severity: "error";
|
|
2223
|
+
message: string;
|
|
2224
|
+
affectedFields: string[];
|
|
2225
|
+
};
|
|
2226
|
+
STATE_TEMPLATE_STATE_NOT_FOUND: {
|
|
2227
|
+
severity: "error";
|
|
2228
|
+
message: string;
|
|
2229
|
+
affectedFields: string[];
|
|
2230
|
+
};
|
|
2231
|
+
STATE_CLIENT_STATE_NOT_FOUND: {
|
|
2232
|
+
severity: "error";
|
|
2233
|
+
message: string;
|
|
2234
|
+
affectedFields: string[];
|
|
2235
|
+
};
|
|
2236
|
+
STATE_ENDING_BEFORE_STARTING: {
|
|
2237
|
+
severity: "error";
|
|
2238
|
+
message: string;
|
|
2239
|
+
affectedFields: string[];
|
|
2240
|
+
};
|
|
2241
|
+
STATE_IS_FINAL_REQUIRED_WITH_ENDING_DATE: {
|
|
2242
|
+
severity: "error";
|
|
2243
|
+
message: string;
|
|
2244
|
+
affectedFields: string[];
|
|
2245
|
+
};
|
|
2246
|
+
STATE_PAYMENT_METHOD_NOT_FOUND: {
|
|
2247
|
+
severity: "error";
|
|
2248
|
+
message: string;
|
|
2249
|
+
affectedFields: string[];
|
|
2250
|
+
};
|
|
2166
2251
|
};
|
|
2167
2252
|
readonly CLIENT_TEMPLATE_ASSIGNMENTS: {
|
|
2168
2253
|
NAME_ALREADY_EXISTS_ON_CLIENT_TEMPLATE: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
|
'The fourth month must fall within 12 months of the first month selected. Please update your selection before saving.',
|
|
187
187
|
affectedFields: ['recurrence.fourthMonth'],
|
|
188
188
|
},
|
|
189
|
+
BILLING_SUBJECT_TO_COMMISSION_MISMATCH: {
|
|
190
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
191
|
+
message: "Billing template must match the client's 'Subject to commission' setting.",
|
|
192
|
+
affectedFields: ['billingAndPayments.isSubjectToCommission'],
|
|
193
|
+
},
|
|
194
|
+
BILLING_COMMISSION_RATE_MISMATCH: {
|
|
195
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
196
|
+
message: "Billing template commission rate must match the client's commission rate.",
|
|
197
|
+
affectedFields: ['billingAndPayments.commissionRate'],
|
|
198
|
+
},
|
|
199
|
+
PAYMENT_COMMISSION_RATE_MUST_BE_EMPTY: {
|
|
200
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
201
|
+
message: 'Payment template cannot have a commission rate.',
|
|
202
|
+
affectedFields: ['billingAndPayments.commissionRate'],
|
|
203
|
+
},
|
|
204
|
+
AMOUNT_MUST_BE_NULL_WHEN_NOT_SEPARATELY_CHARGED: {
|
|
205
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
206
|
+
message: "Amount must be empty when 'Separately charged' is No.",
|
|
207
|
+
affectedFields: ['billingAndPayments.amount'],
|
|
208
|
+
},
|
|
209
|
+
AMOUNT_MUST_BE_ZERO_FOR_FIXED_FEE_BILLING: {
|
|
210
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
211
|
+
message: "Amount must be 0 for Billing templates when client billing type is 'Fixed annual fee'.",
|
|
212
|
+
affectedFields: ['billingAndPayments.amount'],
|
|
213
|
+
},
|
|
214
|
+
AMOUNT_MUST_MATCH_TEMPLATE: {
|
|
215
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
216
|
+
message: "Amount must match the template's amount when 'Separately charged' is Yes.",
|
|
217
|
+
affectedFields: ['billingAndPayments.amount'],
|
|
218
|
+
},
|
|
219
|
+
SEPARATELY_CHARGED_MUST_BE_NO_FOR_FIXED_FEE: {
|
|
220
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
221
|
+
message: "'Separately charged' must be No for this template type when client billing type is 'Fixed annual fee'.",
|
|
222
|
+
affectedFields: ['billingAndPayments.isSeparatelyCharged'],
|
|
223
|
+
},
|
|
224
|
+
SUBJECT_TO_COMMISSION_MUST_BE_NO: {
|
|
225
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
226
|
+
message: "'Subject to commission' must be No for this template type with the client's current settings.",
|
|
227
|
+
affectedFields: ['billingAndPayments.isSubjectToCommission'],
|
|
228
|
+
},
|
|
229
|
+
COMMISSION_RATE_MUST_MATCH_TEMPLATE: {
|
|
230
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
231
|
+
message: "Commission rate must match the template's commission rate when 'Subject to commission' is Yes.",
|
|
232
|
+
affectedFields: ['billingAndPayments.commissionRate'],
|
|
233
|
+
},
|
|
234
|
+
COMMISSION_RATE_MUST_BE_EMPTY: {
|
|
235
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
236
|
+
message: "Commission rate must be empty when 'Subject to commission' is No.",
|
|
237
|
+
affectedFields: ['billingAndPayments.commissionRate'],
|
|
238
|
+
},
|
|
239
|
+
STATES_ONLY_ALLOWED_FOR_FILING: {
|
|
240
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
241
|
+
message:
|
|
242
|
+
'State sub-filings are only allowed for Filing template types.',
|
|
243
|
+
affectedFields: ['states'],
|
|
244
|
+
},
|
|
245
|
+
DUPLICATE_STATE_SUBFILING: {
|
|
246
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
247
|
+
message:
|
|
248
|
+
'A state sub-filing with the same template state and client state already exists.',
|
|
249
|
+
affectedFields: ['states'],
|
|
250
|
+
},
|
|
251
|
+
STATE_TEMPLATE_STATE_NOT_FOUND: {
|
|
252
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
253
|
+
message:
|
|
254
|
+
'Selected template state does not exist or does not belong to the selected template.',
|
|
255
|
+
affectedFields: ['states'],
|
|
256
|
+
},
|
|
257
|
+
STATE_CLIENT_STATE_NOT_FOUND: {
|
|
258
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
259
|
+
message:
|
|
260
|
+
'Selected client entity state does not exist or does not belong to the client.',
|
|
261
|
+
affectedFields: ['states'],
|
|
262
|
+
},
|
|
263
|
+
STATE_ENDING_BEFORE_STARTING: {
|
|
264
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
265
|
+
message: 'State sub-filing ending date cannot be earlier than its starting date.',
|
|
266
|
+
affectedFields: ['states'],
|
|
267
|
+
},
|
|
268
|
+
STATE_IS_FINAL_REQUIRED_WITH_ENDING_DATE: {
|
|
269
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
270
|
+
message:
|
|
271
|
+
'isFinal must be provided when an ending date is set on a state sub-filing.',
|
|
272
|
+
affectedFields: ['states'],
|
|
273
|
+
},
|
|
274
|
+
STATE_PAYMENT_METHOD_NOT_FOUND: {
|
|
275
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
276
|
+
message: 'Selected payment method does not exist.',
|
|
277
|
+
affectedFields: ['states'],
|
|
278
|
+
},
|
|
189
279
|
});
|