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