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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
StoreIdStore where the transaction took place. | StringRetailStoreId | Yes | RetailStoreTable.StoreNumber | RetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity |
TerminalIdRegister (POS terminal) where the transaction took place. | StringRetailTerminalId | Yes | RetailTerminalTable.terminalId | RetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity |
TransactionIdNumber of the transaction. Links to the fiscal receipt. | String (44)RetailTransactionId | Yes | RetailFiscalReceipt_BR.TransactionId | RetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity |
lineNumLine number within the transaction. | RealLineNum | No | RetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity | |
amountCurPayment amount in the transaction currency. | RealAmountCur | No | RetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity | |
amountTenderedAmount paid by the customer. | RealRetailAmountTendered | No | RetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | RetailTransactionPaymentTrans_BRBIEntity | |
OriginNumber of the location the record came from. | String (50)RetailConnDistributionLocationId | No | RetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | RetailTransactionPaymentTrans_BRBIEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
ReplicationCounterFromOriginCounter used to track replication of the record from its origin location. | IntegerRetailReplicationCounter | No | RetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
tenderTypePayment method used. | StringRetailTenderTypeId | No | RetailTenderTypeTable.tenderTypeId | RetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity |
transactionStatusStatus of the entry, such as voided, posted, concluded or on hold. | EnumRetailTransEntryStatusRetailEntryStatus (enum) | No | RetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity | |
transDateDate of the payment. | DateTransDate | No | RetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity | |
transTimeTime of the payment. | TimeRetailTransTime | No | RetailTransactionPaymentTrans_BREntityRetailTransactionPaymentTrans_BRBIEntity |
Indexes (2)
LineNumIdxPrimary indexReplacement keyStoreId,TerminalId,TransactionId,lineNumUnique, alternate key.
LocationIdxOrigin,ReplicationCounterFromOriginNot unique.
Relations (5)
Each relation joins RetailTransactionPaymentTrans_BR to another table on the fields shown.
RetailFiscalReceipt→RetailFiscalReceipt_BRJoin on
StoreId = RetailFiscalReceipt_BR.StoreId,TerminalId = RetailFiscalReceipt_BR.TerminalId,TransactionId = RetailFiscalReceipt_BR.TransactionIdOne or more RetailTransactionPaymentTrans_BR records → exactly one RetailFiscalReceipt_BR record
RetailStoreTable→RetailStoreTableJoin on
StoreId = RetailStoreTable.StoreNumberMany RetailTransactionPaymentTrans_BR records → exactly one RetailStoreTable record
RetailTenderTypeTable→RetailTenderTypeTableJoin on
tenderType = RetailTenderTypeTable.tenderTypeIdMany RetailTransactionPaymentTrans_BR records → zero or one RetailTenderTypeTable record
RetailTerminalTable→RetailTerminalTableJoin on
TerminalId = RetailTerminalTable.terminalIdMany RetailTransactionPaymentTrans_BR records → exactly one RetailTerminalTable record
RetailTransactionTable→RetailTransactionTableJoin on
TransactionId = RetailTransactionTable.transactionIdMany 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.
RetailTransactionPaymentTrans_BREntity· 12 fields from this tableRetailTransactionPaymentTrans_BRBIEntity· 14 fields from this table
Need help with RetailTransactionPaymentTrans_BR in a report, an integration or a migration? Talk to Dr Dynamics.