Lines 2182-2187
sub MarkIssueReturned {
Link Here
|
2182 |
# Create the old_issues entry |
2182 |
# Create the old_issues entry |
2183 |
my $old_checkout = Koha::Old::Checkout->new($issue->unblessed)->store; |
2183 |
my $old_checkout = Koha::Old::Checkout->new($issue->unblessed)->store; |
2184 |
|
2184 |
|
|
|
2185 |
# Update accountlines |
2186 |
my $accountlines = |
2187 |
Koha::Account::Lines->search( { issue_id => $issue->issue_id } ); |
2188 |
$accountlines->update({ old_issue_id => $issue->issue_id, issue_id => undef }); |
2189 |
|
2185 |
# anonymise patron checkout immediately if $privacy set to 2 and AnonymousPatron is set to a valid borrowernumber |
2190 |
# anonymise patron checkout immediately if $privacy set to 2 and AnonymousPatron is set to a valid borrowernumber |
2186 |
if ( $privacy == 2) { |
2191 |
if ( $privacy == 2) { |
2187 |
$old_checkout->borrowernumber($anonymouspatron)->store; |
2192 |
$old_checkout->borrowernumber($anonymouspatron)->store; |
2188 |
- |
|
|