r-adelaide / cheltham

Library management app for Salesforce
1 stars 10 forks source link

Ability to borrow and return books #16

Open azotpdl0 opened 4 years ago

azotpdl0 commented 4 years ago

For the MVP, the user should be able to BORROW and RETURN books to the library.

The library user should be able to BORROW a book, that book is then marked as UNAVAILABLE which in turn is made unavailable to other library users who try to borrow the same book.

Future iterations

azotpdl0 commented 4 years ago

Borrow

  1. A user is able to borrow a book which status is currently set to AVAILABLE.
  2. If a book is set to LOANED which a user would like to borrow, they are able to join the queue
  3. A user should not be able to borrow a book which is set to LOANED.
  4. One user is able to borrow a maximum of 3 books at one time.
  5. A user is able to temporarily extend their maximum number of borrowed books if it’s for a specific scenario (teaching a topic)
  6. A record is created in the BORROW object upon a user borrowing a book.
  7. The user will be able to see when the book is due to be returned.
  8. A user should not be able to borrow a book if their membership is set to expire (e.g. They want to borrow a book on the 26th June, but their membership runs out on the 5th of August)
  9. If an administrator tries to delete a book which is currently set to LOAN, they will be unable to delete the book.

Acceptance Criteria:

Return

  1. A record will be deleted in the BORROW object upon a user returning a book. This record will however be stored in history.
  2. If a book returned a book title and borrows the same book title again. This should be successful as the book copy primary key is done by the ID and not the title.
  3. A user will be able to report any problems they had with the book such as damage.

Acceptance Criteria:

ANOTHER ISSUE - Lost Book - DEPENDENCY ON SUPPORT PORTAL https://github.com/r-adelaide/cheltham/issues/31

If a user has lost their book, they will have to submit a support ticket. This will be reviewed and then a strike will be placed on their account. If the user loses more than three books, they will lose access to the library.

Acceptance Criteria: