MERCHANDISEPRODUCT (4.0SP20)

A retail item for which instances can be sold.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

MERCHANDISEDEPARTMENTID

uniqueidentifier

false

The department to which the product belongs.

MERCHANDISEDEPARTMENTCATEGORYID

uniqueidentifier

true

The category to which the product belongs.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

TAXID

uniqueidentifier

true

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.

ONHANDQUANTITY

int

false

0

The on hand quantity for the product instance.

ISACTIVE

bit

false

1

The active status of the product.

PICTURE

varbinary

true

A photo or emblem for this constituent.

PICTURETHUMBNAIL

varbinary

true

ISDISCOUNTABLE

bit

false

1

The discountable status of the product.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_MERCHANDISEPRODUCT_DATEADDED

DATEADDED

False

False

True

IX_MERCHANDISEPRODUCT_DATECHANGED

DATECHANGED

False

False

False

PK_MERCHANDISEPRODUCT

ID

True

True

False

Triggers
Trigger Name Description

TR_MERCHANDISEPRODUCT_AUDIT_UPDATE

TR_MERCHANDISEPRODUCT_AUDIT_DELETE

Referenced by
Referenced by Field

BATCHMERCHANDISEINVENTORY

MERCHANDISEPRODUCTID

DISCOUNTGROUPDETAILMERCHANDISEITEM

MERCHANDISEITEMID

MERCHANDISEPRODUCTATTACHMENT

MERCHANDISEPRODUCTID

MERCHANDISEPRODUCTINSTANCE

MERCHANDISEPRODUCTID

MERCHANDISEPRODUCTLABLEPRINTHISTORY

MERCHANDISEPRODUCTID

MERCHANDISEPRODUCTMEDIALINK

MERCHANDISEPRODUCTID

MERCHANDISEPRODUCTNOTE

MERCHANDISEPRODUCTID

MERCHANDISEPRODUCTOPTION

MERCHANDISEPRODUCTID

MERCHANDISEPRODUCTSALESMETHOD

MERCHANDISEPRODUCTID