Opened 11 years ago
Closed 11 years ago
#1195 closed defect (fixed)
Consider making DISCARD code DISCARDED in INVENTORY_AVAILABILITY_STATUS group
| Reported by: | Mark J. Millard | Owned by: | dbmuqs |
|---|---|---|---|
| Priority: | critical | Milestone: | Post-NPGS Prod'n |
| Component: | Database, Custom Reports | Version: | 1.9.4 Server |
| Severity: | Keywords: | codes | |
| Cc: | lisa.burke@… | Database Engine: | SQL Server |
| Operating System: | Windows 7 Ultimate 64 bit |
Description
The code DISCARDED is missing in the code table and is used by GSOR in the Availability Status field on 320 records. The code DISCARD meaning Discarded is used by 14,340 inventory records. Can these records use the same code. Is DISCARDED more appropriate. The administrator tool can change all records using DISCARD to DISCARDED without much effort.
The records using these codes can be found in the search tool on the inventory dataview:
@inventory.availability_status_code = 'DISCARD'
@inventory.availability_status_code = 'DISCARDED'
The missing code was found using this SQL:
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
