| Version 1 (modified by , 3 hours ago) ( diff ) |
|---|
Use-case 0014 - Cancel a Pending Booking
Initiating actor: Pet Owner
Other actors: None
Description: An owner decides they no longer need a sitter and cancels a pending booking request before the sitter accepts it or before payment is made.
Scenario:
- Pet Owner navigates to their "My Bookings" page.
- System fetches the owner's current pending bookings:
SELECT booking_id, date_from, address, status FROM bookings WHERE owner_id = (SELECT user_id FROM users WHERE username = 'owner_bojan') AND status = 'PENDING';
- Owner clicks the "Cancel Request" button.
- System updates the booking status:
UPDATE bookings SET status = 'CANCELLED' WHERE booking_id = ( SELECT booking_id FROM bookings WHERE status = 'PENDING' AND owner_id = (SELECT user_id FROM users WHERE username = 'owner_bojan') LIMIT 1 );
Note:
See TracWiki
for help on using the wiki.
