UFN_ITINERARYITEM_INVALIDREASONCODE_GETDESCRIPTION

Return

Return Type
nvarchar(72)

Parameters

Parameter Parameter Type Mode Description
@ID tinyint 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_GETDESCRIPTION(@ID tinyint)
RETURNS nvarchar(72) WITH EXECUTE AS CALLER
AS
begin

    return case @ID
        when 0 then 'Not invalid'
        when 1 then 'Event or program is inactive'
        when 2 then 'Event does not have the capacity for this itinerary'
        when 3 then 'Event is blocked by another itinerary'
        when 4 then 'Event is missing a price type needed by this itinerary'
        when 5 then 'Event not scheduled on this date and time'
        when 6 then 'Daily admission program is inactive'
        when 8 then 'Event is not on sale'
        when 9 then 'Daily admission program is not on sale'
        when 10 then 'Creates resource or location conflict with other event or itinerary item'
        when 11 then 'Daily admission program is missing a price type needed by this itinerary'    
    end

end