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)
committerKathy Lussier <klussier@masslnc.org>
Thu, 13 Feb 2014 05:44:17 +0000 (00:44 -0500)
commit8531fe732347d8b8023c3d2d4a41e8ce740ed11c
tree7cca78f1e289f8ac980da1d2c4de4c9793b878d4
parent9deec0da5c74112c8e46b6e1316eded250c0fb07
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