[Koha-bugs] [Bug 22066] branchcode should be recorded for manual credits

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 7 19:09:46 CET 2019


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

--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 83699
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=83699&action=edit
Bug 22066: Record library_id for manual credits

On creating manual credits, the (newly introduced) branchcode should be
set now. This trivial patch makes it work.

To test:
- Create a manual credit for a known patron
- Using MySQL check the result:
  $ sudo mysql
  > SELECT * FROM accountlines WHERE borrowernumber=<known_id>;
=> FAIL: The created accountline row has NULL for the branchcode
- Apply this patch
- Create a manual credit for the patron
- Run:
  > SELECT * FROM accountlines WHERE borrowernumber=<known_id>;
=> SUCCESS: branchcode is set correctly
-Sign off :-D

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


More information about the Koha-bugs mailing list