USP_SIMPLEDATALIST_ADJUSTMENTREASONCODES

Returns a list of adjustment reason codes and descriptions.

Parameters

Parameter Parameter Type Mode Description
@INCLUDEINACTIVE bit IN Include inactive

Definition

Copy


                CREATE procedure dbo.USP_SIMPLEDATALIST_ADJUSTMENTREASONCODES
                (
                    @INCLUDEINACTIVE bit = 0
                )
                as
                    set nocount on

                    select
                        ID as VALUE,
                        CODE + ' - ' + DESCRIPTION  as LABEL
                    from dbo.ADJUSTMENTREASONCODE
                    where 
                        ACTIVE = 1 or @INCLUDEINACTIVE = 1
                    order by LABEL