function collapsedPackageSummary
collapsedPackageSummary(entries: EmailEntry[]): { pricePaid: string; quantity: number; widestDated: EmailEntry | null; }

The single-row summary a hidden package collapses to for buyers: the bundle's summed price and quantity plus the widest member's dated stay (hiding members must not lose the date the buyer booked). Shared by the email body row and the SVG ticket, so the two can never disagree.

Parameters

entries: EmailEntry[]

Return Type

{ pricePaid: string; quantity: number; widestDated: EmailEntry | null; }

Usage

import { collapsedPackageSummary } from "docs/email.ts";