VENDOR1099DISTRIBUTION

All vendor 1099 distributions.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
PERCENT decimal(20, 3) Default = 0 Percent
SEQUENCE int Default = 0 Sequence to show distributions.
DATEADDED datetime Default = getdate() Indicates the date this record was added.
DATECHANGED datetime Default = getdate() Indicates the date this record was last changed.
TS timestamp Timestamp.
TSLONG bigint (Computed) yes CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Keys

Foreign Key Field Type Null Notes Description
VENDOR1099SETTINGID uniqueidentifier VENDOR1099SETTING.ID Foreign key to the vendor 1099 setting table
BOXNUMBER1099ID uniqueidentifier FINANCIALTRANSACTION1099BOXNUMBER.ID 1099 box number
STATEID uniqueidentifier yes STATE.LOCALID Submitted state.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_VENDOR1099DISTRIBUTION_DATEADDED DATEADDED yes
IX_VENDOR1099DISTRIBUTION_DATECHANGED DATECHANGED
PK_VENDOR1099DISTRIBUTION ID yes yes
UC_VENDOR1099DISTRIBUTION_BOXNUMBER1099ID_STATEID VENDOR1099SETTINGID, BOXNUMBER1099ID, STATEID yes

Triggers

Trigger Name Description
TR_VENDOR1099DISTRIBUTION_VALIDSTATE
TR_VENDOR1099DISTRIBUTION_AUDIT_UPDATE
TR_VENDOR1099DISTRIBUTION_AUDIT_DELETE