LP#1671856 Mark lost voids overdues / no adjustements
authorBill Erickson <berickxx@gmail.com>
Thu, 9 Mar 2017 17:50:07 +0000 (12:50 -0500)
committerBill Erickson <berickxx@gmail.com>
Fri, 10 Mar 2017 15:55:38 +0000 (10:55 -0500)
Use 'void' consistently to undo an overdue billing when no
negative-balance settings are applied.  This resolves an inconsistency
where traditional voiding is generally used, except in the special case
of undoing overdue fines when marking an item lost.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm

index a07c9be..40ec2d1 100644 (file)
@@ -817,7 +817,8 @@ sub set_item_lost_or_lod {
     # ---------------------------------------------------------------------
     # zero out overdue fines on this circ if configured
     if( $void_overdue ) {
-        my $evt = OpenILS::Application::Circ::CircCommon->void_or_zero_overdues($e, $circ, {force_zero => 1, note => "System: OVERDUE REVERSED for " . $args{bill_note} . " Processing"});
+        my $evt = OpenILS::Application::Circ::CircCommon->void_or_zero_overdues(
+            $e, $circ, {note => "System: OVERDUE REVERSED for " . $args{bill_note} . " Processing"});
         return $evt if $evt;
     }