IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[userfunc_560_newyyycall]') AND type = 'P')
DROP PROCEDURE [dbo].[userfunc_560_newyyycall]
GO
CREATE PROCEDURE userfunc_560_newyyycall(@cmpid int,   @branchid int,  @userdpid int,  @useruid int,   @userotid int,  @usersecurity int,@ctgid int,@ctgid2 int,@objid bigint,@qry_ordid bigint)
as
begin



      set nocount on
     
      insert into order_239_2(ord2_ordid,ord2_tag,ord2_whsj)
      values(@qry_ordid,2,getdate())
      
      set nocount off 


end