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· rootRetailChannelTable· OuterJoin toRetailTransactionTable· read-onlyOMOperatingUnit· OuterJoin toRetailChannelTable· read-onlyRetailDirectSalesChannel· Derived toRetailChannelTableRetailStoreTable· Derived toRetailChannelTableRetailMCRChannelTable· Derived toRetailChannelTableRetailOnlineChannelTable· Derived toRetailChannelTableFinancialDimensionDAVS(tableDimensionSetEntity) · OuterJoin toRetailTransactionTable· read-onlyOrderStatus(tableRetailTransactionOrderStatus) · OuterJoin toRetailTransactionTable
Fields (81)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
RegisterNumberRegister (POS terminal) where the transaction was recorded. | StringRetailTerminalId | No | Yes | RetailTerminalTable.terminalId | RetailTransactionTable.terminal |
ShiftIDShift identifier that the transaction belongs to. It points to a shift record together with the shift register and store. | Int64RetailPosBatchID | No | Yes | RetailPosBatchTable.BatchID | RetailTransactionTable.BatchID |
ShiftRegisterIDRegister on which the shift was opened. | StringRetailTerminalId | No | Yes | RetailTerminalTable.terminalId | RetailTransactionTable.BatchTerminalId |
BusinessDateBusiness date of the transaction. | DateRetailBusinessDate | No | Yes | RetailTransactionTable.businessDate | |
ChannelRetail channel the transaction belongs to, as a system record ID. | Int64RefRecId | No | Yes | RetailChannelTable.RecId | RetailTransactionTable.Channel |
ChannelReferenceIdIdentifier of the order or transaction in the channel it came from. | String (50)RetailOrderChannelReferenceId | No | Yes | RetailTransactionTable.ChannelReferenceId | |
CommentFree-text comment on the transaction. | String (60)RetailCommentEx5 | No | Yes | RetailTransactionTable.comment | |
CreatedOfflineShows whether the transaction was created while the register was offline. | EnumNoYesId
| No | Yes | RetailTransactionTable.CreatedOffline | |
CreatedAtRegisterRegister where the transaction was created. | StringRetailTerminalId | No | Yes | RetailTerminalTable.terminalId | RetailTransactionTable.createdOnPosTerminal |
CurrencyCurrency code of the transaction. | String (3)CurrencyCode | No | Yes | Currency.CurrencyCode | RetailTransactionTable.currency |
CustomerAccountCustomer account linked to the transaction. | String (38)RetailAsyncCustAccount | No | Yes | CustTable.AccountNum | RetailTransactionTable.custAccount |
CustomerDiscountDiscount amount given to the customer. | RealRetailCustDiscAmount | No | Yes | RetailTransactionTable.custDiscAmount | |
FinancialDimensionSet of financial dimension values assigned to the transaction. | Int64LedgerDefaultDimensionValueSet | No | No (private) | DimensionAttributeValueSet.RecId | RetailTransactionTable.DefaultDimension |
DescriptionShort text describing the transaction. | String (150)RetailTransactionTableDescription | No | Yes | RetailTransactionTable.Description | |
DiscountAmountDiscount amount of the transaction. | RealRetailDiscAmount | No | Yes | RetailTransactionTable.discAmount | |
DiscountAmountExcludingTaxDiscount amount, not including tax. | RealDiscAmountWithoutTax | No | Yes | RetailTransactionTable.discAmountWithoutTax | |
ModeOfDeliveryMode of delivery chosen for the transaction. | StringCustDlvModeId | No | Yes | RetailTransactionTable.DlvMode | |
EntryStatusStatus of the transaction, for example voided, posted, concluded or on hold. | EnumRetailTransEntryStatus
| No | Yes | RetailTransactionTable.entryStatus | |
ExchangeRateExchange rate stored with the transaction. | RealExchRate | No | Yes | RetailTransactionTable.exchRate | |
FiscalDocumentIdIdentifier of the fiscal document linked to the transaction. | String (80)RetailFiscalDocumentId | No | Yes | RetailTransactionTable.FiscalDocumentId | |
FiscalSerialIdSerial identifier of the fiscal document or device. | String (80)RetailFiscalSerialId | No | Yes | RetailTransactionTable.FiscalSerialId | |
GrossAmountGross amount of the transaction. | RealRetailGrossAmount | No | Yes | RetailTransactionTable.grossAmount | |
IncomeExpenseAmountAmount of income or expense entries in the transaction. | RealRetailIncomeExpenseAmount | No | Yes | RetailTransactionTable.incomeExpenseAmount | |
WarehouseWarehouse linked to the transaction. | StringSalesInventLocationId | No | Yes | RetailTransactionTable.InventLocationId | |
SiteInventory site linked to the transaction. | StringInventSiteId | No | Yes | RetailTransactionTable.InventSiteId | |
InvoiceCommentComment text kept for the invoice.low confidence | String (60)RetailCommentEx5 | No | Yes | RetailTransactionTable.InvoiceComment | |
InvoiceInvoice number linked to the transaction. | String (50)InvoiceId | No | Yes | RetailTransactionTable.invoiceId | |
LoyaltyCardNumberNumber of the loyalty card used on the transaction. | String (30)RetailLoyaltyCardNumber | No | Yes | RetailLoyaltyCard.CardNumber | RetailTransactionTable.loyaltyCardId |
NetAmountNet amount excluding tax. Whether tax is already removed depends on the pricing mode. | RealRetailNetAmount | No | Yes | RetailTransactionTable.netAmount | |
NetPriceNet price on the transaction. | RealRetailNetPrice | No | Yes | RetailTransactionTable.netPrice | |
NumberOfProductLinesCount of product lines on the transaction. | RealRetailNumberOfItemLines | No | Yes | RetailTransactionTable.numberOfItemLines | |
NumberOfProductsTotal quantity of products on the transaction. | RealRetailNumberOfItems | No | Yes | RetailTransactionTable.numberOfItems | |
NumberOfPaymentLinesCount of payment lines on the transaction. | IntegerRetailNumberOfPaymentLines | No | Yes | RetailTransactionTable.numberOfPaymentLines | |
PaymentAmountTotal amount paid on the transaction. | RealRetailPaymentAmount | No | Yes | RetailTransactionTable.paymentAmount | |
RequestedReceiptDateReceipt date requested by the customer. | DateSalesReceiptDateRequested | No | Yes | RetailTransactionTable.ReceiptDateRequested | |
ReceiptEmailEmail address to which the receipt is sent. | String (80)RetailReceiptEmail | No | Yes | RetailTransactionTable.receiptEmail | |
ReceiptNumberReceipt number of the transaction. | String (18)RetailReceiptId | No | Yes | RetailTransactionTable.receiptId | |
SaleIsReturnSaleMarks a transaction as a return made against a receipt. | EnumRetailSaleIsReturnSale
| No | Yes | RetailTransactionTable.saleIsReturnSale | |
SalesInvoiceAmountAmount on the sales invoice. | RealRetailSalesInvoiceAmount | No | Yes | RetailTransactionTable.salesInvoiceAmount | |
SalesOrderSales order linked to the transaction. | String (20)SalesId | No | Yes | SalesTable.SalesId | RetailTransactionTable.salesOrderId |
SalesPaymentDifferenceDifference between the sales amount and the payment amount. | RealRetailSalesPaymentDifference | No | Yes | RetailTransactionTable.salesPaymentDifference | |
RequestedShipDateShip date requested by the customer. | DateSalesShippingDateRequested | No | Yes | RetailTransactionTable.ShippingDateRequested | |
SkipAggregationFlag to leave the transaction out of aggregation. It has no label.low confidence | EnumNoYesId
| No | Yes | RetailTransactionTable.SkipAggregation | |
OperatorIDOperator who handled the transaction. | String (25)RetailStaffId | No | Yes | RetailTransactionTable.staff | |
StatementCodeCode of the statement the transaction is in. | String (25)RetailStatementCode | No | Yes | RetailTransactionTable.statementCode | |
StatementNumberStatement number the transaction is included in. | String (20)RetailStatementId | No | Yes | RetailStatementTable.statementId | RetailTransactionTable.statementId |
StoreNumberStore where the transaction took place. | StringRetailStoreId | No | Yes | RetailStoreTable.StoreNumber | RetailTransactionTable.store |
TimeWhenTransactionClosedTime when the transaction was closed. | TimeRetailTimeWhenTransClosed | No | Yes | RetailTransactionTable.timeWhenTransClosed | |
TotalDiscountAmountTotal discount amount of the transaction. | RealRetailTotalDiscAmount | No | Yes | RetailTransactionTable.totalDiscAmount | |
TotalManualDiscountAmountSum of discounts entered manually. | RealRetailTotalManualDiscountAmount | No | Yes | RetailTransactionTable.TotalManualDiscountAmount | |
TotalManualDiscountPercentageManual discount expressed as a percentage. | RealRetailTotalManualDiscountPercentage | No | Yes | RetailTransactionTable.TotalManualDiscountPercentage | |
TransactionIdTransaction number. It identifies the transaction within its store and register. | String (44)RetailTransactionId | Yes | Yes | RetailTransactionTable.transactionId | |
TransCodeCode that flags an issue with the transaction, such as a blocked customer or a sales and payment difference. | EnumRetailTransCode
| No | Yes | RetailTransactionTable.transCode | |
TransactionDateDate of the transaction. | DateTransDate | No | Yes | RetailTransactionTable.transDate | |
TransactionTimeTime of the transaction. | TimeRetailTransTime | No | Yes | RetailTransactionTable.transTime | |
TransactionTypeKind of transaction, such as sales, payment, logon, logoff or tender declaration. | Enum
| Yes | Yes | RetailTransactionTable.type | |
CustomerAccountAsyncCustomer account in the asynchronous customer scenario.low confidence | String (38)RetailAsyncCustAccount | No | Yes | RetailTransactionTable.CustAccountAsync | |
SalesGroupCommission sales group assigned to the transaction. | StringCommissSalesGroup | No | Yes | CommissionSalesGroup.GroupId | RetailTransactionTable.SalesGroup |
TaxCalculationTypeTax calculation method: regular or generic tax engine. | Enum
| No | Yes | RetailTransactionTable.TaxCalculationType | |
ValidationStatusResult of validating the transaction, such as pending, in progress, error or successful. | Enum
| No | Yes | RetailTransactionTable.ValidationStatus | |
LastValidationTimeDate and time of the last validation. | UtcDateTime | No | Yes | RetailTransactionTable.ValidationDateTime | |
SaleOnAccountShows whether the transaction is an on-account sale. | EnumRetailTransactionSaleOnAccount
| No | Yes | RetailTransactionTable.SaleOnAccount | |
IsTaxIncludedInPriceShows whether prices include tax. | EnumRetailIsTaxIncludedInPrice
| No | Yes | RetailTransactionTable.IsTaxIncludedInPrice | |
SuspendedTransactionIdNumber of the transaction that the original one was suspended to. | String (44)RetailTransactionId | No | Yes | RetailTransactionTable.SuspendedTransactionId | |
GiftCardActiveFromDate and time from which a gift card is active. | UtcDateTimeRetailGiftCardActiveFrom | No | Yes | RetailTransactionTable.GiftCardActiveFrom | |
GiftCardExpireDateExpiry date of a gift card. | DateRetailGiftCardExpireDate | No | Yes | RetailTransactionTable.GiftCardExpireDate | |
GiftCardIssueAmountAmount a gift card was issued with, in accounting currency. | RealAmountMST | No | Yes | RetailTransactionTable.GiftCardIssueAmount | |
GiftCardBalanceBalance of a gift card, in accounting currency. | RealAmountMST | No | Yes | RetailTransactionTable.GiftCardBalance | |
GiftCardHistoryDetailsLong text with the history of a gift card. | String (-1)RetailGiftCardHistoryDetails | No | Yes | RetailTransactionTable.GiftCardHistoryDetails | |
GiftCardIdMaskedGift card number with part of it hidden. | String (30)RetailGiftCardIdMasked | No | Yes | RetailTransactionTable.GiftCardIdMasked | |
RetailTransactionAggregationFieldListLink to a record in the aggregation field list. | Int64RefRecId | No | No (private) | RetailTransactionAggregationFieldList.RecId | RetailTransactionTable.RetailTransactionAggregationFieldList |
TransactionOrderTypeOrder type of the transaction: sales order or quote. | EnumRetailTransactionOrderType
| No | Yes | RetailTransactionTable.TransactionOrderType | |
OperatingUnitNumberThe number that identifies the operating unit. | String (30)OMOperatingUnitNumber | Yes | Yes | OMOperatingUnit.OMOperatingUnitNumber | |
OperatingUnitRecIdOperating unit that the channel is based on. It is the key of the record. | Int64RefRecId | No | Yes | OMOperatingUnit.RecId | RetailChannelTable.OMOperatingUnitID |
FinancialDimensionDisplayValueDefault dimensions shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
AsynchronousOrderStatusCurrent status of the pending order, for example failed, succeeded, pending synchronization or editing. | Enum
| Yes | Yes | RetailTransactionOrderStatus.Status | |
IsTaxExemptedForPriceInclusiveShows whether tax was exempted where prices include tax. | EnumRetailIsTaxExemptedForPriceInclusive
| No | Yes | RetailTransactionTable.IsTaxExemptedForPriceInclusive | |
QuotationExpiryDateDate on which a quotation expires. | DateQuotationExpiryDate | No | Yes | RetailTransactionTable.QuotationExpiryDate | |
CustPurchaseOrderCustomer's own purchase order or requisition reference. | String (20)CustPurchaseOrder | No | Yes | RetailTransactionTable.CustPurchaseOrder | |
ContactPersonIdContact person linked to the transaction. | String (20)ContactPersonId | No | Yes | ContactPerson.ContactPersonId | RetailTransactionTable.ContactPersonId |
ExpediteExpedite code or flag for the order.low confidence | StringMCRExpedite | No | Yes | RetailTransactionTable.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.
RegisterNumber→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailTransactionTable records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
ShiftID→RetailPosBatchTable.BatchID(key of RetailPosBatchTable)Join on all of:
ShiftID=RetailPosBatchTable.BatchID,ShiftRegisterID=RetailPosBatchTable.TerminalId,StoreNumber=RetailPosBatchTable.StoreIdMany RetailTransactionTable records → exactly one RetailPosBatchTable record
RetailPosBatchTable details: see RetailPosBatchTableEntity, RetailPosBatchEntity, RetailPosBatch2Entity
ShiftRegisterID→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailTransactionTable records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
Channel→RetailChannelTable.RecId(key of RetailChannelTable)Many RetailTransactionTable records → zero or one RetailChannelTable record
RetailChannelTable details: see RetailChannelEntity, RetailCallCenterEntity, RetailOnlineChannelEntity
CreatedAtRegister→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailTransactionTable records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
Currency→Currency.CurrencyCode(key of Currency)Many RetailTransactionTable records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
CustomerAccount→CustTable.AccountNum(key of CustTable)Many RetailTransactionTable records → exactly one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
FinancialDimension→DimensionAttributeValueSet.RecId(key of DimensionAttributeValueSet)Many RetailTransactionTable records → zero or one DimensionAttributeValueSet record
DimensionAttributeValueSet details: see DimensionAttributeValueSetCDREntity, DimensionSetEntity
LoyaltyCardNumber→RetailLoyaltyCard.CardNumber(key of RetailLoyaltyCard)Many RetailTransactionTable records → exactly one RetailLoyaltyCard record
RetailLoyaltyCard details: see RetailLoyaltyCardEntity, RetailLoyaltyCardRewardPointAdjustmentEntity, RetailLoyaltyCardTierEntity
SalesOrder→SalesTable.SalesId(key of SalesTable)Many RetailTransactionTable records → exactly one SalesTable record
SalesTable details: see SalesOrderHeaderV3Entity, SalesOrderHeaderV2Entity, SalesOrderHeaderV4Entity
StatementNumber→RetailStatementTable.statementId(key of RetailStatementTable)Many RetailTransactionTable records → exactly one RetailStatementTable record
RetailStatementTable details: see RetailEodStatementAggregationEntity
StoreNumber→RetailStoreTable.StoreNumber(key of RetailStoreTable)Many RetailTransactionTable records → exactly one RetailStoreTable record
RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity
SalesGroup→CommissionSalesGroup.GroupId(key of CommissionSalesGroup)Many RetailTransactionTable records → zero or one CommissionSalesGroup record
Not exposed by a public entity.
RetailTransactionAggregationFieldList→RetailTransactionAggregationFieldList.RecId(key of RetailTransactionAggregationFieldList)Many RetailTransactionTable records → zero or one RetailTransactionAggregationFieldList 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
ContactPersonId→ContactPerson.ContactPersonId(key of ContactPerson)Many RetailTransactionTable records → exactly one ContactPerson record
ContactPerson details: see smmContactPersonV2Entity, smmContactPersonCDSV2Entity, BusinessDocumentSalesInvoiceBaseEntity
Need help with RetailTransactionAuditableEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.