Table

RetailFiscalDocumentPaymentTrans_BR

Retail Fiscal Document Payment Transactions

Holds the payments made for a retail fiscal document in Brazil. Each row is one payment line, linked to the document and to a payment method. It stores payment type, card details and amount.

Table name
RetailFiscalDocumentPaymentTrans_BR
Module
Fiscal books brazil
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
Idx
Replacement key
Idx
Key fields
Channel, store, terminal, transactionId, FiscalDocumentSeries, FiscalDocumentNumber, lineNum
Model
Foundation

Fields (23)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ChannelRetail channel of the document, by system record ID.Int64
RefRecId
YesRetailChannelTable.RecIdNone
storeNumber of the store of the transaction.String
RetailStoreId
YesRetailFiscalDocument_BR.storeNone
terminalNumber of the register used for the transaction.String
RetailTerminalId
YesRetailFiscalDocument_BR.terminalNone
transactionIdNumber of the retail transaction the document comes from.String (44)
RetailTransactionId
YesRetailFiscalDocument_BR.transactionIdNone
FiscalDocumentSeriesSeries of the retail fiscal document the payment belongs to.String (9)
FiscalDocumentSeries_BR
YesRetailFiscalDocument_BR.FiscalDocumentSeriesNone
FiscalDocumentNumberNumber of the retail fiscal document the payment belongs to.String (20)
FiscalDocumentNumber_BR
YesRetailFiscalDocument_BR.FiscalDocumentNumberNone
lineNumNumber of the payment line.Real
LineNum
NoNone
AmountTotal amount of the payment, in accounting currency.Real
AmountMST
NoNone
CardAuthorizationNumberAuthorization number of the card payment.String (20)
CardAuthorizationNumber_BR
NoNone
Enum
CardLogo (enum)
NoNone
CardProcessorCNPJCPFCNPJ of the card processor.String (20)
CNPJCPFNum_BR
NoNone
CardProcessorCodeCode of the card processor.String (3)
CardProcessorCode_BR
NoNone
CardTypeCard type as free text. No label is given.low confidenceStringNoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentSystemCard payment system, such as Visa, Elo or Hipercard.Enum
CardType_BR (enum)
NoNone
PaymentTypeType of payment, such as cash, check, credit card or gift card.Enum
PaymentType_BR (enum)
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
NoNone
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 when the record is replicated from its origin.Integer
RetailReplicationCounter
NoNone
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
TenderTypeIdPayment method used, pointing to the payment methods table.String
RetailTenderTypeId
NoRetailTenderTypeTable.tenderTypeIdNone

Indexes (1)

Relations (3)

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

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailFiscalDocumentPaymentTrans_BR records → exactly one RetailChannelTable record

  • RetailFiscalDocument_BR → RetailFiscalDocument_BR

    Join on Channel = RetailFiscalDocument_BR.Channel, store = RetailFiscalDocument_BR.store, terminal = RetailFiscalDocument_BR.terminal, transactionId = RetailFiscalDocument_BR.transactionId, FiscalDocumentSeries = RetailFiscalDocument_BR.FiscalDocumentSeries, FiscalDocumentNumber = RetailFiscalDocument_BR.FiscalDocumentNumber

    Many RetailFiscalDocumentPaymentTrans_BR records → exactly one RetailFiscalDocument_BR record

  • RetailTenderTypeTable → RetailTenderTypeTable

    Join on TenderTypeId = RetailTenderTypeTable.tenderTypeId

    Many RetailFiscalDocumentPaymentTrans_BR records → zero or one RetailTenderTypeTable record

Get this data out

No public entity reads from RetailFiscalDocumentPaymentTrans_BR. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk