In order to support situations where billings should be generated on
specific circs, even when stop_fines is set, we allow a filter to
be passed. The default of not passing a filter is the same as requiring
that stop_fines be NULL, which is the pre-commit behavior.
We also remove a never-used parameter.
Signed-off-by: Mike Rylander <miker@esilibrary.com>
my $self = shift;
my $client = shift;
my $circ = shift;
- my $overbill = shift;
+ my $stop_fines_reasons = shift;
local $OpenILS::Application::Storage::WRITE = 1;
my @circs;
if ($circ) {
push @circs,
- action::circulation->search_where( { id => $circ, stop_fines => undef } ),
+ action::circulation->search_where( { id => $circ, stop_fines => $stop_fines_reasons } ),
booking::reservation->search_where( { id => $circ, return_time => undef, cancel_time => undef } );
} else {
push @circs, overdue_circs();