[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 18 18:24:07 CEST 2018


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

--- Comment #7 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 80864
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=80864&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

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


More information about the Koha-bugs mailing list