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)
committera. bellenir <ab@grpl.org>
Tue, 5 Jun 2018 19:58:48 +0000 (15:58 -0400)
commit26620e50e69f6fc15e222633054f18e7eada68ec
tree54d6c647b7e53ce9f7ee419731a91cd5183f5af2
parent9560b33ec003fd041e761e3377b740ec4a11313e
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>
Open-ILS/src/sql/Pg/040.schema.asset.sql