Table

RetailTransactionSalesTrans

Sales transactions

Holds one row per sales line in a retail transaction, such as a point-of-sale (POS) sale or return. The key is channel, store, register, transaction number and line number. It links to the item, customer, warehouse, inventory dimensions, discounts and statements. It also carries return, gift card, tax and country-specific details.

Table name
RetailTransactionSalesTrans
Module
Commerce transactions and orders
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
transactionLineIdx
Replacement key
transactionLineIdx
Key fields
Channel, store, terminalId, transactionId, lineNum
Model
Foundation

Fields (161)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ChannelRetail channel the transaction belongs to.Int64
RefRecId
NoRetailChannelTable.RecIdRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
storeStore where the transaction took place.String
RetailStoreId
NoRetailStoreTable.StoreNumberRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
terminalIdRegister (POS terminal) where the transaction took place.String
RetailTerminalId
NoRetailTerminalTable.terminalIdRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
transactionIdNumber of the retail transaction that the line belongs to.String (44)
RetailTransactionId
YesRetailTransactionTable.transactionIdRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
lineNumLine number within the transaction.Real
LineNum
YesRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
barcodeBar code recorded for the item on this line.String (80)
ItemBarCode
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
BlockItemReturnShows whether returns of this item are blocked at the POS.Enum
RetailBlockItemReturn
NoYes (enum)
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 1 more
BlockQtyQuantity value for blocking; the exact meaning is not stated in the metadata.low confidenceReal
RetailBlockQty
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
businessDateBusiness date of the transaction.Date
RetailBusinessDate
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
CancelledTransactionIdNumber of the cancelled transaction linked to this line.String (44)
RetailTransactionId
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
CatalogCatalog that the line refers to.Int64
CatalogRefRecId
NoCatalog.RecIdRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
CategoryIdProduct category of the line.Int64
EcoResCategoryId
NoEcoResCategory.RecIdRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
commentShort free-text comment on the line.String (60)
RetailCommentEx5
NoRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
ContinuityScheduleIdContinuity schedule ID linked to the line.String (20)
MCRContinuityScheduleID
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
costAmountCost amount recorded for the line.Real
CostAmount
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
counterCounter number stored on the line; its exact use is not stated in the metadata.low confidenceInteger
RetailCounter
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoRetailTransactionSalesTransBIEntity
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntityRetailTransactionSalesTransCDREntity
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoNone
currencyCurrency code for the line.String (3)
CurrencyCode
NoCurrency.CurrencyCodeRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
custAccountCustomer account linked to the sale.String (38)
RetailAsyncCustAccount
NoCustTable.AccountNumRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
CustAccountAsyncCustomer account stored for the line, using the same type as the main customer account.low confidenceString (38)
RetailAsyncCustAccount
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
custDiscAmountCustomer discount amount on the line.Real
RetailCustDiscAmount
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
custInvoiceDiscAmountCustomer invoice discount amount on the line.Real
RetailCustDiscAmount
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
CustInvoiceTransRecIdRecord reference to a customer invoice line.low confidenceInt64
MCRCustInvoiceTransRefRecId
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
DefaultDimensionSet of financial dimension values assigned to the line.Int64
LedgerDefaultDimensionValueSet
NoDimensionAttributeValueSet.RecIdRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
discAmountDiscount amount on the line.Real
RetailDiscAmount
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
discAmountFromStdPriceDiscount amount measured against the standard price; the label calls it a cash discount.low confidenceReal
DiscAmount
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
discAmountWithoutTaxDiscount amount without tax.Real
DiscAmountWithoutTax
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
discGroupIdPrice group used for the line.String
PriceGroupId
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
discOfferIdPeriodic discount offer applied to the line.String (40)
RetailDiscountOfferId
NoRetailPeriodicDiscount.OfferIdRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
DiscountAmountForPrintingDiscount amount shown when the receipt or document is printed.Real
DiscAmount
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
DlvModeMode of delivery for the line.String
CustDlvModeId
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
ElectronicDeliveryEmailEmail address for electronic delivery.String (80)
Email
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
ElectronicDeliveryEmailContentText content for the electronic delivery email.String (400)
RetailShipAddressEmailContent
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
Exempt_INShows whether the line is tax exempt; used for India.Enum
TaxExemptTax
NoYes (enum)
NoRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
ExpediteExpedite value for the line; the exact meaning is not stated in the metadata.low confidenceString
MCRExpedite
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
FulfillmentStoreIdStore that will fulfil the sale.String
RetailFulfillmentStoreId
NoRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
giftcardShows whether the line is a gift card.Enum
RetailGiftcard
NoYes (enum)
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
GiftCardBalanceBalance of the gift card.Real
RetailGiftCardBalance
NoRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
GiftCardNumberNumber of the gift card used on the line.String (30)
RetailGiftCardId
NoRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
GiftCardOperationGift card action on the line: None, Issue, Add to or Cash out.Enum
RetailGiftCardSalesLineOperation (enum)
NoRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
GiftCardTypeType of gift card: Unknown, Internal gift card or External gift card.Enum
RetailGiftCardType (enum)
NoRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
HSNCode_INHarmonised system (HSN) code of the item; used for India.String
HSNCode_IN
NoHSNCodeTable_IN.CodeRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
infocodeDiscAmountDiscount amount that comes from a reason code (info code).Real
RetailInfocodeDiscAmount
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
InstallmentEligibleShows whether the line can be paid in instalments.Enum
MCRInstallmentEligible
NoYes (enum)
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
InventBatchIdBatch number of the item sold.String (20)
InventBatchId
NoInventBatch.inventBatchIdRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
inventDimIdLink to the inventory dimension combination of the line.String (20)
InventDimId
NoInventDim.inventDimIdRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
InventLocationIdWarehouse linked to the sales line.String
SalesInventLocationId
NoInventLocation.InventLocationIdRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
InventSerialIdSerial number of the item sold.String (20)
InventSerialId
NoInventSerial.InventSerialIdRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
InventSiteIdInventory site of the line.String
InventSiteId
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
InventStatusInventory status code of the stock on the line.String
WHSInventStatusId
NoWHSInventStatus.InventStatusIdRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
inventStatusSalesSales status of the inventory: None, Reserved or Posted.Enum
RetailInventStatusSales (enum)
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
inventTransIdLot ID that links the line to its inventory transaction origin.String (20)
InventTransId
NoInventTransOrigin.InventTransIdRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
IsTaxExemptByTaxOverrideFlag showing whether the line is tax exempt through a tax override code.Enum
IsTaxExemptByTaxOverride
NoYes (enum)
NoRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
itemCorrectedLineShows whether the item on the line was corrected.Enum
RetailItemCorrectedLine
NoYes (enum)
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
itemIdItem sold on the line.String (20)
ItemId
NoInventTable.ItemIdRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
itemIdScannedShows whether the item was scanned.Enum
RetailItemIdScanned
NoYes (enum)
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
itemPostingGroupItem relation value stored on the line.low confidenceString (20)
InventItemRelation
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
keyboardItemEntryShows whether the item was keyed in by hand.Enum
RetailKeyboardItemEntry
NoYes (enum)
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
LicensePlateLicense plate ID linked to the line in the warehouse.String (25)
WHSLicensePlateId
NoWHSLicensePlate.LicensePlateIdRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
lineDscAmountLine discount amount.Real
DiscAmount
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
LineManualDiscountAmountManual discount amount on the line; the label calls it a cash discount amount.Real
DiscAmount
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
LineManualDiscountPercentageManual discount percentage on the line.Real
DiscPct
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
LinePercentageDiscountLine discount as a percentage.Real
DiscPct
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
LineTypeType of line: Catalog free gift, Regular or Continuity parent.Enum
MCRLineType (enum)
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
lineWasDiscountedShows whether a discount was applied to the line.Enum
RetailLineWasDiscounted
NoYes (enum)
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
linkedItemNotOriginalShows whether the line is a linked item and not the original item.Enum
RetailLinkedItemNotOriginal
NoYes (enum)
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
ListingIdChannel listing ID of the product.String (50)
RetailChannelListingId
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
LogisticsPostalAddressPostal address linked to the line.Int64
RefRecId
NoLogisticsPostalAddress.RecIdRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
LoyaltyDiscAmount_RUDiscount amount paid with loyalty points; used for Russia.Real
RetailLoyaltyDiscAmount_RU
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
LoyaltyDiscPct_RUDiscount percentage paid with loyalty points; used for Russia.Real
RetailLoyaltyDiscPct_RU
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoRetailTransactionSalesTransBIEntity
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
ModifiedTransactionIdA system number for the database transaction that last changed the record. System field.Int64
ModifiedTransactionId
NoNone
netAmountNet amount of the line, without tax.Real
RetailNetAmount
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
netAmountInclTaxNet amount of the line, labelled as the amount before tax.low confidenceReal
RetailNetAmountInclTax
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
netPriceNet price of the item after discounts.Real
RetailNetPrice
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
NonGST_INShows whether the line is outside GST; used for India.Enum
NonGST_IN
NoYes (enum)
NoRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
OriginLocation number of the originating location.low confidenceString (50)
RetailConnDistributionLocationId
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
originalOfLinkedItemListShows whether the line is the original item of a linked item list.Enum
RetailOriginalOfLinkedItemList
NoYes (enum)
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
originalPriceOriginal price of the item on the line.Real
Price
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
OriginalTaxGroupSales tax group the line had originally.String
TaxGroup
NoTaxGroupHeading.TaxGroupRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
OriginalTaxItemGroupItem sales tax group the line had originally.String
TaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
ParentInventTransIdLot ID of the parent inventory transaction.low confidenceString (20)
InventTransId
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
periodicDiscAmountAmount of periodic discount applied to the line.Real
DiscAmount
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
periodicDiscGroupPeriodic discount group of the line.String
RetailPeriodicDiscGroup
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
periodicDiscTypeType of periodic discount: None, Quantity discount, Mix and match or Discount.Enum
RetailPeriodicDiscType (enum)
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
PeriodicPercentageDiscountPercentage of periodic discount on the line.Real
DiscPct
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
PickupEndTimeEnd time of the pickup slot.Time
RetailPickupTimeslotEndTime
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
PickupStartTimeStart time of the pickup slot.Time
RetailPickupTimeslotStartTime
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
PostingCalculatedWMSLocationIdWarehouse location worked out for posting, as the name suggests.low confidenceString
WMSLocationId
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
prescriptionIdPrescription ID linked to the line.String
RetailPrescriptionId
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
pricePrice of the item on the line.Real
Price
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
priceChangeShows whether the price was changed.Enum
RetailPriceChange
NoYes (enum)
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
priceInBarcodeShows whether the price came from the bar code.Enum
RetailPriceInBarcode
NoYes (enum)
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
pumpIdFuel pump ID linked to the line.Integer
Integer
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
purchIdPurchase order linked to the line.String (20)
PurchId
NoPurchTable.PurchIdRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
qtyQuantity sold on the line.Real
Qty
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
ReceiptDateRequestedDate the customer asked to receive the goods.Date
SalesReceiptDateRequested
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
receiptIdReceipt number printed for the transaction.String (18)
RetailReceiptId
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
replicatedShows whether the record has been replicated.Enum
RetailReplicated
NoYes (enum)
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
replicationCounterFromOriginReplication counter value taken from the originating system.Integer
RetailReplicationCounter
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
ReturnInventDimIdInventory dimension combination used for the return.String (20)
InventDimId
NoRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
returnLineNumLine number of the original line being returned.Real
LineNum
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
returnNoSaleShows whether the line is a return with no matching sale.Enum
RetailReturnNoSale
NoYes (enum)
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
returnQtyQuantity returned on the line.Real
Qty
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
returnStoreStore of the original sale that is being returned.String
RetailStoreId
NoRetailStoreTable.StoreNumberRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
returnTerminalIdRegister of the original sale that is being returned.String
RetailTerminalId
NoRetailTerminalTable.terminalIdRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
ReturnTrackingStatusProcessing state of a return line: None, PendingProcessing or Processed.Enum
RetailReturnTrackingStatus
RetailReturnTrackingStatusType (enum)
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
returnTransactionIdTransaction number of the original sale that is being returned.String (44)
RetailTransactionId
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
RFIDTagIdRFID tag ID of the item.String (24)
RFIDTagId
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
SalesGroupCommission sales group of the line.String
CommissSalesGroup
NoCommissionSalesGroup.GroupIdRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
SalesMarkupSales charges on the line.Real
SalesMarkup
NoRetailTransactionSalesLineV2EntityRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
scaleItemShows whether the item is sold by scale.Enum
RetailScaleItem
NoYes (enum)
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
sectionStore section number of the item.String
RetailSectionId
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
ServiceAccountingCode_INService accounting code (SAC); used for India.String
ServiceAccountingCode_IN
NoServiceAccountingCodeTable_IN.SACRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
shelfShelf number of the item.String
RetailShelfId
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
shiftWork shift in which the sale took place.String
RetailShiftId
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
shiftDateDate of the work shift.Date
RetailShiftDate
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
ShippingDateRequestedDate the customer asked for shipping.Date
SalesShippingDateRequested
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
SkipSalesLine_RUPurpose not clear from the metadata.low confidenceEnum
NoYes (enum)
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
SourceIdSource code for the line.String (20)
MCRSourceID
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
staffSales staff member on the line.String (25)
RetailStaffId
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
staffIdSales staff member who handled the line.String (25)
RetailStaffId
NoRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
statementCodeStatement code linked to the line.String (25)
RetailStatementCode
NoRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
statementIdStatement that includes this line.String (20)
RetailStatementId
NoRetailStatementTable.statementIdRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
stdNetPriceStandard net price of the item.Real
RetailNetPrice
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
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
taxAmountSales tax amount on the line.Real
TaxAmount
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
TaxExemptPriceInclusiveOriginalPriceLine price before the tax exemption was applied on a tax-inclusive price.Real
RetailTaxExemptOriginalPrice
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
TaxExemptPriceInclusiveReductionAmountTax amount removed when tax was exempted on a tax-inclusive price.Real
RetailTaxExemptReductionAmount
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
taxGroupSales tax group linked to the line.String
TaxGroup
NoTaxGroupHeading.TaxGroupRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
TaxItemGroupItem sales tax group linked to the line.String
TaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
TaxOverrideCodeCode for a sales tax override on the line.String (50)
TaxOverrideCode
NoRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
TaxRatePercentTax rate as a percentage.Real
RetailTaxRatePercent
NoRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
TaxRateTypeName of the tax rate type of the line.String (60)
TaxRateTypeName
NoTaxRateType.NameRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
TenderDiscountAmountDiscount amount linked to the tender (payment method).Real
DiscAmount
NoRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
TenderDiscountPercentageDiscount percentage linked to the tender (payment method).Real
DiscPct
NoRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
totalDiscAmountTotal discount amount on the line.Real
DiscAmount
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
totalDiscInfoCodeLineNumLine number linked to the total discount reason code.low confidenceReal
LineNum
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
totalDiscPctTotal discount percentage on the line.Real
DiscPct
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
totalRoundedAmountRounded amount on the line.Real
RetailRoundedAmount
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
transactionCodeHow the item was found at the register: Product on file, Product/Barcode not on file or Product blocked.Enum
RetailItemTransactionCode (enum)
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
transactionStatusEntry status of the line, such as Voided, Posted, Concluded, Cancelled, On Hold or Training.Enum
RetailTransEntryStatus
RetailEntryStatus (enum)
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
transDateDate of the transaction.Date
TransDate
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
transTimeTime of the transaction.Time
RetailTransTime
NoRetailTransactionAuditableSalesLineEntityRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
unitUnit of measure of the quantity.String
UnitOfMeasureSymbol
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
unitPricePrice per unit.Real
Price
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
unitQtyQuantity in units.Real
UnitQty
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
UpSellOriginWhere the line came from: None, Item cross-sell, Item up-sell or Catalog.Enum
MCRUpSellOrigin (enum)
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
UpSellOriginOfferIdItem ID or catalog ID of the offer that led to the line.String (20)
MCRItemIdOfferId
NoRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
variantIdProduct variant of the item.String
RetailVariantId
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionAuditableSalesLineEntityand 2 more
WarehouseLocationWarehouse location linked to the line.String
WMSLocationId
NoWMSLocation.wMSLocationIdRetailTransactionSalesTransBIEntityRetailTransactionSalesTransCDREntity
weightItemShows whether the item is sold by weight.Enum
RetailWeightItem
NoYes (enum)
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more
weightManuallyEnteredShows whether the weight was keyed in by hand.Enum
RetailWeightManuallyEntered
NoYes (enum)
NoRetailTransactionSalesLineV2EntityRetailTransactionSalesLineEntityRetailTransactionSalesTransBIEntityand 1 more

Indexes (21)

Relations (36)

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

  • Catalog → Catalog

    Join on Catalog = Catalog.RecId

    Many RetailTransactionSalesTrans records → zero or one Catalog record

  • Currency → Currency

    Join on currency = Currency.CurrencyCode

    Many RetailTransactionSalesTrans records → exactly one Currency record

  • CustTable → CustTable

    Join on custAccount = CustTable.AccountNum

    Many RetailTransactionSalesTrans records → exactly one CustTable record

  • DimensionAttributeValueSet → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many RetailTransactionSalesTrans records → zero or one DimensionAttributeValueSet record

  • EcoResCategory → EcoResCategory

    Join on CategoryId = EcoResCategory.RecId

    Many RetailTransactionSalesTrans records → zero or one EcoResCategory record

  • InventBatch → InventBatch

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

    Many RetailTransactionSalesTrans records → exactly one InventBatch record

  • InventDim → InventDim

    Join on inventDimId = InventDim.inventDimId

    Many RetailTransactionSalesTrans records → exactly one InventDim record

  • InventDimCombination → InventDimCombination

    Join on variantId = InventDimCombination.RetailVariantId

    Many RetailTransactionSalesTrans records → zero or one InventDimCombination record

  • InventItemBarcode → InventItemBarcode

    Join on barcode = InventItemBarcode.itemBarCode

    Many RetailTransactionSalesTrans records → zero or one InventItemBarcode record

  • InventSerial → InventSerial

    Join on InventSerialId = InventSerial.InventSerialId, itemId = InventSerial.ItemId

    Many RetailTransactionSalesTrans records → exactly one InventSerial record

  • InventTable → InventTable

    Join on itemId = InventTable.ItemId

    Many RetailTransactionSalesTrans records → exactly one InventTable record

  • InventTransOrigin → InventTransOrigin

    Join on inventTransId = InventTransOrigin.InventTransId

    Many RetailTransactionSalesTrans records → exactly one InventTransOrigin record

  • LogisticsPostalAddress → LogisticsPostalAddress

    Join on LogisticsPostalAddress = LogisticsPostalAddress.RecId

    Zero or one RetailTransactionSalesTrans record → exactly one LogisticsPostalAddress record

  • PurchTable → PurchTable

    Join on purchId = PurchTable.PurchId

    Many RetailTransactionSalesTrans records → exactly one PurchTable record

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailTransactionSalesTrans records → zero or one RetailChannelTable record

  • RetailDiscountOffer → RetailPeriodicDiscount

    Join on discOfferId = RetailPeriodicDiscount.OfferId

    Many RetailTransactionSalesTrans records → exactly one RetailPeriodicDiscount record

  • RetailStatementTable → RetailStatementTable

    Join on statementId = RetailStatementTable.statementId

    Many RetailTransactionSalesTrans records → exactly one RetailStatementTable record

  • RetailStoreTable → RetailStoreTable

    Join on store = RetailStoreTable.StoreNumber

    Many RetailTransactionSalesTrans records → exactly one RetailStoreTable record

  • RetailStoreWorkShiftTable → RetailStoreWorkShiftTable

    Join on shiftDate = RetailStoreWorkShiftTable.shiftDate

    Many RetailTransactionSalesTrans records → zero or one RetailStoreWorkShiftTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on terminalId = RetailTerminalTable.terminalId

    Many RetailTransactionSalesTrans records → exactly one RetailTerminalTable record

  • RetailTransactionTable → RetailTransactionTable

    Join on transactionId = RetailTransactionTable.transactionId, store = RetailTransactionTable.store, terminalId = RetailTransactionTable.terminal, Channel = RetailTransactionTable.Channel

    Many RetailTransactionSalesTrans records → zero or one RetailTransactionTable record

  • ReturnRetailStoreTable → RetailStoreTable

    Join on returnStore = RetailStoreTable.StoreNumber

    Many RetailTransactionSalesTrans records → exactly one RetailStoreTable record

  • ReturnRetailTerminalTable → RetailTerminalTable

    Join on returnTerminalId = RetailTerminalTable.terminalId

    Many RetailTransactionSalesTrans records → exactly one RetailTerminalTable record

  • ReturnRetailTransactionTable → RetailTransactionTable

    Join on returnTransactionId = RetailTransactionTable.transactionId

    Many RetailTransactionSalesTrans records → zero or one RetailTransactionTable record

  • TaxGroupHeading → TaxGroupHeading

    Join on taxGroup = TaxGroupHeading.TaxGroup

    Many RetailTransactionSalesTrans records → exactly one TaxGroupHeading record

  • TaxGroupHeading1 → TaxGroupHeading

    Join on OriginalTaxGroup = TaxGroupHeading.TaxGroup

    Many RetailTransactionSalesTrans records → exactly one TaxGroupHeading record

  • TaxItemGroupHeading → TaxItemGroupHeading

    Join on TaxItemGroup = TaxItemGroupHeading.TaxItemGroup

    Many RetailTransactionSalesTrans records → exactly one TaxItemGroupHeading record

  • TaxItemGroupHeading1 → TaxItemGroupHeading

    Join on OriginalTaxItemGroup = TaxItemGroupHeading.TaxItemGroup

    Many RetailTransactionSalesTrans records → exactly one TaxItemGroupHeading record

  • WMSLocation → WMSLocation

    Join on InventLocationId = WMSLocation.InventLocationId, WarehouseLocation = WMSLocation.wMSLocationId

    Cardinality not set in the metadata.

  • WHSLicensePlate → WHSLicensePlate

    Join on LicensePlate = WHSLicensePlate.LicensePlateId

    Cardinality not set in the metadata.

  • WHSInventStatus → WHSInventStatus

    Join on InventStatus = WHSInventStatus.InventStatusId

    Cardinality not set in the metadata.

  • CommissionSalesGroup → CommissionSalesGroup

    Join on SalesGroup = CommissionSalesGroup.GroupId

    Many RetailTransactionSalesTrans records → zero or one CommissionSalesGroup record

  • InventLocation → InventLocation

    Join on InventLocationId = InventLocation.InventLocationId

    Cardinality not set in the metadata.

  • HSNCode_IN → HSNCodeTable_IN

    Join on HSNCode_IN = HSNCodeTable_IN.Code

    Many RetailTransactionSalesTrans records → zero or one HSNCodeTable_IN record

  • ServiceAccountingCode_IN → ServiceAccountingCodeTable_IN

    Join on ServiceAccountingCode_IN = ServiceAccountingCodeTable_IN.SAC

    Many RetailTransactionSalesTrans records → zero or one ServiceAccountingCodeTable_IN record

  • TaxRateType → TaxRateType

    Join on TaxRateType = TaxRateType.Name

    Many RetailTransactionSalesTrans records → zero or one TaxRateType record

Get this data out

Tables are not exposed directly. These public entities read from RetailTransactionSalesTrans; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk