Details
-
Story
-
Status: Closed (View Workflow)
-
P2
-
Resolution: Done
-
None
-
None
-
-
EPAM-Veg Sprint 143, EPAM-Veg Sprint 144, EPAM-Veg Sprint 145, EPAM-Veg Sprint 146, EPAM-Veg Sprint 147, EPAM-Veg Sprint 148
-
5
-
Vega
Description
Updates on February 7: Holly was asked to split scenarios 1-6 from UIU-1605 into a separate backend story, This is the BE story.
Purpose: Close the loan for a declared lost item with a lost item fee policy stipulating actual cost. Reflect the closed loan in the loan details and user's loan history.
Two potential triggers for closing the loan are described in this story:
- User pays actual cost (and lost item processing fee, if applicable), and there is neither an open actual cost fee nor an open lost item processing fee associated with the loan (see scenarios 1-2)
- Enough time elapses after the item has been declared lost without the actual cost fee being charged (see scenarios 5-6)
- This trigger should be ignored if there is still an open lost item processing fee associated with the loan, or if the actual cost fee has in fact been charged (see scenarios 3-4)
Scenarios
- Scenario
- Given a loan for a declared lost item with the following qualities:
- Lost item fee policy:
- charge amount set to Actual cost
- “For lost items not charged a fee/fine” interval X
- lost item processing fee = 0 or not charged for declared lost items
- actual cost fee has been charged and is open
- Lost item fee policy:
- When the actual cost fee is paid
- Then:
- close the loan
- change the item status to lost and paid
- Given a loan for a declared lost item with the following qualities:
- Scenario
- Given a loan for a declared lost item with the following qualities:
- Lost item fee policy:
- charge amount set to Actual cost
- “For lost items not charged a fee/fine” interval X
- lost item processing fee > 0
- actual cost fee has been charged and is open
- Lost item fee policy:
- When both the actual cost fee and lost item processing fee are closed
- Then
- close the loan
- change the item status to lost and paid
- Given a loan for a declared lost item with the following qualities:
- Scenario
- Given a loan for a declared lost item with the following qualities:
- Lost item fee policy:
- charge amount set to Actual cost
- “For lost items not charged a fee/fine” interval X
- lost item processing fee = 0 or not charged for declared lost items
- actual cost fee has been charged and is open
- Lost item fee policy:
- When time X elapses
- Then:
- do not close the loan
- do not change the item status to lost and paid
- Given a loan for a declared lost item with the following qualities:
- Scenario
- Given a loan for a declared lost item with the following qualities:
- Lost item fee policy:
- charge amount set to Actual cost
- “For lost items not charged a fee/fine” interval X
- lost item processing fee > 0
- the actual cost fee, the lost item processing fee, or both are open
- Lost item fee policy:
- When time X elapses
- Then:
- do not close the loan
- do not change the item status to lost and paid
- Given a loan for a declared lost item with the following qualities:
- Scenario
- Given a loan for a declared lost item with the following qualities:
- Lost item fee policy:
- charge amount set to Actual cost
- “For lost items not charged a fee/fine” interval X
- lost item processing fee > 0
- lost item processing fee is closed
- not actual cost fee has been charged
- Lost item fee policy:
- When time X elapses
- Then:
- close the loan
- change the item status to lost and paid
- Given a loan for a declared lost item with the following qualities:
- Scenario
- Given a loan for a declared lost item with the following qualities:
- Lost item fee policy:
- charge amount set to Actual cost
- “For lost items not charged a fee/fine” interval X
- lost item processing fee = 0 or not charged for declared lost items
- actual cost fee has not been charged
- Lost item fee policy:
- When time X elapses
- Then:
- close the loan
- change the item status to lost and paid
- Given a loan for a declared lost item with the following qualities:
Notes:
- If the Actual cost fee has not been charged to the patron yet, but is expected according to the fee/fine policy, the loan should not be closed.
- Whether or not an Actual cost fee is owed should be determined when the item is declared lost. If some aspect determining the circulation rule/lost item fee policy changes between when the item was declared lost and when the fees were charged or paid, adhere to the lost item fee policy in place when the item was declared lost.
- Other fees or fines may exist on the loan that are not related to its being declared lost. These should not block the loan from closing once all lost item fees are paid.
TestRail: Results
Attachments
Issue Links
- blocks
-
CIRC-746 BE: Check in: lost and paid items
-
- Closed
-
-
CIRC-747 BE: Check out Lost and paid item
-
- Closed
-
-
CIRC-748 BE: Lost and paid: prevent all request types
-
- Closed
-
- clones
-
UIU-1605 Closing declared lost loan (Lost and paid status) for actual cost
-
- Closed
-
- defines
-
UXPROD-2391 Loan: (BE) Declared Lost/Aged to Lost using ACTUAL COST
-
- Closed
-
- is blocked by
-
CIRC-707 BE - Declared lost item: Assign fees when declared lost w/ SET COST
-
- Closed
-
-
CIRC-714 BACKEND - Declared lost item: Assign fees when declared lost with ACTUAL COST
-
- Closed
-
-
CIRC-819 Aged to lost: Automatically age overdue items to lost - ACTUAL COST
-
- Closed
-
-
CIRCSTORE-175 Backend for Mark item Declared lost
-
- Closed
-
-
UIU-1202 Mark item Declared lost
-
- Closed
-
-
UIU-1203 Declared lost item: Display fees when declared lost with SET COST
-
- Closed
-
-
UIU-1580 Declared lost item: Assign fees when declared lost with actual cost
-
- Closed
-
-
UIU-1593 Declared lost item: Manual fee setting for ACTUAL COST fee/fine type
-
- Closed
-
- relates to
-
CIRC-715 Backend: Declared lost item: Close loans when no fees charged - SET COST
-
- Closed
-
-
UIU-1491 Declared lost item: Close loans when no fees charged
-
- Closed
-