USP_SIMPLEDATALIST_WRITEOFFREASONCODES

Returns a list of write-off reason codes and descriptions.

Parameters

Parameter Parameter Type Mode Description
@INCLUDEINACTIVE bit IN Include inactive

Definition

Copy


                create procedure dbo.USP_SIMPLEDATALIST_WRITEOFFREASONCODES
                (
                    @INCLUDEINACTIVE bit = 0
                )
                as
                    set nocount on

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