SALESORDERITEMITINERARYITEMRESOURCE (4.0SP14)

Links a supply/equipment resource with a sales order item

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

SALESORDERITEMID

uniqueidentifier

true

Sales order item the supply/equipment resource belongs to

ITINERARYITEMRESOURCEID

uniqueidentifier

true

The itinerary item supply/equipment resource linked to this sales order item.

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.

RESOURCENAME

nvarchar(100)

false

''

Name of the resource at time of sale.

RESOURCECATEGORYNAME

nvarchar(100)

false

''

Name of resource category at time of sale.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_SALESORDERITEMITINERARYITEMRESOURCE_DATEADDED

DATEADDED

False

False

True

IX_SALESORDERITEMITINERARYITEMRESOURCE_DATECHANGED

DATECHANGED

False

False

False

IX_SALESORDERITEMITINERARYITEMRESOURCE_ITINERARYITEMRESOURCEID

ITINERARYITEMRESOURCEID

False

False

False

IX_SALESORDERITEMITINERARYITEMRESOURCE_SALESORDERITEMID

SALESORDERITEMID

False

False

False

PK_SALESORDERITEMITINERARYITEMRESOURCE

ID

True

True

False

Triggers
Trigger Name Description

TR_SALESORDERITEMITINERARYITEMRESOURCE_DELETE_SALESORDERITEM

TR_SALESORDERITEMITINERARYITEMRESOURCE_AUDIT_UPDATE

TR_SALESORDERITEMITINERARYITEMRESOURCE_AUDIT_DELETE