USP_RECORDOPERATION_REVENUETRANSACTION_CHANGERECEIPTPREFERENCEPROMPT

Provides the prompt for the "Revenue Transaction: Change Receipt Preference" record operation.

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN Represents information to be displayed in the record operation prompt.
@MESSAGE nvarchar(150) INOUT

Definition

Copy


                            CREATE procedure dbo.USP_RECORDOPERATION_REVENUETRANSACTION_CHANGERECEIPTPREFERENCEPROMPT
                            (
                                @ID uniqueidentifier,
                                @MESSAGE nvarchar(150) output
                            )
                            as
                                set nocount on;

                                if (select top 1 RECEIPTTYPECODE from dbo.REVENUE where ID = @ID) = 0 
                                    set @MESSAGE = 'Are you sure you want to change the receipt preference to ''Consolidated'' for this payment?'
                                else
                                    set @MESSAGE = 'Are you sure you want to change the receipt preference to ''Per payment'' for this payment?'