﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	db_engine	os_version
1559	Order Wizard get items needs a fix	dbmuqs	Kurt Endress	"The dv order_wizard_get_order_request_item fails when there are > 1 expired PVP. The fix on dev is to add a top 1 to the pvp section. As per previous email:

The culprit seems to be having 2 expired PVP's on one accession, e.g. PI 600770 which is in both orders Vicki is having trouble with. The line in the CT wizard DV needs to be:

   ,(SELECT top 1 'xPVP' FROM accession_ipr ipr2 WHERE ipr2.accession_id = i.accession_id AND ipr2.type_code = 'PVP' AND ipr2.expired_date IS NOT NULL) AS xpvp_warning 
"	defect	closed	medium	Server Release 1.10.1	CT Order Wizard	N/A		fixed			N/A	N/A
