refactor(bookings): simplify capacity tracking to use seats

Replace 'pax' booking mode with 'seat'
Consolidate inventory summary to track only seat counts
Update database schema and UI for seat-centric capacity
This commit is contained in:
2026-04-13 08:49:54 +08:00
parent c47d0d287e
commit faa998c7e1
12 changed files with 136 additions and 139 deletions

View File

@@ -3,7 +3,6 @@ import type { PublicBooking } from '~~/shared/booking'
import {
formatBookingCurrency,
getBookingModeLabel,
getBookingStatusLabel,
getTicketCatalogItem
} from '~~/shared/booking'
@@ -54,18 +53,10 @@ const detailRows = computed(() => {
label: 'PIC Phone',
value: booking.value.personInChargePhoneNumber
},
{
label: 'Booking Mode',
value: getBookingModeLabel(booking.value.bookingMode)
},
{
label: 'Ticket Category',
value: ticketLabel.value
},
{
label: 'Quantity',
value: String(booking.value.quantity)
},
{
label: 'Seats Covered',
value: String(booking.value.seatCount)