Closed AdamVig closed 7 years ago
The itemStatus view, used for GET /item/:barcode/status, was added before rental.returnDate was used to mark the return of items. The view must be changed to use rental.returnDate to determine the availability of items.
itemStatus
GET /item/:barcode/status
rental.returnDate
Fixed by changing the logic for determining availability to the following: isnull(rental.rentalID) or not isnull(rental.returnDate) as available
isnull(rental.rentalID) or not isnull(rental.returnDate) as available
The
itemStatus
view, used forGET /item/:barcode/status
, was added beforerental.returnDate
was used to mark the return of items. The view must be changed to userental.returnDate
to determine the availability of items.