BookingModal: replace guestName with FIO+phone fields, remove passport tab
- Add lastName/firstName/middleName/phone fields to booking form - Remove 'Документы гостя' tab entirely from BookingModal - Auto-parse existing guestName into FIO parts when editing - Add guestPhone to Booking type and propagate through CalendarPage/BookingsPage API calls - Add middle_name to guests table (migration 011) - Update guests backend route to include middle_name in all queries - Add middleName to GuestApiType in api.ts - Fix selectAcGuest in BookingDetailPanel to also fill middle_name - Auto-open guest form pre-filled with booking FIO when no guests exist - Add passport series+number lookup in BookingDetailPanel guest form Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
3
backend/migrations/011_guests_middle_name.sql
Normal file
3
backend/migrations/011_guests_middle_name.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- Add middle_name to guests table for autocomplete support
|
||||
ALTER TABLE guests
|
||||
ADD COLUMN IF NOT EXISTS middle_name VARCHAR(100);
|
||||
Reference in New Issue
Block a user