Tables [dbo].[APQVoucherARTaxDetails]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created12:55:51 AM Thursday, March 21, 2019
Last Modified1:09:58 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_APQVoucherARTaxDetails: QVoucherID\DetailID\InvoiceTaxDetailID\ApplicationReceivablePayableDistIDQVoucherIDint4
False
Cluster Primary Key PK_APQVoucherARTaxDetails: QVoucherID\DetailID\InvoiceTaxDetailID\ApplicationReceivablePayableDistIDDetailIDint4
False
Cluster Primary Key PK_APQVoucherARTaxDetails: QVoucherID\DetailID\InvoiceTaxDetailID\ApplicationReceivablePayableDistIDInvoiceTaxDetailIDint4
False
Cluster Primary Key PK_APQVoucherARTaxDetails: QVoucherID\DetailID\InvoiceTaxDetailID\ApplicationReceivablePayableDistIDApplicationReceivablePayableDistIDint4
False
VoucheredAmountmoney8
False
((0))
VoucheredDistApplicationAmountmoney8
False
((0))
DistApplicationAmountmoney8
False
((0))
Amountmoney8
False
((0))
DistTaxedAmountmoney8
False
((0))
DistNonTaxedAmountmoney8
False
((0))
Foreign Keys FK_APQVoucherARTaxDetails_TaxExemptCodeID_SHTaxExemptCodes: [dbo].[SHTaxExemptCodes].TaxExemptCodeIDTaxExemptCodeIDint4
True
CreatorIDchar(8)8
False
UpdatorIDchar(8)8
False
CreateDatedatetime8
False
(getdate())
LastUpdatedatetime8
False
(getdate())
KeyNameKey ColumnsUnique
Cluster Primary Key PK_APQVoucherARTaxDetails: QVoucherID\DetailID\InvoiceTaxDetailID\ApplicationReceivablePayableDistIDPK_APQVoucherARTaxDetailsQVoucherID, DetailID, InvoiceTaxDetailID, ApplicationReceivablePayableDistID
True
NameColumns
FK_APQVoucherARTaxDetails_TaxExemptCodeID_SHTaxExemptCodesTaxExemptCodeID->[dbo].[SHTaxExemptCodes].[TaxExemptCodeID]
CREATE TABLE [dbo].[APQVoucherARTaxDetails]
(
[QVoucherID] [int] NOT NULL,
[DetailID] [int] NOT NULL,
[InvoiceTaxDetailID] [int] NOT NULL,
[ApplicationReceivablePayableDistID] [int] NOT NULL,
[VoucheredAmount] [money] NOT NULL CONSTRAINT [DF_APQVoucherARTaxDetails_VoucheredAmount] DEFAULT ((0)),
[VoucheredDistApplicationAmount] [money] NOT NULL CONSTRAINT [DF_APQVoucherARTaxDetails_VoucheredDistApplicationAmount] DEFAULT ((0)),
[DistApplicationAmount] [money] NOT NULL CONSTRAINT [DF_APQVoucherARTaxDetails_DistApplicationAmount] DEFAULT ((0)),
[Amount] [money] NOT NULL CONSTRAINT [DF_APQVoucherARTaxDetails_Amount] DEFAULT ((0)),
[DistTaxedAmount] [money] NOT NULL CONSTRAINT [DF_APQVoucherARTaxDetails_DistTaxedAmount] DEFAULT ((0)),
[DistNonTaxedAmount] [money] NOT NULL CONSTRAINT [DF_APQVoucherARTaxDetails_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_APQVoucherARTaxDetails_CreateDate] DEFAULT (getdate()),
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_APQVoucherARTaxDetails_LastUpdate] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[APQVoucherARTaxDetails] ADD CONSTRAINT [PK_APQVoucherARTaxDetails] PRIMARY KEY CLUSTERED  ([QVoucherID], [DetailID], [InvoiceTaxDetailID], [ApplicationReceivablePayableDistID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[APQVoucherARTaxDetails] ADD CONSTRAINT [FK_APQVoucherARTaxDetails_TaxExemptCodeID_SHTaxExemptCodes] FOREIGN KEY ([TaxExemptCodeID]) REFERENCES [dbo].[SHTaxExemptCodes] ([TaxExemptCodeID])
GO
  • [dbo].[v_APTaxUtilityDetails]