|
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 2108-2113
sub AddReturn {
Link Here
|
| 2108 |
DelUniqueDebarment({ borrowernumber => $borrowernumber, type => 'OVERDUES' }); |
2109 |
DelUniqueDebarment({ borrowernumber => $borrowernumber, type => 'OVERDUES' }); |
| 2109 |
} |
2110 |
} |
| 2110 |
|
2111 |
|
|
|
2112 |
# Check if this item belongs to a biblio record that is attached to an |
| 2113 |
# ILL request, if it is we need to update the ILL request's status |
| 2114 |
if (C4::Context->preference('CirculateILL')) { |
| 2115 |
my $request = Koha::Illrequests->find( |
| 2116 |
{ biblio_id => $item->biblio->biblionumber } |
| 2117 |
); |
| 2118 |
$request->status('RET') if $request; |
| 2119 |
} |
| 2120 |
|
| 2111 |
# Transfer to returnbranch if Automatic transfer set or append message NeedsTransfer |
2121 |
# Transfer to returnbranch if Automatic transfer set or append message NeedsTransfer |
| 2112 |
if (!$is_in_rotating_collection && ($doreturn or $messages->{'NotIssued'}) and !$resfound and ($branch ne $returnbranch) and not $messages->{'WrongTransfer'}){ |
2122 |
if (!$is_in_rotating_collection && ($doreturn or $messages->{'NotIssued'}) and !$resfound and ($branch ne $returnbranch) and not $messages->{'WrongTransfer'}){ |
| 2113 |
my $BranchTransferLimitsType = C4::Context->preference("BranchTransferLimitsType"); |
2123 |
my $BranchTransferLimitsType = C4::Context->preference("BranchTransferLimitsType"); |