|
Lines 2790-2796
sub CanBookBeRenewed {
Link Here
|
| 2790 |
return ( 0, 'overdue'); |
2790 |
return ( 0, 'overdue'); |
| 2791 |
} |
2791 |
} |
| 2792 |
|
2792 |
|
| 2793 |
$auto_renew = _CanBookBeAutoRenewed($borrowernumber, $itemnumber); |
2793 |
$auto_renew = _CanBookBeAutoRenewed({ |
|
|
2794 |
patron => $patron, |
| 2795 |
item => $item, |
| 2796 |
branchcode => $branchcode, |
| 2797 |
issue => $issue |
| 2798 |
}); |
| 2794 |
return ( 0, $auto_renew ) if $auto_renew =~ 'auto_account_expired'; |
2799 |
return ( 0, $auto_renew ) if $auto_renew =~ 'auto_account_expired'; |
| 2795 |
return ( 0, $auto_renew ) if $auto_renew =~ 'auto_too_late'; |
2800 |
return ( 0, $auto_renew ) if $auto_renew =~ 'auto_too_late'; |
| 2796 |
return ( 0, $auto_renew ) if $auto_renew =~ 'auto_too_much_oweing'; |
2801 |
return ( 0, $auto_renew ) if $auto_renew =~ 'auto_too_much_oweing'; |
|
Lines 4237-4248
sub _CalculateAndUpdateFine {
Link Here
|
| 4237 |
} |
4242 |
} |
| 4238 |
|
4243 |
|
| 4239 |
sub _CanBookBeAutoRenewed { |
4244 |
sub _CanBookBeAutoRenewed { |
| 4240 |
my ( $borrowernumber, $itemnumber ) = @_; |
4245 |
my ( $params ) = @_; |
| 4241 |
|
4246 |
my $patron = $params->{patron}; |
| 4242 |
my $item = Koha::Items->find($itemnumber); |
4247 |
my $item = $params->{item}; |
| 4243 |
my $issue = $item->checkout; |
4248 |
my $branchcode = $params->{branchcode}; |
| 4244 |
my $patron = $issue->patron; |
4249 |
my $issue = $params->{issue}; |
| 4245 |
my $branchcode = _GetCircControlBranch( $item->unblessed, $patron->unblessed ); |
|
|
| 4246 |
|
4250 |
|
| 4247 |
my $issuing_rule = Koha::CirculationRules->get_effective_rules( |
4251 |
my $issuing_rule = Koha::CirculationRules->get_effective_rules( |
| 4248 |
{ |
4252 |
{ |
| 4249 |
- |
|
|