UFN_ITINERARYITEM_INVALIDREASONCODE_GETID
Return
Return Type |
---|
tinyint |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@Description | nvarchar(72) | IN |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 1/27/2010 6:48:26 PM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=2.5.465.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_ITINERARYITEM_INVALIDREASONCODE_GETID(@Description nvarchar(72))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin
return case @Description
when 'Not invalid' then 0
when 'Event or program is inactive' then 1
when 'Event does not have the capacity for this itinerary' then 2
when 'Event is blocked by another itinerary' then 3
when 'Event is missing a price type needed by this itinerary' then 4
when 'Event not scheduled on this date and time' then 5
when 'Daily admission program is inactive' then 6
when 'Event is not on sale' then 8
when 'Daily admission program is not on sale' then 9
when 'Creates resource or location conflict with other event or itinerary item' then 10
when 'Daily admission program is missing a price type needed by this itinerary' then 11
else -1
end
end