Tables [dbo].[APVoucherARTaxDetails]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created12:56:38 AM Thursday, March 21, 2019
Last Modified1:09:59 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_APVoucherARTaxDetails: VoucherID\DetailID\InvoiceTaxDetailID\ApplicationReceivablePayableDistIDForeign Keys FK_APVoucherARTaxDetails_VoucherID_APVoucherDetails: [dbo].[APVoucherDetails].VoucherID\DetailIDVoucherIDint4
False
Cluster Primary Key PK_APVoucherARTaxDetails: VoucherID\DetailID\InvoiceTaxDetailID\ApplicationReceivablePayableDistIDForeign Keys FK_APVoucherARTaxDetails_VoucherID_APVoucherDetails: [dbo].[APVoucherDetails].VoucherID\DetailIDDetailIDint4
False
Cluster Primary Key PK_APVoucherARTaxDetails: VoucherID\DetailID\InvoiceTaxDetailID\ApplicationReceivablePayableDistIDInvoiceTaxDetailIDint4
False
Cluster Primary Key PK_APVoucherARTaxDetails: VoucherID\DetailID\InvoiceTaxDetailID\ApplicationReceivablePayableDistIDForeign Keys FK_APVoucherARTaxDetails_ApplicationReceivablePayableDistID_ARAPReceivablePayableDistributions: [dbo].[ARAPReceivablePayableDistributions].ApplicationReceivablePayableDistIDApplicationReceivablePayableDistIDint4
False
DistApplicationAmountmoney8
False
((0))
Amountmoney8
False
((0))
DistTaxedAmountmoney8
False
((0))
DistNonTaxedAmountmoney8
False
((0))
Foreign Keys FK_APVoucherARTaxDetails_TaxExemptCodeID_SHTaxExemptCodes: [dbo].[SHTaxExemptCodes].TaxExemptCodeIDTaxExemptCodeIDint4
True
CreatorIDchar(8)8
False
UpdatorIDchar(8)8
False
CreateDatedatetime8
False
(getdate())
LastUpdatedatetime8
False
(getdate())
KeyNameKey ColumnsUniqueFill Factor
Cluster Primary Key PK_APVoucherARTaxDetails: VoucherID\DetailID\InvoiceTaxDetailID\ApplicationReceivablePayableDistIDPK_APVoucherARTaxDetailsVoucherID, DetailID, InvoiceTaxDetailID, ApplicationReceivablePayableDistID
True
80
NameColumns
FK_APVoucherARTaxDetails_ApplicationReceivablePayableDistID_ARAPReceivablePayableDistributionsApplicationReceivablePayableDistID->[dbo].[ARAPReceivablePayableDistributions].[ReceivablePayableDistributionID]
FK_APVoucherARTaxDetails_TaxExemptCodeID_SHTaxExemptCodesTaxExemptCodeID->[dbo].[SHTaxExemptCodes].[TaxExemptCodeID]
FK_APVoucherARTaxDetails_VoucherID_APVoucherDetailsVoucherID->[dbo].[APVoucherDetails].[VoucherID]
DetailID->[dbo].[APVoucherDetails].[DetailID]
CREATE TABLE [dbo].[APVoucherARTaxDetails]
(
[VoucherID] [int] NOT NULL,
[DetailID] [int] NOT NULL,
[InvoiceTaxDetailID] [int] NOT NULL,
[ApplicationReceivablePayableDistID] [int] NOT NULL,
[DistApplicationAmount] [money] NOT NULL CONSTRAINT [DF_APVoucherARTaxDetails_DistApplicationAmount] DEFAULT ((0)),
[Amount] [money] NOT NULL CONSTRAINT [DF_APVoucherARTaxDetails_Amount] DEFAULT ((0)),
[DistTaxedAmount] [money] NOT NULL CONSTRAINT [DF_APVoucherARTaxDetails_DistTaxedAmount] DEFAULT ((0)),
[DistNonTaxedAmount] [money] NOT NULL CONSTRAINT [DF_APVoucherARTaxDetails_DistNonTaxedAmount] DEFAULT ((0)),
[TaxExemptCodeID] [int] NULL,
[CreatorID] [char] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[UpdatorID] [char] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CreateDate] [datetime] NOT NULL CONSTRAINT [DF_APVoucherARTaxDetails_CreateDate] DEFAULT (getdate()),
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_APVoucherARTaxDetails_LastUpdate] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[APVoucherARTaxDetails] ADD CONSTRAINT [PK_APVoucherARTaxDetails] PRIMARY KEY CLUSTERED  ([VoucherID], [DetailID], [InvoiceTaxDetailID], [ApplicationReceivablePayableDistID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[APVoucherARTaxDetails] ADD CONSTRAINT [FK_APVoucherARTaxDetails_ApplicationReceivablePayableDistID_ARAPReceivablePayableDistributions] FOREIGN KEY ([ApplicationReceivablePayableDistID]) REFERENCES [dbo].[ARAPReceivablePayableDistributions] ([ReceivablePayableDistributionID])
GO
ALTER TABLE [dbo].[APVoucherARTaxDetails] ADD CONSTRAINT [FK_APVoucherARTaxDetails_TaxExemptCodeID_SHTaxExemptCodes] FOREIGN KEY ([TaxExemptCodeID]) REFERENCES [dbo].[SHTaxExemptCodes] ([TaxExemptCodeID])
GO
ALTER TABLE [dbo].[APVoucherARTaxDetails] ADD CONSTRAINT [FK_APVoucherARTaxDetails_VoucherID_APVoucherDetails] FOREIGN KEY ([VoucherID], [DetailID]) REFERENCES [dbo].[APVoucherDetails] ([VoucherID], [DetailID])
GO