fix: reminders include contacted bookings, confirmation details persist after status revert

- Reminders query now includes 'contacted' group bookings with confirmed_date,
  preventing people from being forgotten when admin hasn't clicked "Подтвердить"
- Confirmation details (group, date) remain visible regardless of booking status,
  so "Вернуть" no longer hides previously entered info
This commit is contained in:
2026-03-24 15:26:05 +03:00
parent c87c63bc4f
commit 669c4a3023
2 changed files with 2 additions and 2 deletions

View File

@@ -868,7 +868,7 @@ export function getUpcomingReminders(): ReminderItem[] {
// Group bookings — confirmed with date today/tomorrow
try {
const gbRows = db.prepare(
"SELECT * FROM group_bookings WHERE status = 'confirmed' AND confirmed_date IN (?, ?)"
"SELECT * FROM group_bookings WHERE status IN ('confirmed', 'contacted') AND confirmed_date IN (?, ?)"
).all(today, tomorrow) as GroupBookingRow[];
for (const r of gbRows) {
items.push({