
/*------ ATD 438090 ------*/
if EXISTS(SELECT  NAME FROM SYSOBJECTS WHERE NAME = 'fValidaDevolucaoDeVenda' AND type = 'FN')
  DROP FUNCTION fValidaDevolucaoDeVenda
go
CREATE FUNCTION fValidaDevolucaoDeVenda(@NUMORD INT) RETURNS INT AS
BEGIN
  RETURN 1;
END
go
