]> 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:17:18 +0000 (18:17 -0400)
commit6b2a2db34489fcdf9250461119b333eecc52dff4
treed21ab4951a8b340d5e68e6b377d816c286d54c69
parentfd6eec4cc0dc07e1c8b2a21e954a466e64b9e79d
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]