Bug 6383

Summary: itemnumber not stored when a lost item is returned and credited to account
Product: Koha Reporter: Nicole C. Engard <nengard>
Component: Fines and feesAssignee: Kyle M Hall <kyle.m.hall>
Status: RESOLVED DUPLICATE QA Contact: Bugs List <koha-bugs>
Severity: normal    
Priority: P5 - low CC: gmcharlt, joonas.kylmala, martin.renvoize
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Nicole C. Engard 2011-05-20 17:47:55 UTC
When a lost item is returned and no longer lost the patron's account is credited, but the item number isn't stored in the itemnumber field in the db.  To see what I mean try this report:

select b.surname, b.firstname, bib.title, i.itemcallnumber, a.description from
accountlines a left join borrowers b on (b.borrowernumber=a.borrowernumber)
left join items i on (i.itemnumber=a.itemnumber) left join biblio bib on
(bib.biblionumber=i.biblionumber) where a.accounttype='CR' and a.description
like 'Item Returned%';

Since the barcode is printing in the description getting the itemnumber in to that table shouldn't be difficult ... I would think.
Comment 1 Joonas Kylmälä 2015-08-26 06:38:17 UTC
Do you know which code does the crediting of the patron when the item is found? I couldn't find it...
Comment 2 Martin Renvoize (ashimema) 2020-02-11 12:57:21 UTC
This will be resolved as a side effect of bug 24592.

*** This bug has been marked as a duplicate of bug 24592 ***