UFN_PDACCOUNTCODE_SETUP

Checks segments and category definitions for accounts.

Return

Return Type
bit

Definition

Copy


CREATE function dbo.UFN_PDACCOUNTCODE_SETUP()
returns bit
with execute as caller
as begin
      declare @OK bit 

    if exists (select  ID from    dbo.PDACCOUNTSTRUCTURE where PDACCOUNTSYSTEMID = '4B121C2C-CCE6-440D-894C-EA0DEF80D50B' and SEGMENTTYPE = 1 and length = 0 )
        set @OK = 0
    else
        set @OK = 1

    return @OK
end