UFN_RECURRINGGIFTSTATUSUPDATEPROCESS_PASTDUECODE_GETID

Return

Return Type
tinyint

Parameters

Parameter Parameter Type Mode Description
@Description nvarchar(106) IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  11/11/2014 4:27:25 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=4.0.2.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_RECURRINGGIFTSTATUSUPDATEPROCESS_PASTDUECODE_GETID(@Description nvarchar(106))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin

    return case @Description
        when 'Do not make installments past due' then 0
        when 'Installments are past due when they have an unpaid balance x days past the installment date' then 1
        when 'Installments are past due when the date of the next installment is on or before the date this process runs' then 2
        else -1
        end 

end