LP#1549505: fix rating.percent_time_circulating()
authorGalen Charlton <gmc@esilibrary.com>
Thu, 10 Mar 2016 17:57:26 +0000 (12:57 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 10 Mar 2016 17:57:26 +0000 (12:57 -0500)
commit83207274f34679917b1ba79e49c8ad638e7e346a
treed44876c8797443e51c09a0bdaa134093881d935d
parent99d66d7c60897449721345e0a429350b6cbd7771
LP#1549505: fix rating.percent_time_circulating()

Fixes an issue with the item age calculation; not all items
will have a non-NULL active_date. This led to return
records with a NULL time circulating value, meaning
that they didn't get excluded by the percentile
filter.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.statisitcal-ratings.sql