[Koha-bugs] [Bug 19336] Add option to fines.pl to apply maximal fine amount after delay

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 27 23:00:12 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19336

Alexis Ripetti <alexis.ripetti at inLibro.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #85920|0                           |1
        is obsolete|                            |

--- Comment #24 from Alexis Ripetti <alexis.ripetti at inLibro.com> ---
Created attachment 124197
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=124197&action=edit
Bug 19336: Add --maxfinesday option to fines.pl

This is a functionality we have for some of our clients we want to push
to the community.

Adds the --maxfinesday argument to fines.pl which creates or updates a
fine with the maximum amount set in the circulation rules after the
delay has passed.

e.g.:
./fines.pl --maxfinesdays 30
All item over 30 days late will have the maximal fine applied.

Here is a test plan I followed based on above.
Test plan:
1. Create circulation rule with Overdue fines cap set

2. Set finesMode systempreference to 'Calculate and charge'

3. Check out an item with the due date set 30 days ago

4. In Koha shell run ./fines.pl --maxfinesdays 30

5. There should now be a new fine in the accountlines table of the
amount set in overdue fines cap

Followed test plan, patch worked as intended

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list