Allow fee/fine to be cancelled if remaining balance equals billed amount

Description

Overview
When we originally added the cancel fee/fine as an error option (see Fee/Fine Details page ERROR button and Fees/Fines History page ellipsis option ERROR), it was decided that only fees/fines with no ACTIONS against them would be allowed to be cancelled as an error. We need to change that validation to allow a fee/fine to be cancelled as an error if the remaining balance equals the billed amount, regardless of ACTIONS that may have taken place.
 
Real Life Example

  1. A patron asks to rent a carrel at the Main Library and pays the 30.00 fee.

  2. The patron realizes that the Science Library is a better location for her to use.

  3. The patron comes back to Main Library to request a refund of the 30.00.

  4. The library staff member opens the "Refund fee/fine" modal and refunds the 30.00 to the patron.

  5. After this happens, the fee/fine Remaining amount will go from 0.00 back to the original 30.00 the patron was billed.

  6. The library staff member wants to then cancel the fee/fine, but cannot because there have been ACTIONS on it.

  7. Instead, the library staff member will have to waive the fee/fine. This implies that the patron still has the carrel in Main Library, but we have decided to not make them pay for it.

  8. That is not actually what happened in this case. We need to be able to cancel the fee/fine as an error in situations like this.

 

Steps to Reproduce

  1. Login to Lotus BugFest as an admin user.

  2. Fine a test patron and bill them a manual fee/fine.

  3. Have the patron pay the manual fee/fine.

  4. Refund the patron for what they paid for the manual fee/fine.

  5. Attempt to cancel the fee/fine as an ERROR.

 

Actual Result
ERROR button in Fee/Fine Details is grayed out.
ERROR option in Fees/Fines History ellipsis is grayed out.
 
Expected Result
ERROR button in Fee/Fine Details is active, and cancels the fee/fine as an error if pushed.
ERROR option in Fees/Fines History ellipsis is active, and cancels the fee/fine as an error if selected.
 
Related Info
Holly has created https://folio-org.atlassian.net/browse/UXPROD-3645#icft=UXPROD-3645 to change the Refund fee/fine modal to allow the library staff member to indicate that the fee/fine should be canceled at the time of the refund. This is the ideal solutions. It might make more sense to work on https://folio-org.atlassian.net/browse/UXPROD-3645#icft=UXPROD-3645 instead of this story, although more work is required.|

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

2
  • 06 Jun 2022, 07:33 AM
  • 06 Jun 2022, 07:32 AM

Checklist

hide

TestRail: Results

Activity

Show:

Oleksandr Hrusha June 9, 2022 at 12:39 PM

Hi ! I have a question for behavior if patron pay and refund not a fully sum and just a some part of it. Should it be able to use cancel option?

Holly Mistlebauer June 7, 2022 at 7:45 PM

Works as expected! Thanks much...

Artem Blazhko June 6, 2022 at 7:35 AM

Hello .
Could you check this story, please? All changes are available on the snapshot environment.

Also, you can use my short demo recordings: 

 

Holly Mistlebauer June 1, 2022 at 12:27 AM

: I have added the information you requested. Thanks...

Artem Blazhko May 27, 2022 at 12:57 PM

Hello .

Could you please add to the ticket Actual and Expected results? And also would be great to have detailed steps on how to reproduce it. Thank you in advance.

 

cc: , ,  

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Vega

Fix versions

RCA Group

Incomplete/missing requirements

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created May 19, 2022 at 4:31 PM
Updated October 25, 2023 at 11:09 AM
Resolved June 7, 2022 at 7:45 PM
TestRail: Cases
TestRail: Runs

Flag notifications