if Exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[CreateSummaryAccountingDocuments]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
Drop Procedure [dbo].[CreateSummaryAccountingDocuments]

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[CreateSummaryFactors]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[CreateSummaryFactors]

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[GetSummaryFactors]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[GetSummaryFactors]

if Exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Sync_CreateSatandardDocuments]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
Drop Procedure [dbo].[Sync_CreateSatandardDocuments]




