Bug 18882: Add location code to statistics table for checkouts and renewals
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 29 Jun 2017 15:10:18 +0000 (11:10 -0400)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 8 Nov 2017 16:34:32 +0000 (13:34 -0300)
commit9fd0555ae828972a7268c56a4f5e56a4a681aa2b
tree14c6bda772d83bb1d615c225c245677a394c7165
parentaeacde0ac7e38d0ca92f005fae36355aae740d3d
Bug 18882: Add location code to statistics table for checkouts and renewals

Some libraries wish to track what the current location of items was at the time they were checked out. This will help libraries track which physical locations in the library patrons are more likely to check out a given book from.

Test Plan:
1) Apply this patch
2) Run updatedatabase.pl
3) Check out an item that has a location set
4) Renew that item
5) View the checkout and renewal in the statistics table,
   verify each has the location column populated correctly

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Circulation.pm
C4/Stats.pm
installer/data/mysql/atomicupdate/bug_18882.perl [new file with mode: 0644]
installer/data/mysql/kohastructure.sql
t/db_dependent/Stats.t