if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[ReceiptHeader]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[ReceiptHeader]



if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[ReceiptDetail]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[ReceiptDetail]