USP_ACCOUNTCODE_DELETE_PROMPTDATA

Provides the prompt for the "Account Code: Delete" record operation.

Parameters

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

Definition

Copy


CREATE procedure dbo.USP_ACCOUNTCODE_DELETE_PROMPTDATA
(
    @ID uniqueidentifier,
    @ELEMENTNAME nvarchar(100) = null output,
    @ELEMENTID nvarchar(100) = null output
)
as begin
    set nocount on;

    select
        @ELEMENTNAME = PDACCOUNTSTRUCTURE.DESCRIPTION,
        @ELEMENTID = SHORTDESCRIPTION
    from
        dbo.PDACCOUNTSEGMENTVALUE
  inner join
    dbo.PDACCOUNTSTRUCTURE on PDACCOUNTSEGMENTVALUE.PDACCOUNTSTRUCTUREID = PDACCOUNTSTRUCTURE.ID
    where
        PDACCOUNTSEGMENTVALUE.ID = @ID

    return 0;
end