|
Lines 2116-2131
sub AddReturn {
Link Here
|
| 2116 |
if C4::Context->preference("ReturnLog"); |
2116 |
if C4::Context->preference("ReturnLog"); |
| 2117 |
} |
2117 |
} |
| 2118 |
|
2118 |
|
| 2119 |
# Remove any OVERDUES related debarment if the borrower has no overdues |
|
|
| 2120 |
if ( $borrowernumber |
| 2121 |
&& $patron->debarred |
| 2122 |
&& C4::Context->preference('AutoRemoveOverduesRestrictions') |
| 2123 |
&& !Koha::Patrons->find( $borrowernumber )->has_overdues |
| 2124 |
&& @{ GetDebarments({ borrowernumber => $borrowernumber, type => 'OVERDUES' }) } |
| 2125 |
) { |
| 2126 |
DelUniqueDebarment({ borrowernumber => $borrowernumber, type => 'OVERDUES' }); |
| 2127 |
} |
| 2128 |
|
| 2129 |
# Check if this item belongs to a biblio record that is attached to an |
2119 |
# Check if this item belongs to a biblio record that is attached to an |
| 2130 |
# ILL request, if it is we need to update the ILL request's status |
2120 |
# ILL request, if it is we need to update the ILL request's status |
| 2131 |
if (C4::Context->preference('CirculateILL')) { |
2121 |
if (C4::Context->preference('CirculateILL')) { |
| 2132 |
- |
|
|