|
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"); |