@npm-zenwork/tax-remittance-ui 0.14.2 → 0.14.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.
@@ -16,13 +16,17 @@ export declare const AMOUNT_FIELD_VALIDATION: {
16
16
  readonly errorMessage: "Payment amount must be a number greater than 0, can include up to 2 decimal places, and must not exceed 100,000,000 (one hundred million).";
17
17
  };
18
18
  /**
19
- * Subcategory amounts accept 0, mirroring EFTPS: a subcategory that doesn't
20
- * apply to the filing is entered as 0.00 rather than left blank. The
21
- * subcategory total must still equal the payment amount, which stays > 0.
19
+ * EFTPS takes no subcategory below $0.01, so 0.00 is not a way to say "this
20
+ * category does not apply" — the breakdown has to be a real split of the
21
+ * payment. At two decimal places a $0.01 floor is the same rule as "greater
22
+ * than zero"; it is written as the floor because that is how EFTPS states it.
23
+ *
24
+ * Kept separate from AMOUNT_FIELD_VALIDATION for the message alone: both reject
25
+ * 0, and the wording here is the business team's.
22
26
  */
23
27
  export declare const SUBCATEGORY_AMOUNT_FIELD_VALIDATION: {
24
28
  readonly regex: RegExp;
25
- readonly errorMessage: "Amount must be a number of 0 or more, can include up to 2 decimal places, and must not exceed 100,000,000 (one hundred million).";
29
+ readonly errorMessage: "Please enter a valid payment amount. The amount must be at least $0.01 and cannot exceed $100,000,000.00.";
26
30
  };
27
31
  export declare function isSubcategoryFieldsActive(taxFormType: string, taxTypeCode: string): boolean;
28
32
  export declare function isCt1SubcategoryFieldsActive(taxFormType: string, taxTypeCode: string): boolean;