Lines 2783-2789
sub CanBookBeRenewed {
Link Here
|
2783 |
return ( 0, 'overdue'); |
2783 |
return ( 0, 'overdue'); |
2784 |
} |
2784 |
} |
2785 |
|
2785 |
|
2786 |
$auto_renew = _CanBookBeAutoRenewed($borrowernumber, $itemnumber); |
2786 |
$auto_renew = _CanBookBeAutoRenewed({ |
|
|
2787 |
patron => $patron, |
2788 |
item => $item, |
2789 |
branchcode => $branchcode, |
2790 |
issue => $issue |
2791 |
}); |
2787 |
return ( 0, $auto_renew ) if $auto_renew =~ 'auto_account_expired'; |
2792 |
return ( 0, $auto_renew ) if $auto_renew =~ 'auto_account_expired'; |
2788 |
return ( 0, $auto_renew ) if $auto_renew =~ 'auto_too_late'; |
2793 |
return ( 0, $auto_renew ) if $auto_renew =~ 'auto_too_late'; |
2789 |
return ( 0, $auto_renew ) if $auto_renew =~ 'auto_too_much_oweing'; |
2794 |
return ( 0, $auto_renew ) if $auto_renew =~ 'auto_too_much_oweing'; |
Lines 4235-4246
sub _CalculateAndUpdateFine {
Link Here
|
4235 |
} |
4240 |
} |
4236 |
|
4241 |
|
4237 |
sub _CanBookBeAutoRenewed { |
4242 |
sub _CanBookBeAutoRenewed { |
4238 |
my ( $borrowernumber, $itemnumber ) = @_; |
4243 |
my ( $params ) = @_; |
4239 |
|
4244 |
my $patron = $params->{patron}; |
4240 |
my $item = Koha::Items->find($itemnumber); |
4245 |
my $item = $params->{item}; |
4241 |
my $issue = $item->checkout; |
4246 |
my $branchcode = $params->{branchcode}; |
4242 |
my $patron = $issue->patron; |
4247 |
my $issue = $params->{issue}; |
4243 |
my $branchcode = _GetCircControlBranch( $item->unblessed, $patron->unblessed ); |
|
|
4244 |
|
4248 |
|
4245 |
my $issuing_rule = Koha::CirculationRules->get_effective_rules( |
4249 |
my $issuing_rule = Koha::CirculationRules->get_effective_rules( |
4246 |
{ |
4250 |
{ |
4247 |
- |
|
|