[Koha-patches] [PATCH] [3.0.x](bug #3432) fix return of lost items
Nahuel ANGELINETTI
nahuel.angelinetti at biblibre.com
Tue Jul 21 09:29:57 CEST 2009
This patch delete some useless code, and fix the problem that if a lost item is returned, the lost flag is not deleted.
---
C4/Circulation.pm | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/C4/Circulation.pm b/C4/Circulation.pm
index f335975..867494a 100644
--- a/C4/Circulation.pm
+++ b/C4/Circulation.pm
@@ -1375,10 +1375,6 @@ sub AddReturn {
if ($iteminformation->{borrowernumber}){
($borrower) = C4::Members::GetMemberDetails( $iteminformation->{borrowernumber}, 0 );
}
- }
- # fix up the accounts.....
- if ( $iteminformation->{'itemlost'} ) {
- $messages->{'WasLost'} = 1;
}
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
@@ -1408,6 +1404,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...
--
1.6.0.4
More information about the Koha-patches
mailing list