You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add-book The Great Gatsby a/F. Scott Fitzgerald cat/Fiction cond/Good loc/Shelf B1
63
+
add-book Great Gatsby a/Fitzgerald cat/Fiction cond/Good loc/Shelf B1
64
64
```
65
65
66
66
or
67
67
68
68
```
69
-
add-book The Great Gatsby a/F. Scott Fitzgerald cat/Fiction cond/Good loc/Shelf B1 note/important
69
+
add-book Great Gatsby a/Fitzgerald cat/Fiction cond/Good loc/Shelf B1 note/important
70
70
```
71
71
72
+
Expected Outcome:
73
+
74
+
```
75
+
New book added: Great Gatsby
76
+
```
77
+
78
+
#### Adding a Title that already exists in inventory
79
+
80
+
BookKeeper does not support multiple copies of books with the same title. If the the user attempts to add a duplicate title, the system will not permit the addition. You will see an error message indicating that the book already exists.
add-loan The Great Gatsby n/John Doe d/2023-12-01 p/98765432 e/abc123@gmail.com
255
+
add-loan Great Gatsby n/John Doe d/2023-12-01 p/98765432 e/abc123@gmail.com
256
+
```
257
+
258
+
Expected Output:
259
+
260
+
```
261
+
Loan added successfully for book: Great Gatsby
166
262
```
167
263
168
264
#### Adding a Loan for a Book Already on Loan
169
265
170
266
If the book is already on loan, the system will not allow adding another loan for the same book. You will see an error message indicating that the book is unavailable.
171
267
172
268
Example:
173
-
`Error: The book "The Great Gatsby" is already on loan.`
269
+
`Error: The book "Great Gatsby" is already on loan.`
0 commit comments