/* * Creates a table function for joining constant GlAccountJoinField values to the * GlAccountInformation view or others that have GlAccountJoinField. * The GetGlAccountJoinField_Synonym will be set to use the appropriate function for the current * system, based upon if they have XLedger, GP, QuickBooks or no accounting system. */ createfunction[dbo].[GetGlAccountJoinField_XLedger](@inAccountingAccountIdint,@inGLNumbervarchar(65)) returnstableas return( select GlAccountJoinField=@inAccountingAccountId ) GO GRANTSELECTON[dbo].[GetGlAccountJoinField_XLedger]TO[MssExec] GO