﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	db_engine	os_version
1193	Consider making VIR code VIRUS in INVENTORY_AVAILABILITY_STATUS group	Mark J. Millard	dbmuqs	"There is a code VIR indicating Virus Infected in GRIN-Global npgsWEB Inventory Availability Status field, however there are no inventory records using it.  Instead there are 75 records for Corvallis using this code and it is not in the code table. Consider changing the code from VIR to VIRUS.

Use these two queries with the inventory dataview in the Search Tool to find these records:

@inventory.availability_status_code = 'VIRUS'

@inventory.availability_status_code = 'VIR'

The SQL used to find the missing VIRUS code is:

SELECT inventory.availability_status_code, last_name, COUNT(inventory.availability_status_code) reccount FROM inventory JOIN cooperator on cooperator.cooperator_id = inventory.owned_by WHERE inventory.availability_status_code NOT IN (SELECT value FROM code_value WHERE group_name = 'INVENTORY_AVAILABILITY_STATUS') GROUP BY inventory.availability_status_code, last_name ORDER BY inventory.availability_status_code, last_name
"	defect	closed	critical	Post-NPGS Prod'n	Database, Custom Reports	1.9.4 Server		fixed	codes	Joseph.Postman@… lisa.burke@…	N/A	N/A
