Rename EIN to TIN/EIN, accept SSN format (XXX-XX-XXXX)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
862c06a8fd
commit
ab7a2d7dc0
1 changed files with 6 additions and 6 deletions
|
|
@ -65,8 +65,8 @@
|
||||||
<label class="pw-field">DBA (if different)</label>
|
<label class="pw-field">DBA (if different)</label>
|
||||||
<input type="text" id="pw-dba" class="pw-input" />
|
<input type="text" id="pw-dba" class="pw-input" />
|
||||||
|
|
||||||
<label class="pw-field">EIN</label>
|
<label class="pw-field">TIN / EIN</label>
|
||||||
<input type="text" id="pw-ein" class="pw-input" placeholder="12-3456789" />
|
<input type="text" id="pw-ein" class="pw-input" placeholder="12-3456789 or 123-45-6789" />
|
||||||
|
|
||||||
<label class="pw-field">FCC Registration Number (FRN)</label>
|
<label class="pw-field">FCC Registration Number (FRN)</label>
|
||||||
<input type="text" id="pw-frn" class="pw-input" placeholder="10-digit (leave blank if applying via this order)" />
|
<input type="text" id="pw-frn" class="pw-input" placeholder="10-digit (leave blank if applying via this order)" />
|
||||||
|
|
@ -392,12 +392,12 @@
|
||||||
if (!INPUTS.name.value.trim()) missing.push("your name");
|
if (!INPUTS.name.value.trim()) missing.push("your name");
|
||||||
if (!INPUTS.legal_name.value.trim()) missing.push("carrier legal name");
|
if (!INPUTS.legal_name.value.trim()) missing.push("carrier legal name");
|
||||||
if (!INPUTS.entity_structure.value) missing.push("entity structure");
|
if (!INPUTS.entity_structure.value) missing.push("entity structure");
|
||||||
// EIN validation: must be XX-XXXXXXX format if provided, required for filing
|
// TIN/EIN validation: EIN (XX-XXXXXXX) or SSN (XXX-XX-XXXX)
|
||||||
const ein = INPUTS.ein.value.trim().replace(/[^0-9-]/g, "");
|
const ein = INPUTS.ein.value.trim().replace(/[^0-9-]/g, "");
|
||||||
if (!ein) {
|
if (!ein) {
|
||||||
missing.push("EIN");
|
missing.push("TIN / EIN");
|
||||||
} else if (!/^\d{2}-?\d{7}$/.test(ein)) {
|
} else if (!/^\d{2}-?\d{7}$/.test(ein) && !/^\d{3}-?\d{2}-?\d{4}$/.test(ein)) {
|
||||||
missing.push("valid EIN (format: 12-3456789)");
|
missing.push("valid TIN / EIN (format: 12-3456789 or 123-45-6789)");
|
||||||
}
|
}
|
||||||
// Address — at minimum need state
|
// Address — at minimum need state
|
||||||
if (!INPUTS.street.value.trim()) missing.push("street address");
|
if (!INPUTS.street.value.trim()) missing.push("street address");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue