Age to lost: Mark overdue loans as Aged to lost

Description

This is technical story needed to split effort for .

In scope of this story we have to implement Age to lost scheduled job described in the technical design.

Here is the overall algorithm of the job.

1. Scenario

  • Given Item Status = 'Claimed returned'

  • Then:

    • Do no further aged to lost processing for item

2. Scenario

  • Given Item Status NOT = 'Aged to lost' and NOT 'Claimed returned'

  • When Items aged to lost after overdue interval (see Lost Item Fee policy) = 0 or blank

  • Then:

    • Do no further aged to lost processing for item

3. Scenario

  • Given Item Status NOT = 'Aged to lost' and NOT 'Claimed returned'

  • When:

    • Items aged to lost after overdue interval > 0;

    • System date is NOT Items aged to lost after overdue interval (see Lost Item Fee policy) from item due date

  • Then:

    • Do no further aged to lost processing for item

4. Scenario

  • Given Item Status NOT = 'Aged to lost' and NOT 'Claimed returned'

  • When:

    • Items aged to lost after overdue interval > 0;

    • System date is or more then Items aged to lost after overdue interval from item due date

  • Then:

    • Set item status and loan.itemStatus = 'Aged to lost'

Acceptance criteria:

  • The job is implemented;

  • Unit tests are created;

  • Make sure all DB indexes in place;

Notes:

  • Dev only story;

Environment

None

Potential Workaround

None

Attachments

3

Checklist

hide

TestRail: Results

Activity

Show:

Cate Boerema August 21, 2020 at 8:09 AM

, I am tagging this with "demo95". We can demo it next week, since it has now passed test.

Holly Mistlebauer August 21, 2020 at 12:08 AM

I have tested the following:

  1. Items with an Item Status of 'Claimed returned' are not aged to lost

  2. Items that have a Lost Item Fee Policy indicating that the Actual cost should be used are not processed and retain their original status of 'Checked out'

  3. All other items that are overdue by the amount indicated in the Lost Item Fee Policy have their status changed to 'Aged to lost'

I still need to test the following, which I believe will be addressed by a separate JIRA user story:

  1. The correct _Lost Item Fee(s)_are charged

  2. Billing is delayed if institution has set up the policy that way

Holly Mistlebauer August 21, 2020 at 12:02 AM
Edited

Holly has attached her test plan: Aged2Lost-Test-Cases.xlsx
Holly has attached her test results: Inventory.jpg

Holly Mistlebauer August 20, 2020 at 6:59 PM

: So if I set some things up that should be aged to lost, they will be in 30 minutes or less? I will try it now...

Bohdan Suprun August 5, 2020 at 8:49 PM

Hi ,

This is now should be available for verification. The job is triggered every 30 mins and ages overdue loans to lost (except claimed returned).

Done

Details

Assignee

Reporter

Tester Assignee

Priority

Story Points

Sprint

Development Team

Prokopovych

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created July 21, 2020 at 8:22 AM
Updated November 19, 2020 at 5:41 PM
Resolved August 21, 2020 at 12:08 AM
TestRail: Cases
TestRail: Runs