[Koha-bugs] [Bug 13098] Item lost multiple times by the same patron will create only be charged once

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 25 05:54:12 CEST 2018


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

--- Comment #10 from Alex Buckley <alexbuckley at catalyst.net.nz> ---
Created attachment 81107
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81107&action=edit
Bug 13098: Make _FixAccountForLostAndReturned refund the right thing

This patch changes the logic inside the method, to make it match the
behaviour described on the tests.

It uses the existing offsets on the account_offsets table to gather
information about the right things to refund.

To test:
- Run:
  $ kshell
 k$ prove t/db_dependent/Circulation.t
=> FAIL: Tests don't pass!
- Apply this patch
- Run
 k$ prove t/db_dependent/Circulation.t
=> SUCCESS: Tests pass!
- Sign off :-D

Followed test plan, patch works as described. All three patches pass QA
test tool
Signed-off-by: Alex Buckley <alexbuckley at catalyst.net.nz>

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


More information about the Koha-bugs mailing list