Data entity
RetailTransactionAuditableSalesLineEntity
Holds the sales lines of retail transactions. Each record covers an item and its quantity details, such as the bar code, serial and lot numbers, warehouse and site. It also holds discounts, tax groups, cost and customer data. The key is operating unit, store, register, transaction and line number.
- Entity name
RetailTransactionAuditableSalesLineEntity- Public entity name
RetailTransactionAuditableSalesLine- OData collection
RetailTransactionAuditableSalesLines- Category
Transaction- Module
Other (no module in the metadata)- Read-only
No- Data management enabled
No- Configuration key
Retail- Keys
OperatingUnitNumber, StoreNumber, RegisterNumber, TransactionId, LineNumber- Staging table
None
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/RetailTransactionAuditableSalesLines- Dataverse virtual table
mserp_retailtransactionauditablesaleslineentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Not enabled for import and export projects.
Data sources
RetailTransactionSalesTrans· rootRetailChannelTable· OuterJoin toRetailTransactionSalesTrans· read-onlyOMOperatingUnit· OuterJoin toRetailChannelTable· read-onlyRetailDirectSalesChannel· Derived toRetailChannelTableRetailStoreTable· Derived toRetailChannelTableRetailMCRChannelTable· Derived toRetailChannelTableRetailOnlineChannelTable· Derived toRetailChannelTableDimensionDAVS(tableDimensionSetEntity) · OuterJoin toRetailTransactionSalesTrans· read-onlyRetailTransactionAuditableEntity· InnerJoin toRetailTransactionSalesTrans· read-only
Fields (90)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
SalesTaxGroupSales tax group linked to the line. | StringTaxGroup | No | Yes | TaxGroupHeading.TaxGroup | RetailTransactionSalesTrans.taxGroup |
ItemSalesTaxGroupItem sales tax group linked to the line. | StringTaxItemGroup | No | Yes | TaxItemGroupHeading.TaxItemGroup | RetailTransactionSalesTrans.TaxItemGroup |
StoreNumberStore where the transaction took place. | StringRetailStoreId | No | Yes | RetailStoreTable.StoreNumber | RetailTransactionSalesTrans.store |
RegisterNumberRegister (POS terminal) where the transaction took place. | StringRetailTerminalId | No | Yes | RetailTerminalTable.terminalId | RetailTransactionSalesTrans.terminalId |
TransactionIdNumber of the retail transaction that the line belongs to. | String (44)RetailTransactionId | Yes | Yes | RetailTransactionTable.transactionId | RetailTransactionSalesTrans.transactionId |
BarcodeBar code recorded for the item on this line. | String (80)ItemBarCode | No | Yes | RetailTransactionSalesTrans.barcode | |
BusinessDateBusiness date of the transaction. | DateRetailBusinessDate | No | Yes | RetailTransactionSalesTrans.businessDate | |
ChannelRetail channel the transaction belongs to. | Int64RefRecId | No | No (private) | RetailChannelTable.RecId | RetailTransactionSalesTrans.Channel |
CommentShort free-text comment on the line. | String (60)RetailCommentEx5 | No | Yes | RetailTransactionSalesTrans.comment | |
CostAmountCost amount recorded for the line. | RealCostAmount | No | Yes | RetailTransactionSalesTrans.costAmount | |
CurrencyCurrency code for the line. | String (3)CurrencyCode | No | Yes | Currency.CurrencyCode | RetailTransactionSalesTrans.currency |
CustomerAccountCustomer account linked to the sale. | String (38)RetailAsyncCustAccount | No | Yes | CustTable.AccountNum | RetailTransactionSalesTrans.custAccount |
DimensionSet of financial dimension values assigned to the line. | Int64LedgerDefaultDimensionValueSet | No | No (private) | DimensionAttributeValueSet.RecId | RetailTransactionSalesTrans.DefaultDimension |
DiscountAmountDiscount amount on the line. | RealRetailDiscAmount | No | Yes | RetailTransactionSalesTrans.discAmount | |
DiscountAmountExcludingTaxDiscount amount without tax. | RealDiscAmountWithoutTax | No | Yes | RetailTransactionSalesTrans.discAmountWithoutTax | |
ModeOfDeliveryMode of delivery for the line. | StringCustDlvModeId | No | Yes | RetailTransactionSalesTrans.DlvMode | |
EmailEmail address for electronic delivery. | String (80)Email | No | Yes | RetailTransactionSalesTrans.ElectronicDeliveryEmail | |
RetailEmailAddressContentText content for the electronic delivery email. | String (400)RetailShipAddressEmailContent | No | Yes | RetailTransactionSalesTrans.ElectronicDeliveryEmailContent | |
GiftcardShows whether the line is a gift card. | EnumRetailGiftcard
| No | Yes | RetailTransactionSalesTrans.giftcard | |
BatchNumberBatch number of the item sold. | String (20)InventBatchId | No | Yes | InventBatch.inventBatchId | RetailTransactionSalesTrans.InventBatchId |
InventoryDimensionNumberLink to the inventory dimension combination of the line. | String (20)InventDimId | No | Yes | InventDim.inventDimId | RetailTransactionSalesTrans.inventDimId |
WarehouseWarehouse linked to the sales line. | StringSalesInventLocationId | No | Yes | InventLocation.InventLocationId | RetailTransactionSalesTrans.InventLocationId |
SerialNumberSerial number of the item sold. | String (20)InventSerialId | No | Yes | InventSerial.InventSerialId | RetailTransactionSalesTrans.InventSerialId |
SiteInventory site of the line. | StringInventSiteId | No | Yes | RetailTransactionSalesTrans.InventSiteId | |
InventoryStatusSalesSales status of the inventory: None, Reserved or Posted. | Enum
| No | Yes | RetailTransactionSalesTrans.inventStatusSales | |
LotIDLot ID that links the line to its inventory transaction origin. | String (20)InventTransId | No | Yes | InventTransOrigin.InventTransId | RetailTransactionSalesTrans.inventTransId |
ItemNumberItem sold on the line. | String (20)ItemId | No | Yes | InventTable.ItemId | RetailTransactionSalesTrans.itemId |
ProductScannedShows whether the item was scanned. | EnumRetailItemIdScanned
| No | Yes | RetailTransactionSalesTrans.itemIdScanned | |
KeyboardProductEntryShows whether the item was keyed in by hand. | EnumRetailKeyboardItemEntry
| No | Yes | RetailTransactionSalesTrans.keyboardItemEntry | |
LineDiscountAmountLine discount amount. | RealDiscAmount | No | Yes | RetailTransactionSalesTrans.lineDscAmount | |
LineManualDiscountAmountManual discount amount on the line; the label calls it a cash discount amount. | RealDiscAmount | No | Yes | RetailTransactionSalesTrans.LineManualDiscountAmount | |
LineManualDiscountPercentageManual discount percentage on the line. | RealDiscPct | No | Yes | RetailTransactionSalesTrans.LineManualDiscountPercentage | |
LineNumberLine number within the transaction. | RealLineNum | Yes | Yes | RetailTransactionSalesTrans.lineNum | |
LinkedProductNotOriginalShows whether the line is a linked item and not the original item. | EnumRetailLinkedItemNotOriginal
| No | Yes | RetailTransactionSalesTrans.linkedItemNotOriginal | |
NetAmountNet amount of the line, without tax. | RealRetailNetAmount | No | Yes | RetailTransactionSalesTrans.netAmount | |
NetAmountIncludingTaxNet amount of the line, labelled as the amount before tax.low confidence | RealRetailNetAmountInclTax | No | Yes | RetailTransactionSalesTrans.netAmountInclTax | |
OriginalOfLinkedProductListShows whether the line is the original item of a linked item list. | EnumRetailOriginalOfLinkedItemList
| No | Yes | RetailTransactionSalesTrans.originalOfLinkedItemList | |
OriginalPriceOriginal price of the item on the line. | RealPrice | No | Yes | RetailTransactionSalesTrans.originalPrice | |
OriginalSalesTaxGroupSales tax group the line had originally. | StringTaxGroup | No | Yes | TaxGroupHeading.TaxGroup | RetailTransactionSalesTrans.OriginalTaxGroup |
OriginalItemSalesTaxGroupItem sales tax group the line had originally. | StringTaxItemGroup | No | Yes | TaxItemGroupHeading.TaxItemGroup | RetailTransactionSalesTrans.OriginalTaxItemGroup |
PeriodicDiscountAmountAmount of periodic discount applied to the line. | RealDiscAmount | No | Yes | RetailTransactionSalesTrans.periodicDiscAmount | |
PeriodicDiscountPercentagePercentage of periodic discount on the line. | RealDiscPct | No | Yes | RetailTransactionSalesTrans.PeriodicPercentageDiscount | |
PricePrice of the item on the line. | RealPrice | No | Yes | RetailTransactionSalesTrans.price | |
PriceChangeShows whether the price was changed. | EnumRetailPriceChange
| No | Yes | RetailTransactionSalesTrans.priceChange | |
PriceInBarcodeShows whether the price came from the bar code. | EnumRetailPriceInBarcode
| No | Yes | RetailTransactionSalesTrans.priceInBarcode | |
QuantityQuantity sold on the line. | RealQty | No | Yes | RetailTransactionSalesTrans.qty | |
RequestedReceiptDateDate the customer asked to receive the goods. | DateSalesReceiptDateRequested | No | Yes | RetailTransactionSalesTrans.ReceiptDateRequested | |
ReceiptNumberReceipt number printed for the transaction. | String (18)RetailReceiptId | No | Yes | RetailTransactionSalesTrans.receiptId | |
ReturnLineNumberLine number of the original line being returned. | RealLineNum | No | Yes | RetailTransactionSalesTrans.returnLineNum | |
ReturnQuantityQuantity returned on the line. | RealQty | No | Yes | RetailTransactionSalesTrans.returnQty | |
ReturnStoreStore of the original sale that is being returned. | StringRetailStoreId | No | Yes | RetailStoreTable.StoreNumber | RetailTransactionSalesTrans.returnStore |
ReturnRegisterNumberRegister of the original sale that is being returned. | StringRetailTerminalId | No | Yes | RetailTerminalTable.terminalId | RetailTransactionSalesTrans.returnTerminalId |
ReturnTransactionNumberTransaction number of the original sale that is being returned. | String (44)RetailTransactionId | No | Yes | RetailTransactionSalesTrans.returnTransactionId | |
RequestedShipDateDate the customer asked for shipping. | DateSalesShippingDateRequested | No | Yes | RetailTransactionSalesTrans.ShippingDateRequested | |
SalesStaffSales staff member who handled the line. | String (25)RetailStaffId | No | Yes | RetailTransactionSalesTrans.staffId | |
StatementCodeStatement code linked to the line. | String (25)RetailStatementCode | No | Yes | RetailTransactionSalesTrans.statementCode | |
StatementNumberStatement that includes this line. | String (20)RetailStatementId | No | Yes | RetailStatementTable.statementId | RetailTransactionSalesTrans.statementId |
SalesTaxAmountSales tax amount on the line. | RealTaxAmount | No | Yes | RetailTransactionSalesTrans.taxAmount | |
TotalDiscountAmountTotal discount amount on the line. | RealDiscAmount | No | Yes | RetailTransactionSalesTrans.totalDiscAmount | |
TotalDiscountPercentageTotal discount percentage on the line. | RealDiscPct | No | Yes | RetailTransactionSalesTrans.totalDiscPct | |
TransactionCodeHow the item was found at the register: Product on file, Product/Barcode not on file or Product blocked. | Enum
| No | Yes | RetailTransactionSalesTrans.transactionCode | |
TransactionStatusEntry status of the line, such as Voided, Posted, Concluded, Cancelled, On Hold or Training. | EnumRetailTransEntryStatus
| No | Yes | RetailTransactionSalesTrans.transactionStatus | |
TransactionDateDate of the transaction. | DateTransDate | No | Yes | RetailTransactionSalesTrans.transDate | |
TransactionTimeTime of the transaction. | TimeRetailTransTime | No | Yes | RetailTransactionSalesTrans.transTime | |
UnitUnit of measure of the quantity. | StringUnitOfMeasureSymbol | No | Yes | RetailTransactionSalesTrans.unit | |
VariantNumberProduct variant of the item. | StringRetailVariantId | No | Yes | RetailTransactionSalesTrans.variantId | |
FulfillmentStoreNumberStore that will fulfil the sale. | StringRetailFulfillmentStoreId | No | Yes | RetailTransactionSalesTrans.FulfillmentStoreId | |
GiftCardNumberNumber of the gift card used on the line. | String (30)RetailGiftCardId | No | Yes | RetailTransactionSalesTrans.GiftCardNumber | |
SalesGroupCommission sales group of the line. | StringCommissSalesGroup | No | Yes | CommissionSalesGroup.GroupId | RetailTransactionSalesTrans.SalesGroup |
GiftCardBalanceBalance of the gift card. | RealRetailGiftCardBalance | No | Yes | RetailTransactionSalesTrans.GiftCardBalance | |
LineDiscountPercentageLine discount as a percentage. | RealDiscPct | No | Yes | RetailTransactionSalesTrans.LinePercentageDiscount | |
InventoryDimensionForReturnInventory dimension combination used for the return. | String (20)InventDimId | No | Yes | RetailTransactionSalesTrans.ReturnInventDimId | |
SalesTaxOverrideCode for a sales tax override on the line. | String (50)TaxOverrideCode | No | Yes | RetailTransactionSalesTrans.TaxOverrideCode | |
IsTaxExemptByTaxOverrideFlag showing whether the line is tax exempt through a tax override code. | EnumIsTaxExemptByTaxOverride
| No | Yes | RetailTransactionSalesTrans.IsTaxExemptByTaxOverride | |
GiftCardOperationGift card action on the line: None, Issue, Add to or Cash out. | Enum
| No | Yes | RetailTransactionSalesTrans.GiftCardOperation | |
GiftCardTypeType of gift card: Unknown, Internal gift card or External gift card. | Enum
| No | Yes | RetailTransactionSalesTrans.GiftCardType | |
CompanyThe company (legal entity) that the record belongs to. | String (4)DataAreaId | No | Yes | RetailTransactionSalesTrans.DataAreaId | |
OperatingUnitRecIdOperating unit that the channel is based on. It is the key of the record. | Int64RefRecId | No | No (private) | OMOperatingUnit.RecId | RetailChannelTable.OMOperatingUnitID |
OperatingUnitNumberThe number that identifies the operating unit. | String (30)OMOperatingUnitNumber | Yes | Yes | OMOperatingUnit.OMOperatingUnitNumber | |
DimensionDisplayValueDefault dimensions shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
HeaderTransactionTypeKind of transaction, such as sales, payment, logon, logoff or tender declaration. | Enum
| No | Yes | RetailTransactionTable.type | |
HeaderValidationStatusResult of validating the transaction, such as pending, in progress, error or successful. | Enum
| No | Yes | RetailTransactionTable.ValidationStatus | |
HeaderAsynchronousOrderStatusCurrent status of the pending order, for example failed, succeeded, pending synchronization or editing. | Enum
| No | Yes | RetailTransactionOrderStatus.Status | |
TaxExemptPriceInclusiveOriginalPriceLine price before the tax exemption was applied on a tax-inclusive price. | RealRetailTaxExemptOriginalPrice | No | Yes | RetailTransactionSalesTrans.TaxExemptPriceInclusiveOriginalPrice | |
TaxExemptPriceInclusiveReductionAmountTax amount removed when tax was exempted on a tax-inclusive price. | RealRetailTaxExemptReductionAmount | No | Yes | RetailTransactionSalesTrans.TaxExemptPriceInclusiveReductionAmount | |
PickupStartTimeStart time of the pickup slot. | TimeRetailPickupTimeslotStartTime | No | Yes | RetailTransactionSalesTrans.PickupStartTime | |
PickupEndTimeEnd time of the pickup slot. | TimeRetailPickupTimeslotEndTime | No | Yes | RetailTransactionSalesTrans.PickupEndTime | |
ReturnTrackingStatusProcessing state of a return line: None, PendingProcessing or Processed. | EnumRetailReturnTrackingStatus
| No | Yes | RetailTransactionSalesTrans.ReturnTrackingStatus | |
FixedPriceChargesSales charges on the line. | RealSalesMarkup | No | Yes | RetailTransactionSalesTrans.SalesMarkup | |
BlockItemReturnShows whether returns of this item are blocked at the POS. | EnumRetailBlockItemReturn
| No | Yes | RetailTransactionSalesTrans.BlockItemReturn |
Foreign keys (22)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
SalesTaxGroup→TaxGroupHeading.TaxGroup(key of TaxGroupHeading)Many RetailTransactionSalesTrans records → exactly one TaxGroupHeading record
TaxGroupHeading details: see TrvExpMobileTaxGroupEntity, TaxGroupEntity, BusinessDocumentTaxGroupHeadingEntity
ItemSalesTaxGroup→TaxItemGroupHeading.TaxItemGroup(key of TaxItemGroupHeading)Many RetailTransactionSalesTrans records → exactly one TaxItemGroupHeading record
TaxItemGroupHeading details: see TrvExpMobileItemTaxEntity, TaxItemGroupEntity, TaxItemGroupHeadingEntity
StoreNumber→RetailStoreTable.StoreNumber(key of RetailStoreTable)Many RetailTransactionSalesTrans records → exactly one RetailStoreTable record
RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity
RegisterNumber→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailTransactionSalesTrans records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
TransactionId→RetailTransactionTable.transactionId(key of RetailTransactionTable)Join on all of:
TransactionId=RetailTransactionTable.transactionId,StoreNumber=RetailTransactionTable.store,RegisterNumber=RetailTransactionTable.terminal,Channel=RetailTransactionTable.ChannelMany RetailTransactionSalesTrans records → zero or one RetailTransactionTable record
RetailTransactionTable details: see RetailTransactionEntity, RetailTransactionTableBIEntity, RetailTransactionTableCDREntity
Channel→RetailChannelTable.RecId(key of RetailChannelTable)Many RetailTransactionSalesTrans records → zero or one RetailChannelTable record
RetailChannelTable details: see RetailChannelEntity, RetailCallCenterEntity, RetailOnlineChannelEntity
Currency→Currency.CurrencyCode(key of Currency)Many RetailTransactionSalesTrans records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
CustomerAccount→CustTable.AccountNum(key of CustTable)Many RetailTransactionSalesTrans records → exactly one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
Dimension→DimensionAttributeValueSet.RecId(key of DimensionAttributeValueSet)Many RetailTransactionSalesTrans records → zero or one DimensionAttributeValueSet record
DimensionAttributeValueSet details: see DimensionAttributeValueSetCDREntity, DimensionSetEntity
BatchNumber→InventBatch.inventBatchId(key of InventBatch)Join on all of:
BatchNumber=InventBatch.inventBatchId,ItemNumber=InventBatch.itemIdMany RetailTransactionSalesTrans records → exactly one InventBatch record
InventBatch details: see InventItemBatchEntity, WHSShipmentReceiptTransactionInventoryDimensionEntity, WHSShipmentReceiptTransactionInventoryDimensionV2Entity
InventoryDimensionNumber→InventDim.inventDimId(key of InventDim)Many RetailTransactionSalesTrans records → exactly one InventDim record
InventDim details: see ProdProductionPickingListJournalEntryEntity, ProdReportAsFinishedProductionJournalEntryEntity, WHSExternalInventoryAdjustmentEntity
Warehouse→InventLocation.InventLocationId(key of InventLocation)Cardinality not set in the metadata.
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
SerialNumber→InventSerial.InventSerialId(key of InventSerial)Join on all of:
SerialNumber=InventSerial.InventSerialId,ItemNumber=InventSerial.ItemIdMany RetailTransactionSalesTrans records → exactly one InventSerial record
InventSerial details: see InventItemSerialNumberEntity
LotID→InventTransOrigin.InventTransId(key of InventTransOrigin)Many RetailTransactionSalesTrans records → exactly one InventTransOrigin record
InventTransOrigin details: see WHSOrderCommittedLicensePlateReservationEntity, InventTransOriginBiEntity, InventTransOriginCDREntity
ItemNumber→InventTable.ItemId(key of InventTable)Many RetailTransactionSalesTrans records → exactly one InventTable record
InventTable details: see EcoResReleasedProductV2Entity, EcoResReleasedProductDVEntity, CLMIntegrationReleasedProductEntity
OriginalSalesTaxGroup→TaxGroupHeading.TaxGroup(key of TaxGroupHeading)Many RetailTransactionSalesTrans records → exactly one TaxGroupHeading record
TaxGroupHeading details: see TrvExpMobileTaxGroupEntity, TaxGroupEntity, BusinessDocumentTaxGroupHeadingEntity
OriginalItemSalesTaxGroup→TaxItemGroupHeading.TaxItemGroup(key of TaxItemGroupHeading)Many RetailTransactionSalesTrans records → exactly one TaxItemGroupHeading record
TaxItemGroupHeading details: see TrvExpMobileItemTaxEntity, TaxItemGroupEntity, TaxItemGroupHeadingEntity
ReturnStore→RetailStoreTable.StoreNumber(key of RetailStoreTable)Many RetailTransactionSalesTrans records → exactly one RetailStoreTable record
RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity
ReturnRegisterNumber→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailTransactionSalesTrans records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
StatementNumber→RetailStatementTable.statementId(key of RetailStatementTable)Many RetailTransactionSalesTrans records → exactly one RetailStatementTable record
RetailStatementTable details: see RetailEodStatementAggregationEntity
SalesGroup→CommissionSalesGroup.GroupId(key of CommissionSalesGroup)Many RetailTransactionSalesTrans records → zero or one CommissionSalesGroup record
Not exposed by a public entity.
OperatingUnitRecId→OMOperatingUnit.RecId(key of OMOperatingUnit)Zero or one RetailChannelTable record → exactly one OMOperatingUnit record
OMOperatingUnit details: see ACOCostCenterTypeEntity, OMOperatingUnitEntity, AssetPackingSlipEntity
Need help with RetailTransactionAuditableSalesLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.