Bug 18501

Summary: Automatic refunds need protection from failure
Product: Koha Reporter: Christopher Brannon <cbrannon>
Component: CirculationAssignee: Alex Buckley <alexbuckley>
Status: ASSIGNED --- QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: alexbuckley, gmcharlt, kyle.m.hall
Version: master   
Hardware: All   
OS: All   
Whiteboard:
Change sponsored?: --- Patch complexity: ---
Bot Control: --- When did the bot last check this:
Who signed the patch off: Text to go in the release notes:

Description Christopher Brannon 2017-04-27 14:35:07 UTC
I am told that the auto refund feature can fail if the status is edited in the item edit screen.  There should be some protection in place to keep this from failing so easily and quietly.

Possible solutions might be:
1) Prevent status from being edited if a fee has been charged for that item.
2) A warning and confirmation of action when the status is being edited and there is a fee involved.
3) An authorized override for such a change.
4) A note in the patron account lines indicating status was change and an auto refund will not be possible.
5) The ability to auto refund, even after the status has been altered.

I am marking this as a bug, because I cannot see how the current behavior could be a desired function.  Failure is not an option.