CampgroundTickets/backend/src
Hank 049f433930 Fix ice bag count + default ice check-in to 1 bag
The form sends payment_ice as a descriptive label, e.g. "One Ice
ticket good for one bag per day (3 total bags)". The old parser pulled
the first number ("3") and treated it as 3 tickets, then multiplied by
3 bags/ticket → 9 bags for one ice ticket (18 for two). New
iceBagsFromPayment reads the "(N total bags)" the label states
directly, with worded-count and numeric dollar/count fallbacks for
forward compatibility. 1 ice → 3 bags, 2 → 6. 5 new tests.

Scanner: Ice mode now defaults the check-in count to 1 (a bag at a
time) instead of all remaining bags; staff can bump it up.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-20 07:40:05 +00:00
..
routes Fix ice bag count + default ice check-in to 1 bag 2026-07-20 07:40:05 +00:00
services Webhook: customer_name purchaser + allow ticketless orders 2026-07-17 17:59:56 +00:00
test Fix ice bag count + default ice check-in to 1 bag 2026-07-20 07:40:05 +00:00
config.ts Vendor webhooks, free kids through 12, multi-origin lookup CORS 2026-07-16 05:13:07 +00:00
context.ts Add Check-in / Ice / Banquet scan modes 2026-07-08 04:07:51 +00:00
fields.ts Vendor webhooks, free kids through 12, multi-origin lookup CORS 2026-07-16 05:13:07 +00:00
fluentforms.ts Fix ice bag count + default ice check-in to 1 bag 2026-07-20 07:40:05 +00:00
server.ts Vendor webhooks, free kids through 12, multi-origin lookup CORS 2026-07-16 05:13:07 +00:00
ticketService.ts Add event report dashboard, slide-out drawer, in-app comp portal + creator tracking 2026-07-13 17:30:18 +00:00