Table

InventReportDimHistory

Dimension history for documents

Keeps a history of inventory dimensions and quantities for documents. Each row ties a document number and lot ID to a log type and an inventory dimension. The document types include sales confirmations, packing slips, invoices, purchase receipts and production journals.

Table name
InventReportDimHistory
Module
Inventory
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
LogisticsBasic
Primary index
TypeTransIdRefIdx
Replacement key
None
Key fields
TransRefId, InventTransId, TransactionLogType, InventDimId
Model
Foundation

Fields (12)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
TransRefIdNumber of the document that the history row belongs to.String (20)
InventTransRefId
YesNone
InventTransIdLot ID of the document line that the history row belongs to.String (20)
InventTransId
YesNone
TransactionLogTypeType of document the history row was recorded for, such as sales invoice or purchase order.Enum
InventReportDimHistoryLogType (enum)
NoNone
InventDimIdInventory dimension number. Points to the inventory dimensions table.String (20)
InventDimId
YesInventDim.inventDimIdNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
QtyQuantity recorded for this dimension on the document.Real
InventQty
YesNone
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 (11)

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

  • CustConfirmTrans → CustConfirmTrans

    Join on TransactionLogType = InventReportDimHistoryLogType::SalesConfirm, InventTransId = CustConfirmTrans.InventTransId, TransRefId = CustConfirmTrans.ConfirmId

    Many InventReportDimHistory records → zero or one CustConfirmTrans record

  • CustInvoiceTrans → CustInvoiceTrans

    Join on TransactionLogType = InventReportDimHistoryLogType::SalesInvoice, InventTransId = CustInvoiceTrans.InventTransId, TransRefId = CustInvoiceTrans.InvoiceId

    Many InventReportDimHistory records → zero or one CustInvoiceTrans record

  • CustPackingSlipTrans → CustPackingSlipTrans

    Join on TransactionLogType = InventReportDimHistoryLogType::SalesPackingSlip, InventTransId = CustPackingSlipTrans.InventTransId, TransRefId = CustPackingSlipTrans.PackingSlipId

    Many InventReportDimHistory records → zero or one CustPackingSlipTrans record

  • CustQuotationConfirmTrans → CustQuotationConfirmTrans

    Join on TransactionLogType = InventReportDimHistoryLogType::SalesQuotation, InventTransId = CustQuotationConfirmTrans.InventTransId, TransRefId = CustQuotationConfirmTrans.QuotationConfirmId

    Many InventReportDimHistory records → zero or one CustQuotationConfirmTrans record

  • CustQuotationTrans → CustQuotationTrans

    Join on TransactionLogType = InventReportDimHistoryLogType::SalesQuotation, InventTransId = CustQuotationTrans.InventTransId, TransRefId = CustQuotationTrans.QuotationId

    Many InventReportDimHistory records → zero or one CustQuotationTrans record

  • InventDim → InventDim

    Join on InventDimId = InventDim.inventDimId

    Many InventReportDimHistory records → exactly one InventDim record

  • ProdJournalBOM → ProdJournalBOM

    Join on TransactionLogType = InventReportDimHistoryLogType::ProdJournalBOM, InventTransId = ProdJournalBOM.InventTransId, TransRefId = ProdJournalBOM.InventTransChildRefId

    Many InventReportDimHistory records → zero or one ProdJournalBOM record

  • ProdJournalProd → ProdJournalProd

    Join on TransactionLogType = InventReportDimHistoryLogType::ProdJournalProd, InventTransId = ProdJournalProd.InventTransId, TransRefId = ProdJournalProd.InventTransChildRefId

    Many InventReportDimHistory records → zero or one ProdJournalProd record

  • PurchLineHistory → PurchLineHistory

    Join on TransactionLogType = InventReportDimHistoryLogType::PurchPurchaseOrder, InventTransId = PurchLineHistory.InventTransId

    Many InventReportDimHistory records → zero or one PurchLineHistory record

  • VendInvoiceTrans → VendInvoiceTrans

    Join on TransactionLogType = InventReportDimHistoryLogType::PurchInvoice, InventTransId = VendInvoiceTrans.InventTransId, TransRefId = VendInvoiceTrans.InternalInvoiceId

    Many InventReportDimHistory records → zero or one VendInvoiceTrans record

  • VendReceiptsListTrans → VendReceiptsListTrans

    Join on TransactionLogType = InventReportDimHistoryLogType::PurchReceiptList, InventTransId = VendReceiptsListTrans.InventTransId, TransRefId = VendReceiptsListTrans.ReceiptsListId

    Many InventReportDimHistory records → zero or one VendReceiptsListTrans record

Get this data out

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

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

Email sales@drdynamics.co.uk