Scalar-valued Functions [dbo].[ufnGetAccountingEndDate]
Scalar function used in the uSalesOrderHeader trigger to set the starting account date.
PropertyValue
ANSI Nulls OnTrue
Quoted Identifier OnTrue

CREATE FUNCTION [dbo].[ufnGetAccountingEndDate]()
RETURNS [datetime]
AS
BEGIN
   RETURN DATEADD(millisecond, -2, CONVERT(datetime, '20040701', 112));
END;
GO
EXEC sp_addextendedproperty N'MS_Description', N'Scalar function used in the uSalesOrderHeader trigger to set the starting account date.', 'SCHEMA', N'dbo', 'FUNCTION', N'ufnGetAccountingEndDate', NULL, NULL
GO