LP 1198465: Fix reverse sort logic for generate_fines in Storage/Publisher/action.pm.
authorJason Stephenson <jason@sigio.com>
Tue, 21 Jan 2014 15:32:51 +0000 (10:32 -0500)
committerJason Stephenson <jason@sigio.com>
Thu, 20 Feb 2014 23:07:17 +0000 (18:07 -0500)
commit13f0fead39682a642f003a6bc55c388b2fd43670
treeea982915bd4700d7b4b9c8902526c92084c6f697
parent24cd75975a1c70c2bb2a4011b137579ab9142985
LP 1198465: Fix reverse sort logic for generate_fines in Storage/Publisher/action.pm.

We were getting multiple overdue billings for a single period because the
@fine_map was coming up empty owing to convoluted logic.  This commit
simplifies that logic and fixes another logic bug in calculating the total
of the current fines.  In the latter case, we had a < where we needed >.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm