diff --git a/site/public/tools/corporation-check/index.html b/site/public/tools/corporation-check/index.html index aafea60..ac58984 100644 --- a/site/public/tools/corporation-check/index.html +++ b/site/public/tools/corporation-check/index.html @@ -164,8 +164,11 @@ function doCheck() { function renderResult(data, state) { var status = (data.status || "UNKNOWN").toUpperCase(); - var isGood = status === "ACTIVE"; - var isBad = status === "DELINQUENT" || status === "SUSPENDED" || status === "DISSOLVED" || status === "INACTIVE"; + // An entity's annual report can be past due even while the state still lists it + // ACTIVE (e.g. CT). Treat overdue-but-active as "needs action", not good standing. + var overdue = !!data.annual_report_overdue; + var isGood = status === "ACTIVE" && !overdue; + var isBad = status === "DELINQUENT" || status === "SUSPENDED" || status === "DISSOLVED" || status === "INACTIVE" || (status === "ACTIVE" && overdue); var borderColor = isGood ? "border-green-200" : isBad ? "border-red-200" : "border-gray-200"; var bgColor = isGood ? "bg-green-50" : isBad ? "bg-red-50" : "bg-gray-50"; @@ -179,7 +182,7 @@ function renderResult(data, state) { if (data.entity_number) html += '
Filing #: ' + data.entity_number + '
'; if (data.formation_date) html += 'Formed: ' + data.formation_date + '
'; html += ''; - html += '' + status + ''; + html += '' + ((status === "ACTIVE" && overdue) ? "REPORT OVERDUE" : status) + ''; html += ''; if (isGood) { @@ -192,12 +195,18 @@ function renderResult(data, state) { html += ''; } else if (isBad) { html += 'Your annual report is past due' + + (data.annual_report_due_date ? ' (was due ' + data.annual_report_due_date + (od != null ? ', ' + od + ' days ago' : '') + ')' : '') + + '.
'; + html += 'Your business is still active, but an unfiled annual report can cost you good standing and, if it keeps lapsing, lead to administrative dissolution. File it now to stay clear.
'; + } else if (data.years_behind > 0) { html += 'You are ' + data.years_behind + ' year' + (data.years_behind > 1 ? 's' : '') + ' behind on annual reports.
'; } if (status === "DISSOLVED") { html += 'This entity has been administratively dissolved. Reinstatement is required to restore good standing.
'; - } else { + } else if (!(status === "ACTIVE" && overdue)) { html += 'File your overdue annual report(s) to return to good standing before the state administratively dissolves your entity.
'; }