[Koha-patches] [PATCH] [3.0.x](bug #3432) fix return of lost items

Joe Atzberger joe.atzberger at liblime.com
Tue Jul 21 19:30:02 CEST 2009


returns.pl uses that "WasLost" flag since 1d2a7646 (rangi 2004-02-25
21:44:40).

--Joe Atzberger

On Tue, Jul 21, 2009 at 3:29 AM, Nahuel ANGELINETTI <
nahuel.angelinetti at biblibre.com> wrote:

> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-patches/attachments/20090721/fe6ee59e/attachment-0002.htm>


More information about the Koha-patches mailing list