MERCHANDISEPRODUCTLABLEPRINTHISTORY (4.0SP20)

Holds the history for inventory item label printing.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

MERCHANDISEPRODUCTID

uniqueidentifier

true

Foreign key to MERCHANDISEPRODUCT table.

MERCHANDISEPRODUCTINSTANCEID

uniqueidentifier

true

Foreign key to MERCHANDISEPRODUCTINSTANCE table.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

ITEMDETAILS

nvarchar(150)

false

''

Description of item printed on label.

PRINTSESSIONID

uniqueidentifier

false

Session ID of label printing.

QUANTITY

int

false

0

Number of labels to be printed for item.

BARCODE

nvarchar(25)

false

''

SKU of item to be printed.

SALEPRICE

money

false

0

The sale price of the item.

ISEXPORT

bit

false

0

Determines whether the barcode was printed or exported.

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.

LABELPRINTFORMATCODE

tinyint

false

0

The format for the labels to be printed.

LABELPRINTFORMAT

nvarchar(20) (Computed)

true

Provides a translation for the 'LABELPRINTFORMATCODE' field.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_MERCHANDISEPRODUCTLABLEPRINTHISTORY_DATEADDED

DATEADDED

False

False

True

IX_MERCHANDISEPRODUCTLABLEPRINTHISTORY_DATECHANGED

DATECHANGED

False

False

False

IX_MERCHANDISEPRODUCTLABLEPRINTHISTORY_PRINTSESSIONID

PRINTSESSIONID

False

False

False

PK_MERCHANDISEPRODUCTLABLEPRINTHISTORY

ID

True

True

False

Triggers
Trigger Name Description

TR_MERCHANDISEPRODUCTLABLEPRINTHISTORY_AUDIT_UPDATE

TR_MERCHANDISEPRODUCTLABLEPRINTHISTORY_AUDIT_DELETE