Comment 2 for bug 1775216

Revision history for this message
a. bellenir (abellenir) wrote :

the database function asset.staff_ou_record_copy_count was using the hardcoded status list of (0,7,12) to count "available" copies instead of obtaining a list of config.copy_status where is_available is true.

here's a branch where the asset.staff_ou_record_copy_count function uses the same logic as asset.opac_ou_record_copy_count: http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/abellenir/lp1775216-inconsistent-avail-counts

if this change is acceptable, other database functions that include the hardcoded (0,7,12) list may want to be updated as well:
* asset.staff_lasso_record_copy_count
* asset.staff_ou_metarecord_copy_count
* asset.staff_lasso_metarecord_copy_count