[Koha-bugs] [Bug 27204] SIP patron information request with fee line items returns incorrect data

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 11 13:16:51 CET 2020


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

--- Comment #2 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 114339
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114339&action=edit
Bug 27204: Fix end boundary index, never return results for non-existant
accountlines

There are two primary issues I've identified with requesting line items
for fees via SIP:

1) The end boundary is incorrect. For example, if send a request with a
BP ( starting item) of 1, and a BQ (end item) of 1, I should get just
the first item. Instead I will get two items

2) Our SIP server does not check bounds. For example, if I have 3 fines,
but I send a BP of 1 and a BQ of 5, I will get back 5 AVs, two of
them being "empty" because the patron only has 3 accountlines!

Test Plan:
1) Apply the unit test patch
2) prove t/db_dependent/SIP/Patron.t
3) Note the failures
4) Apply the second patch
5) prove t/db_dependent/SIP/Patron.t
6) All tests should pass!

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


More information about the Koha-bugs mailing list