fix: block 'Заселить' button for future bookings (checkIn > today)
Future bookings can only be checked in via the early check-in flow. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1272,7 +1272,7 @@ export function BookingDetailPanel({ booking, room, rooms, allBookings, slug, on
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{booking.status === 'confirmed' && (
|
{booking.status === 'confirmed' && booking.checkIn <= today && (
|
||||||
<button onClick={() => setStatus('checked_in')} className="w-full btn-primary justify-center">
|
<button onClick={() => setStatus('checked_in')} className="w-full btn-primary justify-center">
|
||||||
<CheckCircle size={15} /> Заселить
|
<CheckCircle size={15} /> Заселить
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user