VENDOR1099ADJUSTMENT

All vendor 1099 adjustments

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
EFFECTIVEDATE datetime Effective date of the 1099 adjustment.
AMOUNT money Default = 0 Adjustment amount
REFERENCE nvarchar(60) Default = '' Brief description of adjustment
SEQUENCE int Default = 0 Sequence to show adjustments.
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 Foreign key to the state table
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_VENDOR1099ADJUSTMENT_DATEADDED DATEADDED yes
IX_VENDOR1099ADJUSTMENT_DATECHANGED DATECHANGED
PK_VENDOR1099ADJUSTMENT ID yes yes

Triggers

Trigger Name Description
TR_VENDOR1099ADJUSTMENT_AUDIT_UPDATE
TR_VENDOR1099ADJUSTMENT_AUDIT_DELETE
TR_VENDOR1099ADJUSTMENT_VALIDSTATE