]> git.evergreen-ils.org Git - Evergreen.git/commit
truncate fines to max fine amount (LP#1145284)
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Mon, 4 Mar 2013 21:42:08 +0000 (13:42 -0800)
committerMike Rylander <mrylander@gmail.com>
Tue, 5 Mar 2013 20:09:03 +0000 (15:09 -0500)
commite902bba4ca0dbb845abb7d7aac47cc5bb91d11f9
treeab5c5dd53864efc723a478847adeac7f075c0036
parent127baa9fc39d3b0587fe0f6b5c09bd16c3d0f414
truncate fines to max fine amount (LP#1145284)

When the max fine amount is not a multiple of the recurring fine amount,
fines will actually max out at an amount greater than the max fine
value.  This commit adds YAOUS and some simple functionality to
optionally truncate the final amount billed to the max fine amount.

For example, if max fine is $5.00 and recurring fine is $0.30, the 17th
billing will bring the total amount billed to $5.10 (17 x $0.30),
thereby exceeding the max fine amount.  With this commit, if
circ.fines.truncate_to_max_fine is true, the final billing amount will
be reduced and the total amount billed will be $5.00.

Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm
Open-ILS/src/sql/Pg/upgrade/XXXX.data.truncate-to-max-fine-setting.sql [new file with mode: 0644]