http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9351

--- Comment #40 from David Cook <[email protected]> ---
(In reply to Katrin Fischer from comment #39)
> Hm, bit confused. 
> 
> I tested checkouts and returns with itemtype on the item level. 
> For returns the itype column in statistics is set to NULL.
> 
> Can you please check?

Nice catch, Katrin!

This block:

@@ -1988,7 +1988,7 @@ sub AddReturn {
                 branch => $branch,
                 type => $stat_type,
                 itemnumber => $item->{'itemnumber'},
-                itemtype => $biblio->{'itemtype'},
+                itemtype => $biblio->{'itype'},
                 borrowernumber => $borrowernumber,
                 ccode => $item->{'ccode'}}
     );

Should actually be like this:

@@ -1988,7 +1988,7 @@ sub AddReturn {
                 branch => $branch,
                 type => $stat_type,
                 itemnumber => $item->{'itemnumber'},
-                itemtype => $biblio->{'itemtype'},
+                itemtype => $item->{'itype'},
                 borrowernumber => $borrowernumber,
                 ccode => $item->{'ccode'}}
     );

There's no such thing as $biblio->{'itype'}.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to