Open MatchaRRR opened 1 week ago
A user can further book, or a car can be further booked when the transaction relating to that one user or that one car is marked done or removed. This is too ensure the logic of car and user management for car rental companies.
You can refer to practical applications like Grab. For Grab Advance Booking, when you book a ride beforehand, you cannot book another ride if you haven't completed your current ride.
We built this constraint to make sure the car rental functions in real life, if we allow users to make multiple bookings, some people will argue otherwise.
Team chose [response.Rejected
]
Reason for disagreement: Garb's logic applies in the case of taxi cabs; it is true that a user cannot take two cabs at the same time. But in real life, it should be reasonable to hire two cars at the same time in the name of one user.
One customer cannot rent two cars in this system, which is not practical in reality. And this case will show the same error message as the case where the user tries to rent an unavailable car.
Perhaps it is possible to distinguish between these two situations?