UFN_SALESORDER_CONSTITUENTISORGANIZATION

Determines if constituent on the sales order is an organization.

Return

Return Type
bit

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN

Definition

Copy


            create function dbo.UFN_SALESORDER_CONSTITUENTISORGANIZATION
            (
                @ID uniqueidentifier
            )
            returns bit as
            begin
                declare @ISORGANIZATION bit;

                select @ISORGANIZATION = dbo.UFN_CONSTITUENT_ISORGANIZATION(CONSTITUENTID) from dbo.SALESORDER where ID = @ID;

                return isnull(@ISORGANIZATION, 0);
            end