Middle-layer support for the org unit setting "Leave transaction
open when long overdue balance equals zero". It behaves the same
as "Leave transaction open when lost balance equals zero", but for
long-overdue circs.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
)
);
}
+
+ } elsif ($reason eq OILS_STOP_FINES_LONGOVERDUE) {
+ # Check the copy circ_lib to see if they close
+ # transactions when long-overdue are paid.
+ my $copy = $e->retrieve_asset_copy($circ->target_copy);
+ if ($copy) {
+ $can_close = !$U->is_true(
+ $U->ou_ancestor_setting_value(
+ $copy->circ_lib,
+ 'circ.longoverdue.xact_open_on_zero',
+ $e
+ )
+ );
+ }
}
+
return $can_close;
}