DOCUMENTPRINTINGRULESALESMETHOD (4.0SP20)

Holds the sales methods valid for the printing rule of a document.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

DOCUMENTPRINTINGRULEID

uniqueidentifier

false

Foreign key to document printing rule table

SALESMETHODID

uniqueidentifier

false

Foreign key to sales method table

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

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.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_DOCUMENTPRINTINGRULESALESMETHOD_DATEADDED

DATEADDED

False

False

True

IX_DOCUMENTPRINTINGRULESALESMETHOD_DATECHANGED

DATECHANGED

False

False

False

PK_DOCUMENTPRINTINGRULESALESMETHOD

ID

True

True

False

UIX_DOCUMENTPRINTINGRULESALESMETHOD_DOCUMENTPRINTINGRULEID_SALESMETHODID

DOCUMENTPRINTINGRULEID

SALESMETHODID

True

False

False

Triggers
Trigger Name Description

TR_DOCUMENTPRINTINGRULESALESMETHOD_AUDIT_UPDATE

TR_DOCUMENTPRINTINGRULESALESMETHOD_AUDIT_DELETE