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:04:35 +0000 (18:04 -0400)
commit9b4591e3f9f88aa335c2ba6d4e928ca6fbc879da
tree8a4c460c2034fcf341d9af55bda5562beae03076
parent4e0528b11a244734b0d2835dd8ce6c96fb28a5fd
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]