UFN_SALESORDER_STATUSCODE_GETDESCRIPTION

Return

Return Type
nvarchar(10)

Parameters

Parameter Parameter Type Mode Description
@ID tinyint IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  8/2/2010 7:06:25 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.7.1654.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_SALESORDER_STATUSCODE_GETDESCRIPTION(@ID tinyint)
RETURNS nvarchar(10) WITH EXECUTE AS CALLER
AS
begin

    return case @ID
        when 0 then 'Pending'
        when 1 then 'Complete'
        when 2 then 'Tentative'
        when 3 then 'Confirmed'
        when 4 then 'Finalized'
        when 5 then 'Cancelled'
        when 6 then 'Reserved'
        when 7 then 'Unresolved'    
    end

end