(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:
parent
5da38d9ce6
commit
7794cf2eb3
|
|
@ -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...
|
||||
|
|
|
|||
Loading…
Reference in New Issue