Data entity

RetailTransactionAuditableEntity

Holds the header of each retail transaction. It includes the business date, customer account, currency, amounts, discounts, warehouse, site, shift and entry status. The key is operating unit, store, register and transaction ID. Other auditable line entities link to it.

Entity name
RetailTransactionAuditableEntity
Public entity name
RetailTransactionAuditable
OData collection
RetailTransactionsAuditable
Category
Transaction
Module
Other (no module in the metadata)
Read-only
No
Data management enabled
No
Configuration key
Retail
Keys
OperatingUnitNumber, StoreNumber, RegisterNumber, TransactionId
Staging table
None

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/RetailTransactionsAuditable
Dataverse virtual table
mserp_retailtransactionauditableentity. 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

  • RetailTransactionTable · root
  • RetailChannelTable · OuterJoin to RetailTransactionTable · read-only
  • OMOperatingUnit · OuterJoin to RetailChannelTable · read-only
  • RetailDirectSalesChannel · Derived to RetailChannelTable
  • RetailStoreTable · Derived to RetailChannelTable
  • RetailMCRChannelTable · Derived to RetailChannelTable
  • RetailOnlineChannelTable · Derived to RetailChannelTable
  • FinancialDimensionDAVS (table DimensionSetEntity) · OuterJoin to RetailTransactionTable · read-only
  • OrderStatus (table RetailTransactionOrderStatus) · OuterJoin to RetailTransactionTable

Fields (81)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
RegisterNumberRegister (POS terminal) where the transaction was recorded.String
RetailTerminalId
NoYesRetailTerminalTable.terminalIdRetailTransactionTable.terminal
ShiftIDShift identifier that the transaction belongs to. It points to a shift record together with the shift register and store.Int64
RetailPosBatchID
NoYesRetailPosBatchTable.BatchIDRetailTransactionTable.BatchID
ShiftRegisterIDRegister on which the shift was opened.String
RetailTerminalId
NoYesRetailTerminalTable.terminalIdRetailTransactionTable.BatchTerminalId
BusinessDateBusiness date of the transaction.Date
RetailBusinessDate
NoYesRetailTransactionTable.businessDate
ChannelRetail channel the transaction belongs to, as a system record ID.Int64
RefRecId
NoYesRetailChannelTable.RecIdRetailTransactionTable.Channel
ChannelReferenceIdIdentifier of the order or transaction in the channel it came from.String (50)
RetailOrderChannelReferenceId
NoYesRetailTransactionTable.ChannelReferenceId
CommentFree-text comment on the transaction.String (60)
RetailCommentEx5
NoYesRetailTransactionTable.comment
CreatedOfflineShows whether the transaction was created while the register was offline.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionTable.CreatedOffline
CreatedAtRegisterRegister where the transaction was created.String
RetailTerminalId
NoYesRetailTerminalTable.terminalIdRetailTransactionTable.createdOnPosTerminal
CurrencyCurrency code of the transaction.String (3)
CurrencyCode
NoYesCurrency.CurrencyCodeRetailTransactionTable.currency
CustomerAccountCustomer account linked to the transaction.String (38)
RetailAsyncCustAccount
NoYesCustTable.AccountNumRetailTransactionTable.custAccount
CustomerDiscountDiscount amount given to the customer.Real
RetailCustDiscAmount
NoYesRetailTransactionTable.custDiscAmount
FinancialDimensionSet of financial dimension values assigned to the transaction.Int64
LedgerDefaultDimensionValueSet
NoNo (private)DimensionAttributeValueSet.RecIdRetailTransactionTable.DefaultDimension
DescriptionShort text describing the transaction.String (150)
RetailTransactionTableDescription
NoYesRetailTransactionTable.Description
DiscountAmountDiscount amount of the transaction.Real
RetailDiscAmount
NoYesRetailTransactionTable.discAmount
DiscountAmountExcludingTaxDiscount amount, not including tax.Real
DiscAmountWithoutTax
NoYesRetailTransactionTable.discAmountWithoutTax
ModeOfDeliveryMode of delivery chosen for the transaction.String
CustDlvModeId
NoYesRetailTransactionTable.DlvMode
EntryStatusStatus of the transaction, for example voided, posted, concluded or on hold.Enum
RetailTransEntryStatus
RetailEntryStatus
  • None 0
  • Voided 1
  • Posted 2
  • Concluded 3
  • Cancelled 4
  • OnHold 5
  • Training 6
  • PendingInvoice 7
  • CreatingOrder 8
NoYesRetailTransactionTable.entryStatus
ExchangeRateExchange rate stored with the transaction.Real
ExchRate
NoYesRetailTransactionTable.exchRate
FiscalDocumentIdIdentifier of the fiscal document linked to the transaction.String (80)
RetailFiscalDocumentId
NoYesRetailTransactionTable.FiscalDocumentId
FiscalSerialIdSerial identifier of the fiscal document or device.String (80)
RetailFiscalSerialId
NoYesRetailTransactionTable.FiscalSerialId
GrossAmountGross amount of the transaction.Real
RetailGrossAmount
NoYesRetailTransactionTable.grossAmount
IncomeExpenseAmountAmount of income or expense entries in the transaction.Real
RetailIncomeExpenseAmount
NoYesRetailTransactionTable.incomeExpenseAmount
WarehouseWarehouse linked to the transaction.String
SalesInventLocationId
NoYesRetailTransactionTable.InventLocationId
SiteInventory site linked to the transaction.String
InventSiteId
NoYesRetailTransactionTable.InventSiteId
InvoiceCommentComment text kept for the invoice.low confidenceString (60)
RetailCommentEx5
NoYesRetailTransactionTable.InvoiceComment
InvoiceInvoice number linked to the transaction.String (50)
InvoiceId
NoYesRetailTransactionTable.invoiceId
LoyaltyCardNumberNumber of the loyalty card used on the transaction.String (30)
RetailLoyaltyCardNumber
NoYesRetailLoyaltyCard.CardNumberRetailTransactionTable.loyaltyCardId
NetAmountNet amount excluding tax. Whether tax is already removed depends on the pricing mode.Real
RetailNetAmount
NoYesRetailTransactionTable.netAmount
NetPriceNet price on the transaction.Real
RetailNetPrice
NoYesRetailTransactionTable.netPrice
NumberOfProductLinesCount of product lines on the transaction.Real
RetailNumberOfItemLines
NoYesRetailTransactionTable.numberOfItemLines
NumberOfProductsTotal quantity of products on the transaction.Real
RetailNumberOfItems
NoYesRetailTransactionTable.numberOfItems
NumberOfPaymentLinesCount of payment lines on the transaction.Integer
RetailNumberOfPaymentLines
NoYesRetailTransactionTable.numberOfPaymentLines
PaymentAmountTotal amount paid on the transaction.Real
RetailPaymentAmount
NoYesRetailTransactionTable.paymentAmount
RequestedReceiptDateReceipt date requested by the customer.Date
SalesReceiptDateRequested
NoYesRetailTransactionTable.ReceiptDateRequested
ReceiptEmailEmail address to which the receipt is sent.String (80)
RetailReceiptEmail
NoYesRetailTransactionTable.receiptEmail
ReceiptNumberReceipt number of the transaction.String (18)
RetailReceiptId
NoYesRetailTransactionTable.receiptId
SaleIsReturnSaleMarks a transaction as a return made against a receipt.Enum
RetailSaleIsReturnSale
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionTable.saleIsReturnSale
SalesInvoiceAmountAmount on the sales invoice.Real
RetailSalesInvoiceAmount
NoYesRetailTransactionTable.salesInvoiceAmount
SalesOrderSales order linked to the transaction.String (20)
SalesId
NoYesSalesTable.SalesIdRetailTransactionTable.salesOrderId
SalesPaymentDifferenceDifference between the sales amount and the payment amount.Real
RetailSalesPaymentDifference
NoYesRetailTransactionTable.salesPaymentDifference
RequestedShipDateShip date requested by the customer.Date
SalesShippingDateRequested
NoYesRetailTransactionTable.ShippingDateRequested
SkipAggregationFlag to leave the transaction out of aggregation. It has no label.low confidenceEnum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionTable.SkipAggregation
OperatorIDOperator who handled the transaction.String (25)
RetailStaffId
NoYesRetailTransactionTable.staff
StatementCodeCode of the statement the transaction is in.String (25)
RetailStatementCode
NoYesRetailTransactionTable.statementCode
StatementNumberStatement number the transaction is included in.String (20)
RetailStatementId
NoYesRetailStatementTable.statementIdRetailTransactionTable.statementId
StoreNumberStore where the transaction took place.String
RetailStoreId
NoYesRetailStoreTable.StoreNumberRetailTransactionTable.store
TimeWhenTransactionClosedTime when the transaction was closed.Time
RetailTimeWhenTransClosed
NoYesRetailTransactionTable.timeWhenTransClosed
TotalDiscountAmountTotal discount amount of the transaction.Real
RetailTotalDiscAmount
NoYesRetailTransactionTable.totalDiscAmount
TotalManualDiscountAmountSum of discounts entered manually.Real
RetailTotalManualDiscountAmount
NoYesRetailTransactionTable.TotalManualDiscountAmount
TotalManualDiscountPercentageManual discount expressed as a percentage.Real
RetailTotalManualDiscountPercentage
NoYesRetailTransactionTable.TotalManualDiscountPercentage
TransactionIdTransaction number. It identifies the transaction within its store and register.String (44)
RetailTransactionId
YesYesRetailTransactionTable.transactionId
TransCodeCode that flags an issue with the transaction, such as a blocked customer or a sales and payment difference.Enum
RetailTransCode
RetailTransactionCode
  • None 0
  • BlockedCustomer 1
  • SalesPaymentDifference 2
NoYesRetailTransactionTable.transCode
TransactionDateDate of the transaction.Date
TransDate
NoYesRetailTransactionTable.transDate
TransactionTimeTime of the transaction.Time
RetailTransTime
NoYesRetailTransactionTable.transTime
TransactionTypeKind of transaction, such as sales, payment, logon, logoff or tender declaration.Enum
RetailTransactionType
  • Logoff 0
  • Logon 1
  • Sales 2
  • Payment 3
  • RemoveTender 4
  • FloatEntry 5
  • ChangeTender 6
  • TenderDeclaration 7
  • Voided 8
  • OpenDrawer 9
  • NegativeAdjustment 10
  • PhysicalInventory 11
  • EndOfDay 12
  • EndOfShift 13
  • SalesOrder 14
  • SalesInvoice 15
  • BankDrop 16
  • SafeDrop 17
  • IncomeExpense 18
  • CustomerOrder 19
  • StartingAmount 20
  • SuspendShift 21
  • BlindCloseShift 22
  • CloseShift 23
  • PrintX 24
  • PrintZ 25
  • PendingSalesOrder 27
  • ManagerAuthorize 26
  • KitDisassembly 28
  • ResetPassword 29
  • ChangePassword 30
  • AsyncCustomerQuote 31
  • AsyncCustomerOrder 33
  • ForceDeleteShift 34
  • GiftCardInquiry 35
  • SuspendedTransaction 36
  • AsyncOrderCancellation 37
YesYesRetailTransactionTable.type
CustomerAccountAsyncCustomer account in the asynchronous customer scenario.low confidenceString (38)
RetailAsyncCustAccount
NoYesRetailTransactionTable.CustAccountAsync
SalesGroupCommission sales group assigned to the transaction.String
CommissSalesGroup
NoYesCommissionSalesGroup.GroupIdRetailTransactionTable.SalesGroup
TaxCalculationTypeTax calculation method: regular or generic tax engine.Enum
TaxCalculationType
  • Regular 0
  • GTE 1
NoYesRetailTransactionTable.TaxCalculationType
ValidationStatusResult of validating the transaction, such as pending, in progress, error or successful.Enum
RetailTransactionValidationStatus
  • None 0
  • Pending 20
  • InProgress 40
  • Failed 60
  • Ok 80
NoYesRetailTransactionTable.ValidationStatus
LastValidationTimeDate and time of the last validation.UtcDateTimeNoYesRetailTransactionTable.ValidationDateTime
SaleOnAccountShows whether the transaction is an on-account sale.Enum
RetailTransactionSaleOnAccount
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionTable.SaleOnAccount
IsTaxIncludedInPriceShows whether prices include tax.Enum
RetailIsTaxIncludedInPrice
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionTable.IsTaxIncludedInPrice
SuspendedTransactionIdNumber of the transaction that the original one was suspended to.String (44)
RetailTransactionId
NoYesRetailTransactionTable.SuspendedTransactionId
GiftCardActiveFromDate and time from which a gift card is active.UtcDateTime
RetailGiftCardActiveFrom
NoYesRetailTransactionTable.GiftCardActiveFrom
GiftCardExpireDateExpiry date of a gift card.Date
RetailGiftCardExpireDate
NoYesRetailTransactionTable.GiftCardExpireDate
GiftCardIssueAmountAmount a gift card was issued with, in accounting currency.Real
AmountMST
NoYesRetailTransactionTable.GiftCardIssueAmount
GiftCardBalanceBalance of a gift card, in accounting currency.Real
AmountMST
NoYesRetailTransactionTable.GiftCardBalance
GiftCardHistoryDetailsLong text with the history of a gift card.String (-1)
RetailGiftCardHistoryDetails
NoYesRetailTransactionTable.GiftCardHistoryDetails
GiftCardIdMaskedGift card number with part of it hidden.String (30)
RetailGiftCardIdMasked
NoYesRetailTransactionTable.GiftCardIdMasked
RetailTransactionAggregationFieldListLink to a record in the aggregation field list.Int64
RefRecId
NoNo (private)RetailTransactionAggregationFieldList.RecIdRetailTransactionTable.RetailTransactionAggregationFieldList
TransactionOrderTypeOrder type of the transaction: sales order or quote.Enum
RetailTransactionOrderType
RetailTransactionOrderTypes
  • SalesOrder 0
  • Quote 1
NoYesRetailTransactionTable.TransactionOrderType
OperatingUnitNumberThe number that identifies the operating unit.String (30)
OMOperatingUnitNumber
YesYesOMOperatingUnit.OMOperatingUnitNumber
OperatingUnitRecIdOperating unit that the channel is based on. It is the key of the record.Int64
RefRecId
NoYesOMOperatingUnit.RecIdRetailChannelTable.OMOperatingUnitID
FinancialDimensionDisplayValueDefault dimensions shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
AsynchronousOrderStatusCurrent status of the pending order, for example failed, succeeded, pending synchronization or editing.Enum
RetailTransactionOrderStatusType
  • None 0
  • Failed 1
  • Succeeded 2
  • PendingSynchronization 3
  • Editing 4
YesYesRetailTransactionOrderStatus.Status
IsTaxExemptedForPriceInclusiveShows whether tax was exempted where prices include tax.Enum
RetailIsTaxExemptedForPriceInclusive
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionTable.IsTaxExemptedForPriceInclusive
QuotationExpiryDateDate on which a quotation expires.Date
QuotationExpiryDate
NoYesRetailTransactionTable.QuotationExpiryDate
CustPurchaseOrderCustomer's own purchase order or requisition reference.String (20)
CustPurchaseOrder
NoYesRetailTransactionTable.CustPurchaseOrder
ContactPersonIdContact person linked to the transaction.String (20)
ContactPersonId
NoYesContactPerson.ContactPersonIdRetailTransactionTable.ContactPersonId
ExpediteExpedite code or flag for the order.low confidenceString
MCRExpedite
NoYesRetailTransactionTable.Expedite

Foreign keys (16)

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.

Need help with RetailTransactionAuditableEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk