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

(-)a/C4/Circulation.pm (+10 lines)
Lines 44-49 use Koha::Biblioitems; Link Here
44
use Koha::DateUtils;
44
use Koha::DateUtils;
45
use Koha::Calendar;
45
use Koha::Calendar;
46
use Koha::Checkouts;
46
use Koha::Checkouts;
47
use Koha::Illrequests;
47
use Koha::Items;
48
use Koha::Items;
48
use Koha::Patrons;
49
use Koha::Patrons;
49
use Koha::Patron::Debarments;
50
use Koha::Patron::Debarments;
Lines 2130-2135 sub AddReturn { Link Here
2130
        DelUniqueDebarment({ borrowernumber => $borrowernumber, type => 'OVERDUES' });
2131
        DelUniqueDebarment({ borrowernumber => $borrowernumber, type => 'OVERDUES' });
2131
    }
2132
    }
2132
2133
2134
	# Check if this item belongs to a biblio record that is attached to an
2135
	# ILL request, if it is we need to update the ILL request's status
2136
	if (C4::Context->preference('CirculateILL')) {
2137
		my $request = Koha::Illrequests->find(
2138
			{ biblio_id => $item->biblio->biblionumber }
2139
		);
2140
		$request->status('RET') if $request;
2141
	}
2142
2133
    # Transfer to returnbranch if Automatic transfer set or append message NeedsTransfer
2143
    # Transfer to returnbranch if Automatic transfer set or append message NeedsTransfer
2134
    if (!$is_in_rotating_collection && ($doreturn or $messages->{'NotIssued'}) and !$resfound and ($branch ne $returnbranch) and not $messages->{'WrongTransfer'}){
2144
    if (!$is_in_rotating_collection && ($doreturn or $messages->{'NotIssued'}) and !$resfound and ($branch ne $returnbranch) and not $messages->{'WrongTransfer'}){
2135
        my $BranchTransferLimitsType = C4::Context->preference("BranchTransferLimitsType") eq 'itemtype' ? 'effective_itemtype' : 'ccode';
2145
        my $BranchTransferLimitsType = C4::Context->preference("BranchTransferLimitsType") eq 'itemtype' ? 'effective_itemtype' : 'ccode';
(-)a/Koha/Illrequest.pm (-2 / +10 lines)
Lines 498-504 sub _core_status_graph { Link Here
498
            method         => 'check_out',
498
            method         => 'check_out',
499
            next_actions   => [ ],
499
            next_actions   => [ ],
500
            ui_method_icon => 'fa-upload',
500
            ui_method_icon => 'fa-upload',
501
        }
501
        },
502
		RET => {
503
			prev_actions   => [ 'CHK' ],
504
			id             => 'RET',
505
			name           => 'Returned to library',
506
			ui_method_name => 'Check in',
507
			method         => 'check_in',
508
			next_actions   => [ 'COMP' ],
509
			ui_method_icon => 'fa-download',
510
		}
502
    };
511
    };
503
}
512
}
504
513
505
- 

Return to bug 23112