Recalculate bundle pricing + bundle auto-uncheck individual items

- DOT Full Compliance Bundle: $499 → $399 (saves $376 vs $775 individual)
- State Compliance Bundle: $599 → $499 (saves $297 vs $796 individual)
- D&A marked non-discountable (passthrough cost to testing provider)
- Order page: selecting a bundle auto-unchecks its individual components
  via data-bundle attribute listing component slugs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
justin 2026-05-29 14:49:59 -05:00
parent 4cfcb6a50c
commit 78ed1db15a
4 changed files with 24 additions and 10 deletions

View file

@ -255,7 +255,7 @@ const COMPLIANCE_SERVICES: Record<
name: "DOT Drug & Alcohol Compliance Program",
price_cents: 14900,
erpnext_item: "DOT-DRUG-ALCOHOL",
discountable: true,
discountable: false, // passthrough cost — D&A testing provider
},
"dot-audit-prep": {
name: "New Entrant Safety Audit Preparation",
@ -265,7 +265,7 @@ const COMPLIANCE_SERVICES: Record<
},
"dot-full-compliance": {
name: "DOT Full Compliance Bundle",
price_cents: 49900,
price_cents: 39900, // $399 — includes MCS-150+BOC-3+UCR+D&A+Audit ($775 individual)
erpnext_item: "DOT-FULL-COMPLIANCE",
discountable: true,
},
@ -344,7 +344,7 @@ const COMPLIANCE_SERVICES: Record<
},
"state-trucking-bundle": {
name: "State Compliance Bundle",
price_cents: 59900,
price_cents: 49900, // $499 — IRP+IFTA+weight tax+intrastate ($796 individual)
erpnext_item: "STATE-TRUCKING-BUNDLE",
discountable: true,
},