]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1775216: inconsistent availability counts between staff client and opac
authora. bellenir <ab@grpl.org>
Tue, 5 Jun 2018 19:56:24 +0000 (15:56 -0400)
committerKathy Lussier <klussier@masslnc.org>
Wed, 15 Aug 2018 22:13:48 +0000 (18:13 -0400)
commitecda99aa2eaf242a1650959206e27a5c98350a22
treec69964106499bf3a24a16ef2e1a7d1b5343d183e
parentb12934fe72b4996ffbab8bebe4cf04e4f882d387
LP#1775216: inconsistent availability counts between staff client and opac

update asset.staff_ou_record_copy_count to get an accurate available count.

borrow asset.opac_ou_record_copy_count's logic for counting available copies
so that statuses with is_available set to 't' in config.copy_status are used
instead of using the hardcoded status id list (0,7,12)

Signed-off-by: a. bellenir <ab@grpl.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/sql/Pg/040.schema.asset.sql
Open-ILS/src/sql/Pg/upgrade/1112.schema.lp1775216_consistent_avail_counts.sql [new file with mode: 0644]