Data entity
RetailTransactionPaymentLineV2Entity
Payment lines of retail transactions, version 2. Each row is one payment line, keyed by register, transaction number, line number, operating unit and store. It holds amounts, tender details, card and gift card data, and details of a linked refund payment.
- Entity name
RetailTransactionPaymentLineV2Entity- Public entity name
RetailTransactionPaymentLineV2- OData collection
RetailTransactionPaymentLinesV2- Category
Not set- Module
Retail- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
Terminal, TransactionNumber, LineNumber, OperatingUnitNumber, Store- Staging table
RetailTransactionPaymentLineV2Staging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/RetailTransactionPaymentLinesV2- Dataverse virtual table
mserp_retailtransactionpaymentlinev2entity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
RetailTransactionPaymentTrans· rootRetailChannelTable· OuterJoin toRetailTransactionPaymentTrans· read-onlyOMOperatingUnit· OuterJoin toRetailChannelTable· read-onlyRetailDirectSalesChannel· Derived toRetailChannelTableRetailOnlineChannelTable· Derived toRetailChannelTableRetailMCRChannelTable· Derived toRetailChannelTableRetailStoreTable· Derived toRetailChannelTableRetailTransactionPaymentTransExt· OuterJoin toRetailTransactionPaymentTransRetailStoreTenderTypeTable· OuterJoin toRetailTransactionPaymentTrans
Fields (39)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AccountNumberAccount number linked to the payment line. The metadata gives no further detail.low confidence | String (30) | No | Yes | computed | |
AmountInAccountingCurrencyPayment amount in the accounting currency. | RealAmountMST | No | Yes | RetailTransactionPaymentTrans.amountMST | |
AmountInTenderedCurrencyPayment amount in the transaction currency. | RealAmountCur | No | Yes | RetailTransactionPaymentTrans.amountCur | |
AmountTenderedAmount handed over by the customer for this payment. | RealRetailAmountTendered | No | Yes | RetailTransactionPaymentTrans.amountTendered | |
AmountTenderedAdjustmentTendered amount for the payment line. The label does not explain the adjustment.low confidence | RealRetailAmountTendered | No | Yes | RetailTransactionPaymentTransExt.AmountTenderedAdjustment | |
CardNumberCard number linked to the payment line. The metadata gives no further detail.low confidence | String (30) | No | Yes | computed | |
CardOrAccountCard number or account used for the payment. | String (30)RetailCardOrAccount | No | No (private) | RetailTransactionPaymentTrans.cardOrAccount | |
CardTypeIdType of card used. Points to the card type record. | StringRetailCardTypeId | No | Yes | RetailTenderTypeCardTable.cardTypeId | RetailTransactionPaymentTrans.cardTypeId |
ChannelThe retail channel of the transaction. Points to the channel record. | Int64RefRecId | No | No (private) | RetailChannelTable.RecId | RetailTransactionPaymentTrans.Channel |
CreditVoucherIdCredit memo used for the payment. Points to the credit memo record. | String (30)RetailCreditVoucherId | No | Yes | RetailCreditVoucherTable.entryId | RetailTransactionPaymentTrans.creditVoucherId |
CurrencyCodeCurrency code of the payment. Points to the currency record. | String (3)CurrencyCode | No | Yes | Currency.CurrencyCode | RetailTransactionPaymentTrans.currency |
ExchangeRateInAccountingCurrencyExchange rate to the accounting currency. | RealExchRate | No | Yes | RetailTransactionPaymentTrans.exchRateMST | |
ExchangeRateInTenderedCurrencyExchange rate applied to the payment. | RealExchRate | No | Yes | RetailTransactionPaymentTrans.exchRate | |
FunctionType of behaviour of the payment method, such as normal, card, cheque, customer or wallet. | EnumRetailTenderTypeFunction
| No | Yes | RetailStoreTenderTypeTable.function | |
GiftCardIdGift card used for the payment. Points to the gift card record. | String (30)RetailGiftCardId | No | Yes | RetailGiftCardTable.entryId | RetailTransactionPaymentTrans.giftCardId |
IsChangeLineYes/No flag showing whether the line is a change line. | EnumRetailChangeLine
| No | Yes | RetailTransactionPaymentTrans.changeLine | |
IsLinkedRefundYes/No flag showing whether the line is a refund linked to an earlier payment. | Enum
| No | Yes | RetailTransactionPaymentTrans.IsLinkedRefund | |
IsPrepaymentYes/No flag showing whether the payment is a prepayment. | EnumNoYesId
| No | Yes | RetailTransactionPaymentTrans.isPrepayment | |
LineNumberLine number within the transaction. | RealLineNum | No | Yes | RetailTransactionPaymentTrans.lineNum | |
LinkedPaymentLineNumberLine number of the earlier payment that this refund is linked to. | RealLineNum | No | Yes | RetailTransactionPaymentTrans.lineNum | RetailTransactionPaymentTrans.LinkedPaymentLineNumber |
LinkedPaymentStoreStore of the earlier payment that this refund is linked to. | StringRetailStoreId | No | Yes | RetailTransactionPaymentTrans.LinkedPaymentStore | |
LinkedPaymentTerminalRegister of the earlier payment that this refund is linked to. | StringRetailTerminalId | No | Yes | RetailTransactionPaymentTrans.LinkedPaymentTerminalId | |
LinkedPaymentTransactionNumberTransaction number of the earlier payment that this refund is linked to. | String (44)RetailTransactionId | No | Yes | RetailTransactionPaymentTrans.LinkedPaymentTransactionId | |
LinkedPaymentCurrencyCurrency of the earlier payment that this refund is linked to. | String (3)CurrencyCode | No | Yes | RetailTransactionPaymentTrans.LinkedPaymentCurrency | |
LoyaltyCardIdLoyalty card number linked to the payment. Points to the loyalty card record. | String (30)RetailLoyaltyCardNumber | No | Yes | RetailLoyaltyCard.CardNumber | RetailTransactionPaymentTrans.loyaltyCardId |
ReceiptIdReceipt number printed for the transaction. | String (18)RetailReceiptId | No | Yes | RetailTransactionPaymentTrans.receiptId | |
RefundableAmountAmount that can still be refunded on the linked payment, in the transaction currency. | RealAmountCur | No | Yes | RetailTransactionPaymentTrans.RefundableAmount | |
RetailChannelTableOMOperatingUnitIDOperating 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 | |
PaymentCaptureTokenLong text token for capturing the linked payment. | String (-1)RetailPaymentCaptureToken | No | Yes | RetailTransactionPaymentTrans.PaymentCaptureToken | |
QuantityQuantity on the payment line. | RealQty | No | Yes | RetailTransactionPaymentTrans.qty | |
StaffID of the operator who handled the payment. | String (25)RetailStaffId | No | Yes | RetailTransactionPaymentTrans.staff | |
StoreStore where the payment was taken. | StringRetailStoreId | No | Yes | RetailStoreTable.StoreNumber | RetailTransactionPaymentTrans.store |
TenderTypePayment method used, such as cash or card. | StringRetailTenderTypeId | No | Yes | RetailTenderTypeTable.tenderTypeId | RetailTransactionPaymentTrans.tenderType |
TerminalRegister (POS terminal) where the payment was taken. | StringRetailTerminalId | No | Yes | RetailTerminalTable.terminalId | RetailTransactionPaymentTrans.terminal |
TransactionNumberNumber of the retail transaction the payment belongs to. | String (44)RetailTransactionId | No | Yes | RetailTransactionTable.transactionId | RetailTransactionPaymentTrans.transactionId |
TransactionStatusStatus of the entry, such as voided, posted, concluded or on hold. | EnumRetailTransEntryStatus
| No | Yes | RetailTransactionPaymentTrans.transactionStatus | |
VoidStatusVoid state of the payment: none, payment voided, force voided or force void reconciled. | Enum
| No | Yes | RetailTransactionPaymentTrans.VoidStatus | |
IsPaymentCapturedYes/No flag showing whether the payment has been captured. | EnumRetailPaymentStatus
| No | Yes | RetailTransactionPaymentTrans.IsPaymentCaptured |
Foreign keys (12)
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.
CardTypeId→RetailTenderTypeCardTable.cardTypeId(key of RetailTenderTypeCardTable)Many RetailTransactionPaymentTrans records → exactly one RetailTenderTypeCardTable record
RetailTenderTypeCardTable details: see RetailTenderTypeCardEntity, RetailChannelEntity
Channel→RetailChannelTable.RecId(key of RetailChannelTable)Many RetailTransactionPaymentTrans records → zero or one RetailChannelTable record
RetailChannelTable details: see RetailChannelEntity, RetailCallCenterEntity, RetailOnlineChannelEntity
CreditVoucherId→RetailCreditVoucherTable.entryId(key of RetailCreditVoucherTable)Many RetailTransactionPaymentTrans records → zero or one RetailCreditVoucherTable record
RetailCreditVoucherTable details: see RetailCreditMemoEntity
CurrencyCode→Currency.CurrencyCode(key of Currency)Many RetailTransactionPaymentTrans records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
GiftCardId→RetailGiftCardTable.entryId(key of RetailGiftCardTable)Many RetailTransactionPaymentTrans records → zero or one RetailGiftCardTable record
RetailGiftCardTable details: see RetailGiftCardEntity, MCRContinuityCustomerPaymentEntity, MCRCustomerCreditPaymentEntity
LinkedPaymentLineNumber→RetailTransactionPaymentTrans.lineNum(key of RetailTransactionPaymentTrans)Join on all of:
LinkedPaymentLineNumber=RetailTransactionPaymentTrans.lineNum,Channel=RetailTransactionPaymentTrans.Channel,LinkedPaymentStore=RetailTransactionPaymentTrans.store,LinkedPaymentTerminal=RetailTransactionPaymentTrans.terminal,LinkedPaymentTransactionNumber=RetailTransactionPaymentTrans.transactionId,LinkedPaymentCurrency=RetailTransactionPaymentTrans.currencyMany RetailTransactionPaymentTrans records → exactly one RetailTransactionPaymentTrans record
RetailTransactionPaymentTrans details: see RetailTransactionPaymentLineEntity, RetailTransactionPaymentTransBIEntity, RetailTransactionAuditablePaymentLineEntity
LoyaltyCardId→RetailLoyaltyCard.CardNumber(key of RetailLoyaltyCard)Many RetailTransactionPaymentTrans records → exactly one RetailLoyaltyCard record
RetailLoyaltyCard details: see RetailLoyaltyCardEntity, RetailLoyaltyCardRewardPointAdjustmentEntity, RetailLoyaltyCardTierEntity
RetailChannelTableOMOperatingUnitID→OMOperatingUnit.RecId(key of OMOperatingUnit)Zero or one RetailChannelTable record → exactly one OMOperatingUnit record
OMOperatingUnit details: see ACOCostCenterTypeEntity, OMOperatingUnitEntity, AssetPackingSlipEntity
Store→RetailStoreTable.StoreNumber(key of RetailStoreTable)Many RetailTransactionPaymentTrans records → exactly one RetailStoreTable record
RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity
TenderType→RetailTenderTypeTable.tenderTypeId(key of RetailTenderTypeTable)Many RetailTransactionPaymentTrans records → exactly one RetailTenderTypeTable record
RetailTenderTypeTable details: see RetailTenderTypeEntity, RetailTenderDiscountEntity
Terminal→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailTransactionPaymentTrans records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
TransactionNumber→RetailTransactionTable.transactionId(key of RetailTransactionTable)Join on all of:
TransactionNumber=RetailTransactionTable.transactionId,Channel=RetailTransactionTable.Channel,Store=RetailTransactionTable.store,Terminal=RetailTransactionTable.terminalMany RetailTransactionPaymentTrans records → zero or one RetailTransactionTable record
RetailTransactionTable details: see RetailTransactionEntity, RetailTransactionTableBIEntity, RetailTransactionTableCDREntity
Need help with RetailTransactionPaymentLineV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.