Table
InventQualityOrderTable
Quality orders
Holds quality orders, one record per quality order, identified by QualityOrderId. Each order links to an item, an inventory dimension and a test group. It also records the source document it came from, such as a purchase, production, transfer or quarantine order. Other fields hold the order status (open, fail or pass), the quantities, and sampling and batch disposition settings.
- Table name
InventQualityOrderTable- Module
Inventory- Table group
WorksheetHeader- Table type
Regular- Data per company
Yes- Configuration key
InventQualityManagement- Primary index
QualityOrderIdIdx- Replacement key
QualityOrderIdIdx- Key fields
QualityOrderId- Model
Foundation
Fields (57)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
QualityOrderIdThe unique ID of the quality order. | String (15)InventQualityOrderId | Yes | TaxEngineQualityOrderTableHeader.QualityOrderId | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
AcceptableQualityLevelThe acceptable quality level (AQL) value set on the quality order. | RealInventAcceptableQualityLevel | No | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity | |
AccountRelationThe customer or vendor account that the order's account selection points to. | String (20)InventTestAccountRelation | No | CustTable.AccountNumVendTable.AccountNum | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
ApplyIndiaTaxes_INShows which India taxes apply: none, VAT, excise or both. Used for India. | EnumApplyIndiaTaxes_IN (enum) | No | None | |
BlockingQtyThe quantity to be blocked for this quality order. | RealInventQty | No | None | |
CompleteBlockingYes/No flag showing whether the full quantity is blocked. | EnumInventBlockingCompleteNoYes (enum) | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CreatedTransactionIdA system number for the database transaction that created the record. System field. | Int64CreatedTransactionId | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionPoints to the default financial dimension values for the order. | Int64InventSiteLinkedDimensionValueSet | No | DimensionAttributeValueSet.RecId | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
FailedInventStatusIdThe inventory status given to the stock if the quality order fails. | StringInventTestFailedInventStatusId | No | WHSInventStatus.InventStatusId | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
InventDimIdPoints to the inventory dimension record (such as site, warehouse or batch) for this order. | String (20)InventDimId | No | InventDim.inventDimId | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
InventRefIdThe ID of the source document, for example a quarantine order, transfer order or production order. | String (20)InventRefId | No | InventQuarantineOrder.QuarantineIdInventTransferTable.TransferIdProdTable.ProdId | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
InventRefTransIdThe lot ID of the source document line, such as a goods in transit, transfer or co-product line. | String (20)InventRefTransId | No | ITMGoodsInTransitOrder.InventTransIdInventTransferLine.InventTransIdPmfProdCoBy.InventTransIdPurchLine.InventTransIdSalesLine.InventTransIdWHSInboundShipmentOrderLine.InventTransId | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
InventTransIdThe lot ID that links the order to its inventory transaction origin. | String (20)InventTransId | No | InventTransOrigin.InventTransId | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
ItemIdThe item that the quality order is for. | String (20)ItemIdInventoried | Yes | InventTable.ItemId | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
ItemNameThe name of the item being tested. | String (60)ItemName | No | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity | |
ItemSamplingIdThe item sampling record used for this order. | StringInventItemSamplingId | No | InventItemSampling.InventItemSamplingId | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
ModifiedTransactionIdA system number for the database transaction that last changed the record. System field. | Int64ModifiedTransactionId | No | None | |
OprNumThe operation number in the production route that the order refers to. | IntegerOprNum | No | ProdRoute.OprNum | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
OrderStatusThe current result of the order: open, fail or pass. | EnumInventTestOrderStatus (enum) | No | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PassedInventStatusIdThe inventory status given to the stock if the quality order passes. | StringInventTestPassedInventStatusId | No | WHSInventStatus.InventStatusId | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
PdsCWBlockingQtyThe blocking quantity in catch weight units. | RealPdsCWInventBlockingQty | No | None | |
PdsCWQtyThe order quantity in catch weight units. | RealPdsCWInventQualityOrderQty | No | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity | |
PdsFailedQualityDispositionCodeThe batch disposition code applied if the quality order fails. | StringPdsFailedQualityDispositionCode | No | PdsDispositionMaster.DispositionCode | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
PdsPassQualityDispositionCodeThe batch disposition code applied if the quality order passes. | StringPdsPassQualityDispositionCode | No | PdsDispositionMaster.DispositionCode | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
PdsUpdateBatchDispYes/No flag for whether the batch disposition is updated. | EnumPdsUpdateBatchDispNoYes (enum) | No | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity | |
PdsUpdateInvBatchAttributesYes/No flag for whether inventory batch attributes are updated. | EnumPdsUpdateInvBatchAttributesNoYes (enum) | No | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity | |
QMSAQLOriginalLotQtyThe starting lot size used to work out the sample quantity. | RealQMSAQLOriginalLotQty | No | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity | |
QMSAssignedToThe worker the quality order is assigned to. | Int64HcmWorkerRecId | No | HcmWorker.RecId | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
QMSFlexibleSamplingPlanIdThe code of the flexible sampling plan used by the order. | StringQMSFlexibleSamplingPlanId | No | QMSInventFlexSamplingPlanTable.FlexibleSamplingPlanId | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
QMSPriorityRecIdPoints to the priority record that ranks this quality order's testing work. | Int64RefRecId | No | QMSInventQualityOrderPriority.RecId | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
QMSSampleIdThe ID of the sample linked to the order. | String (20)QMSSampleId | No | QMSSample.SampleId | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
QMSSampleInspectionMethodHow the sample is inspected: none, inline process, continuous process or both. | EnumQMSSampleInspectionMethod (enum) | No | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity | |
QMSStabilityAssociationRefPoints to the quality association that created this order, which tracks stability for an item and batch. | Int64QMSStabilityAssociationRecId | No | InventTestAssociationTable.RecId | None |
QMSStabilityInventBatchIdThe inventory batch this stability order was created for. | String (20)QMSStabilityInventBatchId | No | None | |
QMSUseForCertOfAnalysisYes/No flag for whether the order feeds a certificate of analysis. | EnumQMSUseForCertOfAnalysisNoYes (enum) | No | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity | |
QtyThe quantity covered by the quality order. | RealInventQualityOrderQty | Yes | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity | |
QuarantineOnFailureYes/No flag for whether stock goes to quarantine when validation fails. | EnumInventTestQuarantineOnFailureNoYes (enum) | No | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity | |
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 | |
ReferenceTypeThe kind of source document the order comes from, such as sales, purchase, production or transfer. | EnumInventTestReferenceType (enum) | No | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity | |
RouteIdThe production route number linked to the order. | String (20)RouteId | No | RouteTable.RouteId | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
RouteOprIdThe route operation that the order refers to. | StringRouteOprId | No | RouteOprTable.OprId | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
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 | |
TestDestructiveYes/No flag showing whether the test is destructive. | EnumInventTestDestructiveNoYes (enum) | No | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity | |
TestGroupIdThe test group that defines the tests for this order. | StringInventTestGroupId | Yes | InventTestGroup.TestGroupId | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
UpdateInventStatusYes/No flag for whether the inventory status is updated after testing. | EnumInventTestUpdateInventStatusNoYes (enum) | No | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity | |
ValidateDate_INThe date the order was validated. Used for India. | DateTransDate | No | None | |
ValidatedByWorkerThe worker who validated the order. | Int64HcmWorkerRecId | No | HcmWorker.RecId | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
ValidatedDateTimeThe date and time the order was validated. | UtcDateTimeTransDateTime | No | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity | |
WrkCtrIdThe resource linked to the order. | StringWrkCtrIdBase | No | WrkCtrTable.WrkCtrId | InventQualityOrderHeaderV2EntityInventQualityOrderHeaderEntity |
Indexes (7)
QualityOrderIdIdxPrimary indexReplacement keyUnique, alternate key.
InventDimIdxNot unique.
ItemReferenceTypeIdIdxItemId,ReferenceType,InventRefId,OrderStatus,TestGroupIdNot unique.
RefIdTypeRefTransIdIdxInventRefId,ReferenceType,InventRefTransIdNot unique.
InventTransIdIdxNot unique.
QMSSampleIdIdxNot unique.
QMSStabilityLineageIdxQMSStabilityAssociationRef,ItemId,QMSStabilityInventBatchId,OrderStatusNot unique.
Relations (40)
Each relation joins InventQualityOrderTable to another table on the fields shown.
CustTable→CustTableJoin on
ReferenceType = InventTestReferenceType::Sales,AccountRelation = CustTable.AccountNumMany InventQualityOrderTable records → zero or one CustTable record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany InventQualityOrderTable records → zero or one DimensionAttributeValueSet record
FailedInventStatus→WHSInventStatusJoin on
FailedInventStatusId = WHSInventStatus.InventStatusIdMany InventQualityOrderTable records → zero or one WHSInventStatus record
HcmWorker→HcmWorkerJoin on
ValidatedByWorker = HcmWorker.RecIdMany InventQualityOrderTable records → zero or one HcmWorker record
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimIdMany InventQualityOrderTable records → zero or one InventDim record
InventItemSampling→InventItemSamplingJoin on
ItemSamplingId = InventItemSampling.InventItemSamplingIdMany InventQualityOrderTable records → zero or one InventItemSampling record
InventQuarantineOrder→InventQuarantineOrderJoin on
ReferenceType = InventTestReferenceType::Quarantine,InventRefId = InventQuarantineOrder.QuarantineIdMany InventQualityOrderTable records → zero or one InventQuarantineOrder record
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany InventQualityOrderTable records → exactly one InventTable record
InventTestGroup→InventTestGroupJoin on
TestGroupId = InventTestGroup.TestGroupIdMany InventQualityOrderTable records → exactly one InventTestGroup record
InventTransOrigin→InventTransOriginJoin on
InventTransId = InventTransOrigin.InventTransIdMany InventQualityOrderTable records → zero or one InventTransOrigin record
PassedInventStatus→WHSInventStatusJoin on
PassedInventStatusId = WHSInventStatus.InventStatusIdMany InventQualityOrderTable records → zero or one WHSInventStatus record
PdsFailedDispositionCode→PdsDispositionMasterJoin on
PdsFailedQualityDispositionCode = PdsDispositionMaster.DispositionCodeMany InventQualityOrderTable records → zero or one PdsDispositionMaster record
PdsPassDispositionCode→PdsDispositionMasterJoin on
PdsPassQualityDispositionCode = PdsDispositionMaster.DispositionCodeMany InventQualityOrderTable records → zero or one PdsDispositionMaster record
PmfProdCoBy→PmfProdCoByJoin on
ReferenceType = InventTestReferenceType::PmfProdCoBy,InventRefId = PmfProdCoBy.ProdId,InventRefTransId = PmfProdCoBy.InventTransIdMany InventQualityOrderTable records → zero or one PmfProdCoBy record
ProdRoute→ProdRouteJoin on
ReferenceType = InventTestReferenceType::RouteOpr,InventRefId = ProdRoute.ProdId,OprNum = ProdRoute.OprNum,RouteOprId = ProdRoute.OprIdMany InventQualityOrderTable records → zero or one ProdRoute record
ProdTable→ProdTableJoin on
ReferenceType = InventTestReferenceType::Production,InventRefId = ProdTable.ProdIdMany InventQualityOrderTable records → zero or one ProdTable record
PurchLine→PurchLineJoin on
ReferenceType = InventTestReferenceType::Purch,InventRefId = PurchLine.PurchId,InventRefTransId = PurchLine.InventTransIdMany InventQualityOrderTable records → zero or one PurchLine record
PurchParmLine→PurchParmLineJoin on
InventRefTransId = PurchParmLine.InventTransId,InventRefId = PurchParmLine.OrigPurchId,ReferenceType = InventTestReferenceType::PurchMany InventQualityOrderTable records → zero or one PurchParmLine record
PurchTable→PurchTableJoin on
ReferenceType = InventTestReferenceType::Purch,AccountRelation = PurchTable.OrderAccount,InventRefId = PurchTable.PurchIdMany InventQualityOrderTable records → zero or one PurchTable record
RouteOprTable→RouteOprTableJoin on
RouteOprId = RouteOprTable.OprIdMany InventQualityOrderTable records → zero or one RouteOprTable record
RouteTable→RouteTableJoin on
RouteId = RouteTable.RouteIdMany InventQualityOrderTable records → zero or one RouteTable record
SalesLine→SalesLineJoin on
ReferenceType = InventTestReferenceType::Sales,InventRefId = SalesLine.SalesId,InventRefTransId = SalesLine.InventTransIdMany InventQualityOrderTable records → zero or one SalesLine record
SalesTable→SalesTableJoin on
ReferenceType = InventTestReferenceType::Sales,AccountRelation = SalesTable.CustAccount,InventRefId = SalesTable.SalesIdMany InventQualityOrderTable records → zero or one SalesTable record
VendTable→VendTableJoin on
ReferenceType = InventTestReferenceType::Purch,AccountRelation = VendTable.AccountNumMany InventQualityOrderTable records → zero or one VendTable record
WrkCtrTable→WrkCtrTableJoin on
WrkCtrId = WrkCtrTable.WrkCtrIdMany InventQualityOrderTable records → zero or one WrkCtrTable record
TaxEngineQualityOrderTableHeader→TaxEngineQualityOrderTableHeaderJoin on
QualityOrderId = TaxEngineQualityOrderTableHeader.QualityOrderIdOne or more InventQualityOrderTable records → exactly one TaxEngineQualityOrderTableHeader record
QMSInventFlexSamplingPlan→QMSInventFlexSamplingPlanTableJoin on
QMSFlexibleSamplingPlanId = QMSInventFlexSamplingPlanTable.FlexibleSamplingPlanIdMany InventQualityOrderTable records → exactly one QMSInventFlexSamplingPlanTable record
QMSInventFlexSamplingActivity→QMSInventFlexSamplingActivityTableJoin on
QMSFlexibleSamplingPlanId = QMSInventFlexSamplingActivityTable.FlexibleSamplingPlanId,ItemId = QMSInventFlexSamplingActivityTable.ItemId,ReferenceType = QMSInventFlexSamplingActivityTable.ReferenceType,AccountRelation = QMSInventFlexSamplingActivityTable.AccountRelationMany InventQualityOrderTable records → zero or one QMSInventFlexSamplingActivityTable record
QMSInventTransferLine→InventTransferLineJoin on
ReferenceType = InventTestReferenceType::QMSTransfer,InventRefId = InventTransferLine.TransferId,InventRefTransId = InventTransferLine.InventTransIdMany InventQualityOrderTable records → zero or one InventTransferLine record
QMSSalesReturn→SalesTableJoin on
ReferenceType = InventTestReferenceType::QMSReturn,InventRefId = SalesTable.SalesId,AccountRelation = SalesTable.CustAccount,SalesTable.SalesType = SalesType::ReturnItemMany InventQualityOrderTable records → zero or one SalesTable record
QMSSalesReturnLine→SalesLineJoin on
ReferenceType = InventTestReferenceType::QMSReturn,InventRefId = SalesLine.SalesId,AccountRelation = SalesLine.CustAccount,SalesLine.SalesType = SalesType::SalesMany InventQualityOrderTable records → zero or one SalesLine record
QMSInventTransferTable→InventTransferTableJoin on
ReferenceType = InventTestReferenceType::QMSTransfer,InventRefId = InventTransferTable.TransferIdMany InventQualityOrderTable records → zero or one InventTransferTable record
QMSAssignedTo→HcmWorkerJoin on
QMSAssignedTo = HcmWorker.RecIdMany InventQualityOrderTable records → zero or one HcmWorker record
QMSInventQualityOrderPriority→QMSInventQualityOrderPriorityJoin on
QMSPriorityRecId = QMSInventQualityOrderPriority.RecIdMany InventQualityOrderTable records → zero or one QMSInventQualityOrderPriority record
QMSSample→QMSSampleJoin on
QMSSampleId = QMSSample.SampleIdMany InventQualityOrderTable records → zero or one QMSSample record
QMSStabilityAssociation→InventTestAssociationTableJoin on
QMSStabilityAssociationRef = InventTestAssociationTable.RecIdMany InventQualityOrderTable records → zero or one InventTestAssociationTable record
ITMGIT→ITMGoodsInTransitOrderJoin on
ReferenceType = InventTestReferenceType::ITMGoodsInTransitOrder,InventRefId = ITMGoodsInTransitOrder.GITId,InventRefTransId = ITMGoodsInTransitOrder.InventTransIdMany InventQualityOrderTable records → zero or one ITMGoodsInTransitOrder record
InboundShipmentOrder→WHSInboundShipmentOrderJoin on
ReferenceType = InventTestReferenceType::WHSInboundShipmentOrder,InventRefId = WHSInboundShipmentOrder.InboundShipmentOrderId,AccountRelation = WHSInboundShipmentOrder.ConsignerAccountNumberMany InventQualityOrderTable records → zero or one WHSInboundShipmentOrder record
WHSInboundShipmentOrderLine→WHSInboundShipmentOrderLineJoin on
ReferenceType = InventTestReferenceType::WHSInboundShipmentOrder,InventRefId = WHSInboundShipmentOrderLine.InboundShipmentOrderId,InventRefTransId = WHSInboundShipmentOrderLine.InventTransIdMany InventQualityOrderTable records → zero or one WHSInboundShipmentOrderLine record
Consigner→WHSConsignerTableJoin on
ReferenceType = InventTestReferenceType::WHSInboundShipmentOrder,AccountRelation = WHSConsignerTable.AccountNumberMany InventQualityOrderTable records → zero or one WHSConsignerTable record
Get this data out
Tables are not exposed directly. These public entities read from InventQualityOrderTable; use one of them in Power BI, Power Platform or a data management project.
InventQualityOrderHeaderV2Entity· 38 fields from this tableInventQualityOrderHeaderEntity· 38 fields from this table
Need help with InventQualityOrderTable in a report, an integration or a migration? Talk to Dr Dynamics.