
[dbo].[AccountingCustomerPaymentTerms]
CREATE TABLE [dbo].[AccountingCustomerPaymentTerms]
(
[AccountingCustomerPaymentTermsId] [int] NOT NULL IDENTITY(1, 1),
[TermsDescription] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[InvoiceChargeAmountTypeFid] [int] NULL,
[DaysDue] [int] NULL,
[ChargeAmount] [decimal] (19, 2) NULL,
[MinimumCharge] [money] NULL,
[Conditions] [varchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountingCustomerPaymentTerms] ADD CONSTRAINT [PK_AccountingCustomerPaymentTerms] PRIMARY KEY CLUSTERED ([AccountingCustomerPaymentTermsId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountingCustomerPaymentTerms] ADD CONSTRAINT [IX_AccountingCustomerPaymentTerms_TermsDescription] UNIQUE NONCLUSTERED ([TermsDescription]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountingCustomerPaymentTerms] ADD CONSTRAINT [FK_AccountingCustomerPaymentTerms_InvoiceChargeAmountType] FOREIGN KEY ([InvoiceChargeAmountTypeFid]) REFERENCES [dbo].[InvoiceChargeAmountType] ([InvoiceChargeAmountTypeID])
GO
GRANT SELECT ON [dbo].[AccountingCustomerPaymentTerms] TO [MssExec]
GRANT INSERT ON [dbo].[AccountingCustomerPaymentTerms] TO [MssExec]
GRANT DELETE ON [dbo].[AccountingCustomerPaymentTerms] TO [MssExec]
GRANT UPDATE ON [dbo].[AccountingCustomerPaymentTerms] TO [MssExec]
GO