UFN_RESERVATIONSTATUSHISTORY_STATUSCODE_GETID
Return
| Return Type | 
|---|
| tinyint | 
Parameters
| Parameter | Parameter Type | Mode | Description | 
|---|---|---|---|
| @Description | nvarchar(31) | 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_RESERVATIONSTATUSHISTORY_STATUSCODE_GETID(@Description nvarchar(31))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin
    return case @Description
        when 'Pending' then 0
        when 'Complete' then 1
        when 'Tentative' then 2
        when 'Confirmed' then 3
        when 'Finalized' then 4
        when 'Cancelled' then 5
        when 'Contract Sent' then 6
        when 'Contract Received' then 7
        when 'Contract Marked Not Sent' then 8
        when 'Contract Marked Not Received' then 9
        when 'Final Count Marked Not Received' then 10
        when 'Final Count Received' then 11
        when 'Order balance sent' then 12
        when 'Order balance marked not sent' then 13
        else -1
        end 
end