[Koha-bugs] [Bug 24592] Clarify LOST_RETURN process by using FOUND over RETURNED

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Feb 10 19:48:38 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24592

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david at davidnind.com

--- Comment #9 from David Nind <david at davidnind.com> ---
Here is an updated test plan (I had to work out how to do some of the things,
so I hope it is useful to others and what was intended to check):

1) Apply the patch and run the database update
   (perl installer/data/mysql/updatedatabase.pl)
2) Grep th codebase for _FixAccountForLostAndReturned and note there are no
   longer any instanced of it (grep -r1 "_FixAccountForLostAndReturned" koha)
3) Run t/db_dependent/Circulation.t and note it passes
4) For a patron:
   - Check out an item (Circulation > Check out)
   - Create a manual invoice for the item using the 'Lost item' type
     (Patrons > [Account for patron] > Accounting > Create manual invoice > 
     Enter the barcode and amount)
   - Edit the record for the item and change the 'Lost status' to 'Lost'
     (From the list of transactions  click on the barcode, and change the 
     'Lost status' to 'Lost' and then 'clcik 'Set status')
   - Check in the lost item (Circulation > Check in)
   - A message should pop up saying 'Item was lost, now found.....'
   - Check the transactions for the patron: there should now be a transaction
     with a refund, the account type will say 'Lost item fee refund', and 
     in the description it will say 'Item found...'
5) Check the database to see the changes:
   - koha-mysql kohadev
   - Use the query 'select * from accountlines'
   - For the original manual invoice the debit_type_code will show as 'LOST'
     and the status will show as 'FOUND'
   - For the transactions to reverse the lost item fee the credit_type_code
     will show as "LOST_FOUND'

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list