Lines 864-874
sub _set_found_trigger {
Link Here
|
864 |
$credit = $account->add_credit( |
864 |
$credit = $account->add_credit( |
865 |
{ |
865 |
{ |
866 |
amount => $credit_total, |
866 |
amount => $credit_total, |
867 |
description => 'Item found ' . $item_id, |
867 |
description => 'Item found ' . $self->itemnumber, |
868 |
type => 'LOST_FOUND', |
868 |
type => 'LOST_FOUND', |
869 |
interface => C4::Context->interface, |
869 |
interface => C4::Context->interface, |
870 |
library_id => $branchcode, |
870 |
library_id => $branchcode, |
871 |
item_id => $itemnumber |
871 |
item_id => $self->itemnumber, |
|
|
872 |
issue_id => $accountline->issue_id |
872 |
} |
873 |
} |
873 |
); |
874 |
); |
874 |
|
875 |
|
Lines 877-884
sub _set_found_trigger {
Link Here
|
877 |
} |
878 |
} |
878 |
|
879 |
|
879 |
# Update the account status |
880 |
# Update the account status |
880 |
$accountline->discard_changes->status('FOUND') |
881 |
$accountline->status('FOUND'); |
881 |
; # FIXME JD Why discard_changes? $accountline has not been modified since last fetch |
|
|
882 |
$accountline->store; |
882 |
$accountline->store; |
883 |
|
883 |
|
884 |
if ( defined $account and C4::Context->preference('AccountAutoReconcile') ) { |
884 |
if ( defined $account and C4::Context->preference('AccountAutoReconcile') ) { |
885 |
- |
|
|