USE [OPMS_Online]
GO

/****** Object:  Table [dbo].[OTB_SAL_ReceiptPlan]    Script Date: 2017/9/5 下午 06:19:37 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

Drop Table [dbo].[OTB_SAL_ReceiptPlan]

CREATE TABLE [dbo].[OTB_SAL_ReceiptPlan](
	[AccountingBookID] [nvarchar](50) NOT NULL,
	[SalesOrderNo] [varchar](20) NOT NULL,
	[ItemNo] [varchar](20) NOT NULL,
	[Phase] [int] NOT NULL,
	[ReceiptNo] [varchar](50) NULL,	
	[ReceiptItem] [varchar](50) NOT NULL,
	[ReceiptUnitPrice] [varchar](50) NULL,
	[ReceiptQuantity] [varchar](50) NULL,
	[RestReceipt] [varchar](50) NULL,
	[ExpectedReceiptDate] [datetime] NULL,
	[ActualReceiptDate] [datetime] NULL,
	[ExpectedReceiptedDate] [datetime] NULL,
	[ActualReceiptedDate] [datetime] NULL,
	[ReceiptAmount] [varchar](50) NULL,
	[Tax] [varchar] (50) NULL,
	[RestReceiptAmount] [varchar](50) NULL,
	[Memo] [varchar](500) NULL,
	[CreateDate] [datetime] NULL,
	[CreateUser] [varchar](50) NULL,
	[ModifyDate] [datetime] NULL,
	[ModifyUser] [varchar](50) NULL,
 CONSTRAINT [PK_OTB_SAL_ReceiptPlan] PRIMARY KEY CLUSTERED 
(
	[SalesOrderNo] ASC,
	[Phase] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO


