Bug 29145: (QA follow-up) Add missing POD and don't return undef
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
0a66a4879a
commit
12a6d4d4ba
1 changed files with 9 additions and 1 deletions
|
@ -1014,6 +1014,15 @@ sub has_overdues {
|
|||
return $self->_result->issues->search({ date_due => { '<' => $dtf->format_datetime($date) } })->count;
|
||||
}
|
||||
|
||||
|
||||
=head3 has_debarring_overdues
|
||||
|
||||
my $has_debarring_overdues = $patron->has_debarring_overdues({ issue_branchcode => $branchcode });
|
||||
|
||||
Returns true if patron has overdues that would result in debarment.
|
||||
|
||||
=cut
|
||||
|
||||
sub has_debarring_overdues {
|
||||
my ($self, $params) = @_;
|
||||
$params //= {};
|
||||
|
@ -1082,7 +1091,6 @@ sub _get_overdue_debarred_delay {
|
|||
return $overdue_rules->{"delay2"} if($overdue_rules->{"debarred2"});
|
||||
return $overdue_rules->{"delay3"} if($overdue_rules->{"debarred3"});
|
||||
}
|
||||
return undef;
|
||||
}
|
||||
|
||||
=head3 track_login
|
||||
|
|
Loading…
Reference in a new issue