[Koha-bugs] [Bug 17781] New: Improper branchcode set during renewal

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 15 12:56:54 CET 2016


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

            Bug ID: 17781
           Summary: Improper branchcode set during renewal
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Circulation
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: kyle at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com

For no discernable reason, when AddIssue calls AddRenewal, it passes the
branchcode generated from _GetCircControlBranch. Assume _GetCircControlBranch
is set to return items.homebranch. So:
1) If an item owned by LibraryA is checked out at LibraryB, the statistic line
branchcode will be LibraryB
2) If an item is renewed via the ajax datatables renewal function, the
statistic line branchcode will be LibraryB
3) If an item is renewed via scanning the item into the checkout again, the
statistic line branchcode will be *LibraryA*

This is clearly improper behavior. The renewal is taking place at LibraryB, so
the branchcode passed to AddRenewal should be LibraryB, the logged in library.
This also jives with the documentation for the subroutine.

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


More information about the Koha-bugs mailing list