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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ItemIdItem the batch belongs to. | String (20)ItemId | Yes | InventTable.ItemId | None |
InventBatchIdBatch whose dates changed, for the same item. | String (20)InventBatchId | Yes | InventBatch.inventBatchId | None |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
NewBestBeforeDateBest before date after the change. | DatePdsBestBeforeDate | No | None | |
NewInventBatchProdDateManufacturing date after the change. | DateInventBatchProdDate | No | None | |
NewShelfAdviceDateShelf advice date after the change. | DatePdsShelfAdviceDate | No | None | |
NewVendExpiryDateExpiration date after the change. | DatePdsVendExpiryDate | No | None | |
OldBestBeforeDateBest before date before the change. | DatePdsBestBeforeDate | No | None | |
OldInventBatchProdDateManufacturing date before the change. | DateInventBatchProdDate | No | None | |
OldShelfAdviceDateShelf advice date before the change. | DatePdsShelfAdviceDate | No | None | |
OldVendExpiryDateExpiration date before the change. | DatePdsVendExpiryDate | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
ItemBatchCreatedDateTimeIdxReplacement keyItemId,InventBatchId,CreatedDateTimeUnique, alternate key.
Relations (2)
Each relation joins QMSInventBatchShelfLifeHistory to another table on the fields shown.
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany QMSInventBatchShelfLifeHistory records → exactly one InventTable record
InventBatch→InventBatchJoin on
InventBatchId = InventBatch.inventBatchId,ItemId = InventBatch.itemIdZero 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.