Bug 21077

Summary: Fix comment for statistics.type in installer/data/mysql/kohastructure.sql
Product: Koha Reporter: Barton Chittenden <barton>
Component: Developer documentationAssignee: Katrin Fischer <katrin.fischer>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: trivial    
Priority: P5 - low CC: fridolin.somers, martin.renvoize, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: String patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 21017: Fix database documentation for statistics.type
Bug 21017: Fix database documentation for statistics.type
Bug 21077: Fix database documentation for statistics.type

Description Barton Chittenden 2018-07-13 21:15:12 UTC
In installer/data/mysql/kohastructure.sql, the CREATE TABLE statement for statistics reads:

DROP TABLE IF EXISTS `statistics`;
CREATE TABLE `statistics` ( -- information related to transactions (circulation and fines) in Koha

...

  `type` varchar(16) default NULL, -- transaction type (locause, issue, return, renew, writeoff, payment, Credit*)

...

There's a typo for 'locause', this should be 'localuse'. Also, 'Credit*' is never used.

As far as I know, the list of valid values for statistics.type isn't documented anywhere else, so it's valuable to have these annotated correctly here.
Comment 1 Katrin Fischer 2018-07-15 17:29:14 UTC
Created attachment 76966 [details] [review]
Bug 21017: Fix database documentation for statistics.type

There's a typo for 'locause', this should be 'localuse'.
Also, 'Credit*' is never used.

https://bugs.koha-community.org/show_bug.cgi?id=20177
Comment 2 Maryse Simard 2018-07-27 20:50:00 UTC
Created attachment 77320 [details] [review]
Bug 21017: Fix database documentation for statistics.type

There's a typo for 'locause', this should be 'localuse'.
Also, 'Credit*' is never used.

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

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

Signed-off-by: Maryse Simard <maryse.simard@inlibro.com>
Comment 3 Jonathan Druart 2018-07-31 15:02:12 UTC
Created attachment 77334 [details] [review]
Bug 21077: Fix database documentation for statistics.type

There's a typo for 'locause', this should be 'localuse'.
Also, 'Credit*' is never used.

Signed-off-by: Maryse Simard <maryse.simard@inlibro.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 4 Tomás Cohen Arazi (tcohen) 2018-08-02 13:18:31 UTC
Fix pushed to master. Thanks!
Comment 5 Martin Renvoize (ashimema) 2018-08-03 14:14:20 UTC
Pushed to 18.05.x for 18.05.03.
Comment 6 Fridolin Somers 2018-09-21 09:54:43 UTC
Pushed to 17.11.x for 17.11.10