fix(billing): constrain New Tax Rate Rate (%) and Name inputs (MAPPS-220) #375
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-220-tax-rate-input-constraints"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Settings > Tax Rates > New Tax Rate form left Rate (%) with no min/max/step, so it inherited the browser default step=1: it rejected 2-decimal rates like 8.25 (its own placeholder) as a step mismatch while accepting negatives and values over 100%. Name had no client length cap despite the server bounding it to 100 chars.
Mirror the Ticket Priorities SLA-multiplier field: add step="0.01" min="0" max="100" to the Rate input and tighten its FormGuard Number rule to max=Some(100.0) max_decimals=Some(2), so 8.25 is accepted while negatives and >100% are rejected with field-level feedback. Add maxlength=100 plus Rule::MaxLen(100) to Name to match UpsertTaxRateRequest's length(max = 100).
#MAPPS-220