TAXID (4.0SP18)

This contains all tax IDs.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

STATEID

uniqueidentifier

true

FK to STATE

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

TAXINGAUTHORITY

nvarchar(100)

false

''

User Defined unique description of this tax

DESCRIPTION

nvarchar(255)

false

''

Long description of this tax

TAXIDNUMBER

nvarchar(20)

false

''

User Defined unique description of this tax

ENTITYTYPECODE

tinyint

false

1

Taxing entity

STATUSCODE

tinyint

false

1

Tax ID status

STATUS

nvarchar(8) (Computed)

true

Provides a translation for the 'STATUSCODE' field.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

ENTITYTYPE

nvarchar(7) (Computed)

true

Provides a translation for the 'ENTITYTYPECODE' field.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_TAXID_DATEADDED

DATEADDED

False

False

True

IX_TAXID_DATECHANGED

DATECHANGED

False

False

False

PK_TAXID

ID

True

True

False

UC_TAXID_TAXINGAUTHORITY

TAXINGAUTHORITY

True

False

False

Triggers
Trigger Name Description

TR_TAXID_DELETE

TR_TAXID_AUDIT_UPDATE

TR_TAXID_AUDIT_DELETE