(bug #3432) fix return of lost items

This patch delete some useless code, and fix the problem that if a lost item is returned, the lost flag is not deleted.

Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
Nahuel ANGELINETTI 2009-07-21 09:28:19 +02:00 committed by Henri-Damien LAURENT
parent 5da38d9ce6
commit 7794cf2eb3
1 changed files with 1 additions and 4 deletions

View File

@ -1380,10 +1380,6 @@ sub AddReturn {
if ($iteminformation->{borrowernumber}){
($borrower) = C4::Members::GetMemberDetails( $iteminformation->{borrowernumber}, 0 );
}
}
# fix up the accounts.....
if ( $iteminformation->{'itemlost'} ) {
$messages->{'WasLost'} = 1;
}
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
@ -1413,6 +1409,7 @@ sub AddReturn {
# fix up the accounts.....
if ($iteminformation->{'itemlost'}) {
FixAccountForLostAndReturned($iteminformation, $borrower);
ModItem({ itemlost => '0' }, $biblio->{'biblionumber'}, $iteminformation->{'itemnumber'});
$messages->{'WasLost'} = 1;
}
# fix up the overdues in accounts...