my $proc_fee = $U->ou_ancestor_setting_value(
$owning_lib, 'circ.damaged_item_processing_fee', $e) || 0;
+ my $void_overdue = $U->ou_ancestor_setting_value(
+ $owning_lib, 'circ.damaged.void_ovedue', $e) || 0;
+
return undef unless $charge_price or $proc_fee;
my $copy_price = ($charge_price) ? $U->get_copy_price($e, $copy) : 0;
return $evt if $evt;
}
+ # the assumption is that you would not void the overdues unless you
+ # were also charging for the item and/or applying a processing fee
+ if($void_overdue) {
+ my $evt = OpenILS::Application::Circ::CircCommon->void_overdues($e, $circ);
+ return $evt if $evt;
+ }
+
my $evt = OpenILS::Application::Circ::CircCommon->reopen_xact($e, $circ->id);
return $evt if $evt;