Backend - Aged to lost: Close loans when no fees charged - SET COST

Description

Purpose: To close the loan when an aged to lost item has has not been billed a Set Cost Lost Item Fee or a Set Cost Lost Item Fee with a Lost Item Processing Fee. If the patron was to be billed for the Actual Cost, the loan is not closed here.

Scenarios:

  1. Scenario

  • Given an open loan for a patron and item, and a lost item fee policy assigned to that combination of patron group, material type, location and loan type with the following aspects:

    • Charge amount for item: Set cost of 0

    • Lost item processing fee: set to 0

  • When the loan is aged to lost and billed (Loan Record lostItemHasBeenBilled = 'true)

  • Then:

    • create the following fees/fines in accordance with the lost item fee policy:

      • no fees

    • close the loan

Environment

None

Potential Workaround

None

Attachments

8

Checklist

hide

TestRail: Results

Activity

Show:

Holly Mistlebauer September 17, 2020 at 11:05 PM

Holly just retested this at https://folio-snapshot.dev.folio.org/ and it worked as expected. (See attached test plan CIRC-878_Retest.xlsx for details.) Thanks!

Bohdan Suprun September 14, 2020 at 8:29 AM

Hi ,

I've fixed it, please review.

Holly Mistlebauer September 10, 2020 at 6:41 PM
Edited

: We have agreed to go ahead and let the process work as is. It needs to work the same for immediate billings and delayed billings for set cost. Please fix that. The comment you are referring to has no instructions for you. It is my comment about what we could do and what I will talk to the RA SIG about.

Bohdan Suprun September 7, 2020 at 8:14 AM

Hi ,

You have clarified that this should be done only for immediate billings here.

Holly Mistlebauer September 5, 2020 at 1:29 AM

: Here is the error I found with this story...

If you look at the attached test plan CIRC-878_Test_Cases.jpg you will see the test cases I have tried and the results. I actually tried the same two test cases with 2 different patrons.

Test Case #1: Uses attached Lost Item Fee Policy holly-set-cost-0-no-processing-fee-bill-later.jpg, which charges no set cost and no lost item processing fee. Items age to lost after 1 minute and are billed after 45 minutes.
Test Case #2: Uses attached Lost Item Fee Policy holly-set-cost-0-no-processing-fee-bill-now.jpg, which charges no set cost and no lost item processing fee. Items age to lost after 1 minute and are billed immediately.

The only difference between the two test cases is that one should be billed immediately and the other should be billed after 45 minutes. The end result for both should be the same. Given that no fees are charged, the item should end up with an Item Status of 'Lost and paid' and the loan should end up closed. This happens correctly for items that are billed immediately (like Test Case #2), but not for items that are billed later (like Test Case #1).

If you look at the attached test plan you will see more details about each test case and the results. I have also attached screen prints of each Loan Details page and each Lost Item Fee Policy.

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 August 6, 2020 at 9:26 PM
Updated June 2, 2022 at 8:32 PM
Resolved September 17, 2020 at 11:05 PM
TestRail: Cases
TestRail: Runs