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>
Mon, 27 Jan 2014 17:36:10 +0000 (12:36 -0500)
commit4dcde4d764fbe8bb9fe7ffb022b528ded904fed1
tree7ca80f9d40dfa2298e035873c50935a158e099c2
parent0996ba038300c647351d52647862134bc678131e
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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm