View | Details | Raw Unified | Return to bug 27032
Collapse All | Expand All

(-)a/C4/Circulation.pm (-8 / +11 lines)
Lines 2791-2797 sub CanBookBeRenewed { Link Here
2791
            return ( 0, 'overdue');
2791
            return ( 0, 'overdue');
2792
        }
2792
        }
2793
2793
2794
        $auto_renew = _CanBookBeAutoRenewed($borrowernumber, $itemnumber);
2794
        $auto_renew = _CanBookBeAutoRenewed({
2795
            patron     => $patron,
2796
            item       => $item,
2797
            branchcode => $branchcode,
2798
            issue      => $issue
2799
        });
2795
        return ( 0, $auto_renew  ) if $auto_renew =~ 'auto_account_expired';
2800
        return ( 0, $auto_renew  ) if $auto_renew =~ 'auto_account_expired';
2796
        return ( 0, $auto_renew  ) if $auto_renew =~ 'auto_too_late';
2801
        return ( 0, $auto_renew  ) if $auto_renew =~ 'auto_too_late';
2797
        return ( 0, $auto_renew  ) if $auto_renew =~ 'auto_too_much_oweing';
2802
        return ( 0, $auto_renew  ) if $auto_renew =~ 'auto_too_much_oweing';
Lines 4271-4282 sub _CalculateAndUpdateFine { Link Here
4271
}
4276
}
4272
4277
4273
sub _CanBookBeAutoRenewed {
4278
sub _CanBookBeAutoRenewed {
4274
    my ( $borrowernumber, $itemnumber ) = @_;
4279
    my ( $params ) = @_;
4275
4280
    my $patron = $params->{patron};
4276
    my $item = Koha::Items->find($itemnumber);
4281
    my $item = $params->{item};
4277
    my $issue = $item->checkout;
4282
    my $branchcode = $params->{branchcode};
4278
    my $patron = $issue->patron;
4283
    my $issue = $params->{issue};
4279
    my $branchcode = _GetCircControlBranch( $item->unblessed, $patron->unblessed );
4280
4284
4281
    my $issuing_rule = Koha::CirculationRules->get_effective_rules(
4285
    my $issuing_rule = Koha::CirculationRules->get_effective_rules(
4282
        {
4286
        {
4283
- 

Return to bug 27032