﻿if not exists (select name from dbo.sysobjects where name='fAllCodeBedBesGold')
begin
	exec('CREATE FUNCTION [dbo].[fAllCodeBedBesGold](@fcId int ,@orgId int ,@fromDate int=0, @toDate int=0, @strTafId nvarchar(max), @strKalId nvarchar(max)) returns table return( select 1 ID)')
end