Table

RetailTransactionPaymentTrans_BR

Fiscal document (model 2) payment transactions

Holds payment lines for fiscal documents (model 2), used for Brazil. Each line is keyed by store, register, transaction number and line number. It links to the fiscal receipt of the transaction and to the payment method.

Table name
RetailTransactionPaymentTrans_BR
Module
Commerce transactions and orders
Table group
TransactionLine
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
LineNumIdx
Replacement key
LineNumIdx
Key fields
StoreId, TerminalId, TransactionId, lineNum
Model
Foundation

Fields (18)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
StoreIdStore where the transaction took place.String
RetailStoreId
YesRetailStoreTable.StoreNumberRetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity
TerminalIdRegister (POS terminal) where the transaction took place.String
RetailTerminalId
YesRetailTerminalTable.terminalIdRetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity
TransactionIdNumber of the transaction. Links to the fiscal receipt.String (44)
RetailTransactionId
YesRetailFiscalReceipt_BR.TransactionIdRetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity
lineNumLine number within the transaction.Real
LineNum
NoRetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity
amountCurPayment amount in the transaction currency.Real
AmountCur
NoRetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity
amountTenderedAmount paid by the customer.Real
RetailAmountTendered
NoRetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoRetailTransactionPaymentTrans_BRBIEntity
OriginNumber of the location the record came from.String (50)
RetailConnDistributionLocationId
NoRetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoRetailTransactionPaymentTrans_BRBIEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
ReplicationCounterFromOriginCounter used to track replication of the record from its origin location.Integer
RetailReplicationCounter
NoRetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity
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
tenderTypePayment method used.String
RetailTenderTypeId
NoRetailTenderTypeTable.tenderTypeIdRetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity
transactionStatusStatus of the entry, such as voided, posted, concluded or on hold.Enum
RetailTransEntryStatus
RetailEntryStatus (enum)
NoRetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity
transDateDate of the payment.Date
TransDate
NoRetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity
transTimeTime of the payment.Time
RetailTransTime
NoRetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity

Indexes (2)

Relations (5)

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

  • RetailFiscalReceipt → RetailFiscalReceipt_BR

    Join on StoreId = RetailFiscalReceipt_BR.StoreId, TerminalId = RetailFiscalReceipt_BR.TerminalId, TransactionId = RetailFiscalReceipt_BR.TransactionId

    One or more RetailTransactionPaymentTrans_BR records → exactly one RetailFiscalReceipt_BR record

  • RetailStoreTable → RetailStoreTable

    Join on StoreId = RetailStoreTable.StoreNumber

    Many RetailTransactionPaymentTrans_BR records → exactly one RetailStoreTable record

  • RetailTenderTypeTable → RetailTenderTypeTable

    Join on tenderType = RetailTenderTypeTable.tenderTypeId

    Many RetailTransactionPaymentTrans_BR records → zero or one RetailTenderTypeTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on TerminalId = RetailTerminalTable.terminalId

    Many RetailTransactionPaymentTrans_BR records → exactly one RetailTerminalTable record

  • RetailTransactionTable → RetailTransactionTable

    Join on TransactionId = RetailTransactionTable.transactionId

    Many RetailTransactionPaymentTrans_BR records → exactly one RetailTransactionTable record

Get this data out

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

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

Email sales@drdynamics.co.uk