Fix BDC pricing in compliance checker CTA
- BDC both (broadband+voice): $299 (was $349, now matches bdc-filing API price) - BDC broadband-only: $199 (uses bdc_broadband slug) - BDC voice-only: $149 (uses bdc_voice slug — was showing $199) - Added _bdcVariant tracking so CTA uses correct slug per user answer - Reset variant on undo Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
47ca1bf10f
commit
16b5c2da0b
1 changed files with 13 additions and 5 deletions
|
|
@ -609,12 +609,16 @@ import Base from "../../layouts/Base.astro";
|
|||
let newStatus, detail;
|
||||
if (hasBroadband && bdcHasVoice) {
|
||||
newStatus = "red"; detail = "Broadband + retail voice: both BDC Broadband and BDC Voice filings required. Filed semi-annually June 1 and December 1.";
|
||||
check._bdcVariant = "both";
|
||||
} else if (hasBroadband) {
|
||||
newStatus = "yellow"; detail = "BDC Broadband Deployment filing required. Filed semi-annually June 1 and December 1.";
|
||||
check._bdcVariant = "broadband";
|
||||
} else if (bdcHasVoice) {
|
||||
newStatus = "yellow"; detail = "BDC Voice Subscription filing required (formerly Form 477 Voice). Filed semi-annually June 1 and December 1.";
|
||||
check._bdcVariant = "voice";
|
||||
} else {
|
||||
newStatus = "green"; detail = "Not applicable — no retail voice or broadband service.";
|
||||
check._bdcVariant = null;
|
||||
}
|
||||
check.status = newStatus;
|
||||
const c3 = colorMap[newStatus];
|
||||
|
|
@ -627,6 +631,7 @@ import Base from "../../layouts/Base.astro";
|
|||
</div>`;
|
||||
card.querySelector(".bdc-undo")?.addEventListener("click", () => {
|
||||
check.status = "unknown";
|
||||
check._bdcVariant = null;
|
||||
bdcHasVoice = false;
|
||||
const cu = colorMap.unknown;
|
||||
card.className = `${cu.bg} ${cu.border} border rounded-xl p-4 flex items-start gap-3`;
|
||||
|
|
@ -807,11 +812,14 @@ import Base from "../../layouts/Base.astro";
|
|||
}
|
||||
break;
|
||||
case "bdc_filing":
|
||||
if (s === "red") {
|
||||
// Both broadband + voice filings
|
||||
services.push({ id: "bdc_filing", name: "BDC Broadband + Voice Filing", desc: "both filings", price: 349 });
|
||||
} else if (s === "yellow") {
|
||||
services.push({ id: "bdc_filing", name: "BDC / Form 477 Filing", desc: "", price: 199 });
|
||||
if (check._bdcVariant === "both") {
|
||||
services.push({ id: "bdc_filing", name: "BDC Broadband + Voice Filing", desc: "both filings", price: 299 });
|
||||
} else if (check._bdcVariant === "broadband") {
|
||||
services.push({ id: "bdc_broadband", name: "BDC Broadband Filing", desc: "", price: 199 });
|
||||
} else if (check._bdcVariant === "voice") {
|
||||
services.push({ id: "bdc_voice", name: "BDC Voice Filing", desc: "formerly Form 477", price: 149 });
|
||||
} else if (s !== "green") {
|
||||
services.push({ id: "bdc_filing", name: "BDC Filing", desc: "", price: 299 });
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue