UFN_BATCHREVENUEBUSINESSUNIT_GETBUSINESSUNITS

Returns business units for a revenue batch.

Return

Return Type
table

Parameters

Parameter Parameter Type Mode Description
@BATCHREVENUEID uniqueidentifier IN

Definition

Copy


CREATE function dbo.UFN_BATCHREVENUEBUSINESSUNIT_GETBUSINESSUNITS(@BATCHREVENUEID uniqueidentifier)
returns table
as return
            select
                ID,
        BUSINESSUNITCODEID,
        AMOUNT,
        REVENUESPLITBUSINESSUNITID       
            from
                dbo.BATCHREVENUEBUSINESSUNIT
            where
                BATCHREVENUEID = @BATCHREVENUEID;