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 · root
  • RetailChannelTable · OuterJoin to RetailTransactionPaymentTrans · read-only
  • OMOperatingUnit · OuterJoin to RetailChannelTable · read-only
  • RetailDirectSalesChannel · Derived to RetailChannelTable
  • RetailOnlineChannelTable · Derived to RetailChannelTable
  • RetailMCRChannelTable · Derived to RetailChannelTable
  • RetailStoreTable · Derived to RetailChannelTable
  • RetailTransactionPaymentTransExt · OuterJoin to RetailTransactionPaymentTrans
  • RetailStoreTenderTypeTable · OuterJoin to RetailTransactionPaymentTrans

Fields (39)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
AccountNumberAccount number linked to the payment line. The metadata gives no further detail.low confidenceString (30)NoYescomputed
AmountInAccountingCurrencyPayment amount in the accounting currency.Real
AmountMST
NoYesRetailTransactionPaymentTrans.amountMST
AmountInTenderedCurrencyPayment amount in the transaction currency.Real
AmountCur
NoYesRetailTransactionPaymentTrans.amountCur
AmountTenderedAmount handed over by the customer for this payment.Real
RetailAmountTendered
NoYesRetailTransactionPaymentTrans.amountTendered
AmountTenderedAdjustmentTendered amount for the payment line. The label does not explain the adjustment.low confidenceReal
RetailAmountTendered
NoYesRetailTransactionPaymentTransExt.AmountTenderedAdjustment
CardNumberCard number linked to the payment line. The metadata gives no further detail.low confidenceString (30)NoYescomputed
CardOrAccountCard number or account used for the payment.String (30)
RetailCardOrAccount
NoNo (private)RetailTransactionPaymentTrans.cardOrAccount
CardTypeIdType of card used. Points to the card type record.String
RetailCardTypeId
NoYesRetailTenderTypeCardTable.cardTypeIdRetailTransactionPaymentTrans.cardTypeId
ChannelThe retail channel of the transaction. Points to the channel record.Int64
RefRecId
NoNo (private)RetailChannelTable.RecIdRetailTransactionPaymentTrans.Channel
CreditVoucherIdCredit memo used for the payment. Points to the credit memo record.String (30)
RetailCreditVoucherId
NoYesRetailCreditVoucherTable.entryIdRetailTransactionPaymentTrans.creditVoucherId
CurrencyCodeCurrency code of the payment. Points to the currency record.String (3)
CurrencyCode
NoYesCurrency.CurrencyCodeRetailTransactionPaymentTrans.currency
ExchangeRateInAccountingCurrencyExchange rate to the accounting currency.Real
ExchRate
NoYesRetailTransactionPaymentTrans.exchRateMST
ExchangeRateInTenderedCurrencyExchange rate applied to the payment.Real
ExchRate
NoYesRetailTransactionPaymentTrans.exchRate
FunctionType of behaviour of the payment method, such as normal, card, cheque, customer or wallet.Enum
RetailTenderTypeFunction
RetailTenderFunction
  • Normal 0
  • Card 1
  • Check 2
  • Customer 3
  • TenderRemoveFloat 4
  • Wallet 5
NoYesRetailStoreTenderTypeTable.function
GiftCardIdGift card used for the payment. Points to the gift card record.String (30)
RetailGiftCardId
NoYesRetailGiftCardTable.entryIdRetailTransactionPaymentTrans.giftCardId
IsChangeLineYes/No flag showing whether the line is a change line.Enum
RetailChangeLine
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionPaymentTrans.changeLine
IsLinkedRefundYes/No flag showing whether the line is a refund linked to an earlier payment.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionPaymentTrans.IsLinkedRefund
IsPrepaymentYes/No flag showing whether the payment is a prepayment.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionPaymentTrans.isPrepayment
LineNumberLine number within the transaction.Real
LineNum
NoYesRetailTransactionPaymentTrans.lineNum
LinkedPaymentLineNumberLine number of the earlier payment that this refund is linked to.Real
LineNum
NoYesRetailTransactionPaymentTrans.lineNumRetailTransactionPaymentTrans.LinkedPaymentLineNumber
LinkedPaymentStoreStore of the earlier payment that this refund is linked to.String
RetailStoreId
NoYesRetailTransactionPaymentTrans.LinkedPaymentStore
LinkedPaymentTerminalRegister of the earlier payment that this refund is linked to.String
RetailTerminalId
NoYesRetailTransactionPaymentTrans.LinkedPaymentTerminalId
LinkedPaymentTransactionNumberTransaction number of the earlier payment that this refund is linked to.String (44)
RetailTransactionId
NoYesRetailTransactionPaymentTrans.LinkedPaymentTransactionId
LinkedPaymentCurrencyCurrency of the earlier payment that this refund is linked to.String (3)
CurrencyCode
NoYesRetailTransactionPaymentTrans.LinkedPaymentCurrency
LoyaltyCardIdLoyalty card number linked to the payment. Points to the loyalty card record.String (30)
RetailLoyaltyCardNumber
NoYesRetailLoyaltyCard.CardNumberRetailTransactionPaymentTrans.loyaltyCardId
ReceiptIdReceipt number printed for the transaction.String (18)
RetailReceiptId
NoYesRetailTransactionPaymentTrans.receiptId
RefundableAmountAmount that can still be refunded on the linked payment, in the transaction currency.Real
AmountCur
NoYesRetailTransactionPaymentTrans.RefundableAmount
RetailChannelTableOMOperatingUnitIDOperating unit that the channel is based on. It is the key of the record.Int64
RefRecId
NoNo (private)OMOperatingUnit.RecIdRetailChannelTable.OMOperatingUnitID
OperatingUnitNumberThe number that identifies the operating unit.String (30)
OMOperatingUnitNumber
YesYesOMOperatingUnit.OMOperatingUnitNumber
PaymentCaptureTokenLong text token for capturing the linked payment.String (-1)
RetailPaymentCaptureToken
NoYesRetailTransactionPaymentTrans.PaymentCaptureToken
QuantityQuantity on the payment line.Real
Qty
NoYesRetailTransactionPaymentTrans.qty
StaffID of the operator who handled the payment.String (25)
RetailStaffId
NoYesRetailTransactionPaymentTrans.staff
StoreStore where the payment was taken.String
RetailStoreId
NoYesRetailStoreTable.StoreNumberRetailTransactionPaymentTrans.store
TenderTypePayment method used, such as cash or card.String
RetailTenderTypeId
NoYesRetailTenderTypeTable.tenderTypeIdRetailTransactionPaymentTrans.tenderType
TerminalRegister (POS terminal) where the payment was taken.String
RetailTerminalId
NoYesRetailTerminalTable.terminalIdRetailTransactionPaymentTrans.terminal
TransactionNumberNumber of the retail transaction the payment belongs to.String (44)
RetailTransactionId
NoYesRetailTransactionTable.transactionIdRetailTransactionPaymentTrans.transactionId
TransactionStatusStatus of the entry, such as 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
NoYesRetailTransactionPaymentTrans.transactionStatus
VoidStatusVoid state of the payment: none, payment voided, force voided or force void reconciled.Enum
RetailTenderVoidStatus
  • None 0
  • NormalVoid 1
  • ForceVoided 2
  • ForceVoidReconciled 3
NoYesRetailTransactionPaymentTrans.VoidStatus
IsPaymentCapturedYes/No flag showing whether the payment has been captured.Enum
RetailPaymentStatus
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionPaymentTrans.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.

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

Email sales@drdynamics.co.uk