Details
-
Story
-
Status: Closed (View Workflow)
-
P2
-
Resolution: Done
-
None
-
-
Core: F - Sprint 95, Core: F - Sprint 96, Core: F - Sprint 97
-
13
-
Prokopovych
Description
This is technical story needed to split effort for CIRC-737.
In scope of this story we have to implement Assign fees scheduled job described in the technical design.
Here is the overall algorithm of the job.
1. Scenario
- Given Item Status = 'Aged to lost' and Loan Record field lostItemHasBeenBilled = "false"
- When Loan Record field dateLostItemShouldBeBilled > System Date
- Then:
- Do no further aged to lost processing for item
2. Scenario
- Given Item Status = 'Aged to lost' and Loan Record field lostItemHasBeenBilled = "false"
- When:
- Loan Record field dateLostItemShouldBeBilled <= System Date;
- Lost item fee policy set to use Actual cost
- Then:
- Set lostItemHasBeenBilled = "true" (Per Holly)
- Do no further aged to lost processing for item
(Note:UIU-1500will take care of changing the status of this item and closing the loan)
3. Scenario
- Given Item Status = 'Aged to lost' and Loan Record field lostItemHasBeenBilled = "false"
- When:
- Loan Record field dateLostItemShouldBeBilled <= System Date;
- Lost item fee policy Set cost = 0 or blank;
- Charge lost item processing fee if item aged to lost by system = No
- Then:
- Set lostItemHasBeenBilled to "true"
- Set dateLostItemShouldBeBilled to blank
- Do no further aged to lost processing for item
4. Scenario (any (both) lost fee is assigned)
- Given Item Status = 'Aged to lost' and Loan Record field lostItemHasBeenBilled = "false"
- When:
- Loan Record field dateLostItemShouldBeBilled <= System Date;
- Any lost fee (Lost item or Lost item processing or both) should be charged;
- Then:
- Set lostItemHasBeenBilled to "true"
- Set dateLostItemShouldBeBilled to blank
- Assign lost item fee (if applicable):
- Fee/fine type = "Lost item fee"
- Fee/fine owner = Use Barcode to locate Item Record; Use Holdings Location: Permanent location from Item Record to find Primary service point within Settings>Tenant>Service Points; Use Service Point in Settings>Users>Fee/Fine: Owners to find associated Fee/fine owner
- Billed date = System date and time
- Billed amount = Charge amount for item
- Remaining amount = Charge amount for item
- Payment status = "Outstanding"
- Loan details = link to loan record
- Overdue policy = Overdue fine policy link from Loan record
- Lost item policy = Lost item fee policy link from Loan record
- Action date = System date and time
- Action = "Lost item fee"
- Amount = Charge amount for item
- Balance = Charge amount for item
- Transaction information = blank
- Created at = "-"
- Source should be "System"
- Additional information = blank
- Assign lost item processing fee (if applicable):
- Fee/fine type = "Lost item processing fee"
- Fee/fine owner = Use Barcode to locate Item Record; Use Holdings Location: Permanent location from Item Record to find Primary service point within Settings>Tenant>Service Points; Use Service Point in Settings>Users>Fee/Fine: Owners to find associated Fee/fine owner
- Billed date = System date and time
- Billed amount = Lost item processing fee
- Remaining amount = Lost item processing fee
- Payment status = "Outstanding"
- Loan details = link to loan record
- Overdue policy = Overdue fine policy link from Loan record
- Lost item policy = Lost item fee policy link from Loan record
- Action date = System date and time
- Action = "Lost item processing fee"
- Amount = Lost item processing fee
- Balance = Lost item processing fee
- Transaction information = blank
- Created at = "-"
- Source = "System"
- Additional information = blank
Acceptance criteria:
- The job is implemented;
- Unit tests are created;
- Make sure all DB indexes in place;
Notes:
- Dev only story;
TestRail: Results
Attachments
Issue Links
- defines
-
CIRC-737 Aged to lost: Automatically age overdue items to lost - SET COST
-
- Closed
-
-
UXPROD-87 Loan: Aged to Lost using SET COST
-
- Closed
-
- has to be done after
-
CIRC-851 Age to lost: Mark overdue loans as Aged to lost
-
- Closed
-
-
CIRC-854 Age to lost: Add billing date and time when aging an item to lost - SET COST
-
- Closed
-
-
MODINVSTOR-503 Add 'Aged to lost' status to allowed item statuses list
-
- Closed
-
- is cloned by
-
CIRC-894 Age to lost: Assign lost fees for aged to lost loans - ACTUAL COST
-
- Closed
-
- relates to
-
CIRC-889 Extra "Aged to lost" loan action is created when aged to lost loan is billed
-
- Closed
-
-
CIRC-914 Aged to lost: Assign lost fees for aged to lost loans (omissions from CIRC-852)
-
- Closed
-
-
CIRC-1432 Aged to lost: Assign lost fees for aged to lost loans (omissions from CIRC-852)
-
- Closed
-
-
UIU-1820 Filter out blank actions on loan details UI
-
- Closed
-
-
CIRC-922 Wrong location used to determine fee/fine owner for items aged to lost
-
- Closed
-