CampgroundTickets/backend
Hank 49e45ff94c Webhook: count voucher tickets + use customer_name as title
Two corrections to the adult-ticket model:

1. Adult total was undercounting. Voucher (donor) tickets live only in
   the names_Donor_1 / names_Donor_2 name fields — each filled name is
   one free voucher adult ticket — and weren't counted at all. Adults
   now = item_quantity_adult_ticket_reg (regular) +
   item_quantity_adult_ticket_donor (extra PAID donor tickets beyond
   vouchers) + the donor voucher-name count. Vouchers consumed is now
   that same donor-name count (what the ticket-voucher lookup subtracts),
   instead of the hidden `vouchers` entitlement.

2. Ticket title now comes from customer_name (billing name), not the
   first adult ticket name.

Doc updated to describe the adult total and the title source.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-17 19:07:56 +00:00
..
src Webhook: count voucher tickets + use customer_name as title 2026-07-17 19:07:56 +00:00
package-lock.json Initial Camp Scan ticketing system 2026-07-08 03:47:59 +00:00
package.json Initial Camp Scan ticketing system 2026-07-08 03:47:59 +00:00
tsconfig.json Initial Camp Scan ticketing system 2026-07-08 03:47:59 +00:00