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

(-)a/C4/Circulation.pm (+10 lines)
Lines 46-51 use Koha::Biblioitems; Link Here
46
use Koha::DateUtils;
46
use Koha::DateUtils;
47
use Koha::Calendar;
47
use Koha::Calendar;
48
use Koha::Checkouts;
48
use Koha::Checkouts;
49
use Koha::Illrequests;
49
use Koha::IssuingRules;
50
use Koha::IssuingRules;
50
use Koha::Items;
51
use Koha::Items;
51
use Koha::Patrons;
52
use Koha::Patrons;
Lines 2105-2110 sub AddReturn { Link Here
2105
        DelUniqueDebarment({ borrowernumber => $borrowernumber, type => 'OVERDUES' });
2106
        DelUniqueDebarment({ borrowernumber => $borrowernumber, type => 'OVERDUES' });
2106
    }
2107
    }
2107
2108
2109
    # Check if this item belongs to a biblio record that is attached to an
2110
    # ILL request, if it is we need to update the ILL request's status
2111
    if (C4::Context->preference('CirculateILL')) {
2112
        my $request = Koha::Illrequests->find(
2113
            { biblio_id => $item->biblio->biblionumber }
2114
        );
2115
        $request->status('RET') if $request;
2116
    }
2117
2108
    # Transfer to returnbranch if Automatic transfer set or append message NeedsTransfer
2118
    # Transfer to returnbranch if Automatic transfer set or append message NeedsTransfer
2109
    if (!$is_in_rotating_collection && ($doreturn or $messages->{'NotIssued'}) and !$resfound and ($branch ne $returnbranch) and not $messages->{'WrongTransfer'}){
2119
    if (!$is_in_rotating_collection && ($doreturn or $messages->{'NotIssued'}) and !$resfound and ($branch ne $returnbranch) and not $messages->{'WrongTransfer'}){
2110
        my $BranchTransferLimitsType = C4::Context->preference("BranchTransferLimitsType");
2120
        my $BranchTransferLimitsType = C4::Context->preference("BranchTransferLimitsType");
(-)a/Koha/Illrequest.pm (-1 / +9 lines)
Lines 499-504 sub _core_status_graph { Link Here
499
            method         => 'check_out',
499
            method         => 'check_out',
500
            next_actions   => [ ],
500
            next_actions   => [ ],
501
            ui_method_icon => 'fa-upload',
501
            ui_method_icon => 'fa-upload',
502
        },
503
        RET => {
504
            prev_actions   => [ 'CHK' ],
505
            id             => 'RET',
506
            name           => 'Returned to library',
507
            ui_method_name => 'Check in',
508
            method         => 'check_in',
509
            next_actions   => [ 'COMP' ],
510
            ui_method_icon => 'fa-download',
502
        }
511
        }
503
    };
512
    };
504
}
513
}
505
- 

Return to bug 23112