From 14eede4d3bce703eabddcae4142fd836d562ca63 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 2 Feb 2012 10:15:43 -0500 Subject: [PATCH] Bug 6490 - Lost and paid not updated when book is checked out. --- C4/Circulation.pm | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 0b5068c..dfe0194 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1025,6 +1025,12 @@ sub AddIssue { CartToShelf( $item->{'itemnumber'} ); } $item->{'issues'}++; + + ## If item was lost, it has now been found, reverse any list item charges if neccessary. + if ( $item->{'itemlost'} ) { + _FixAccountForLostAndReturned( $item->{'itemnumber'}, undef, $item->{'barcode'} ); + } + ModItem({ issues => $item->{'issues'}, holdingbranch => C4::Context->userenv->{'branch'}, itemlost => 0, -- 1.7.2.5