Table

QMSInventBatchShelfLifeHistory

Shelf date history

Keeps a history of changes to the shelf life dates of a batch. Each row stores old and new values for best before, expiration, manufacturing and shelf advice dates. Rows are identified by item, batch and creation date and time.

Table name
QMSInventBatchShelfLifeHistory
Module
Cross-module and platform
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
InventQualityManagement
Primary index
None
Replacement key
ItemBatchCreatedDateTimeIdx
Key fields
ItemId, InventBatchId, CreatedDateTime
Model
AdvancedQualityManagement

Fields (18)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ItemIdItem the batch belongs to.String (20)
ItemId
YesInventTable.ItemIdNone
InventBatchIdBatch whose dates changed, for the same item.String (20)
InventBatchId
YesInventBatch.inventBatchIdNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
NewBestBeforeDateBest before date after the change.Date
PdsBestBeforeDate
NoNone
NewInventBatchProdDateManufacturing date after the change.Date
InventBatchProdDate
NoNone
NewShelfAdviceDateShelf advice date after the change.Date
PdsShelfAdviceDate
NoNone
NewVendExpiryDateExpiration date after the change.Date
PdsVendExpiryDate
NoNone
OldBestBeforeDateBest before date before the change.Date
PdsBestBeforeDate
NoNone
OldInventBatchProdDateManufacturing date before the change.Date
InventBatchProdDate
NoNone
OldShelfAdviceDateShelf advice date before the change.Date
PdsShelfAdviceDate
NoNone
OldVendExpiryDateExpiration date before the change.Date
PdsVendExpiryDate
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (2)

Each relation joins QMSInventBatchShelfLifeHistory to another table on the fields shown.

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Many QMSInventBatchShelfLifeHistory records → exactly one InventTable record

  • InventBatch → InventBatch

    Join on InventBatchId = InventBatch.inventBatchId, ItemId = InventBatch.itemId

    Zero or one QMSInventBatchShelfLifeHistory record → exactly one InventBatch record

Get this data out

No public entity reads from QMSInventBatchShelfLifeHistory. Its data is only reachable through the application, a custom entity or a database export.

Need help with QMSInventBatchShelfLifeHistory in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk