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

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