Table

RetailFiscalReceipt_BR

Fiscal receipts

Holds fiscal receipts from retail sales, used for Brazil. Each record is one receipt per store, register and transaction. It stores the customer tax number, status, discount and surcharge totals, and the printer and Z report details.

Table name
RetailFiscalReceipt_BR
Module
Commerce stores
Table group
TransactionHeader
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
TransactionIdIdx
Replacement key
TransactionIdIdx
Key fields
StoreId, TerminalId, TransactionId
Model
Foundation

Fields (33)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
StoreIdStore where the receipt was made. It points to a store.String
RetailStoreId
YesRetailStoreTable.StoreNumberRetailFiscalReceipt_BREntity
TerminalIdRegister where the receipt was made. It points to a register.String
RetailTerminalId
YesRetailTerminalTable.terminalIdRetailFiscalReceipt_BREntity
TransactionIdNumber of the related retail transaction.String (44)
RetailTransactionId
YesRetailFiscalReceipt_BREntity
AccountingDateAccounting date of the receipt.Date
TransDate
NoRetailFiscalReceipt_BREntity
AdditionalFiscalMemoryIndexIndex of the additional fiscal memory. It relates to a Z report.Integer
RetailFiscalMemoryIndex_BR
NoRetailFiscalReceipt_BREntity
ConsumerCNPJCPFNumberCNPJ or CPF tax number of the customer.String (20)
CNPJCPFNum_BR
NoRetailFiscalReceipt_BREntity
ConsumerNameName of the customer.String (160)
DirPartyName
NoRetailFiscalReceipt_BREntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FiscalEstablishmentID of the fiscal establishment.String
FiscalEstablishmentId_BR
NoRetailFiscalReceipt_BREntity
FiscalPrinterSerialNumberSerial number of the fiscal printer. It relates to a Z report.String (20)
RetailFiscalPrinterSerialNumber_BR
YesRetailFiscalReceipt_BREntity
FiscalReceiptDateTimeDate and time of the fiscal receipt.UtcDateTime
TransDateTime
NoRetailFiscalReceipt_BREntity
FiscalReceiptModelModel code of the fiscal document.String (3)
FiscalDocumentModel_BR
NoRetailFiscalReceipt_BREntity
FiscalReceiptNumberNumber of the fiscal receipt.Integer
RetailDocumentNumber_BR
YesRetailFiscalReceipt_BREntity
IsStatementPostedYes/no flag showing whether the statement is posted.Enum
NoYesId
NoYes (enum)
NoRetailFiscalReceipt_BREntity
OriginNumber of the location the record came from.String (50)
RetailConnDistributionLocationId
NoRetailFiscalReceipt_BREntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PrintedTotalDiscountAmountTotal discount amount as printed on the receipt.Real
DiscAmount
NoRetailFiscalReceipt_BREntity
PrintedTotalSurchargeAmountTotal surcharge amount as printed on the receipt.Real
RetailSurchargeAmount_BR
NoRetailFiscalReceipt_BREntity
QuantityDecimalsNumber of decimal places used for quantities.Integer
NoOfDecimals
NoRetailFiscalReceipt_BREntity
ReceiptNumberNumber of the receipt.Integer
RetailDocumentNumber_BR
NoRetailFiscalReceipt_BREntity
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
NoRetailFiscalReceipt_BREntity
StatusStatus of the fiscal document, such as approved, canceled or rejected.Enum
FiscalDocumentStatus_BR (enum)
NoRetailFiscalReceipt_BREntity
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
TotalAmountNet amount of the receipt. The currency is not stated in the metadata.Real
AmountCur
NoRetailFiscalReceipt_BREntity
TotalDiscountAmountTotal discount amount on the receipt.Real
DiscAmount
NoRetailFiscalReceipt_BREntity
TotalSurchargeAmountTotal surcharge amount on the receipt.Real
RetailSurchargeAmount_BR
NoRetailFiscalReceipt_BREntity
UnitDecimalsNumber of decimal places used for units.Integer
NoOfDecimals
NoRetailFiscalReceipt_BREntity
VoidedAfterEndReceiptValue for voids made after the receipt ended.low confidenceInteger
RetailVoidedAfterEndReceipt_BR
NoRetailFiscalReceipt_BREntity
VoucherVoucher number linked to the receipt.String (20)
Voucher
NoRetailFiscalReceipt_BREntity
ZReportNumberNumber of the Z report that includes the receipt. It relates to a Z report.Integer
RetailDocumentNumber_BR
YesRetailFiscalReceipt_BREntity

Indexes (4)

Relations (4)

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

  • RetailStoreTable → RetailStoreTable

    Join on StoreId = RetailStoreTable.StoreNumber

    Many RetailFiscalReceipt_BR records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on TerminalId = RetailTerminalTable.terminalId

    Many RetailFiscalReceipt_BR records → exactly one RetailTerminalTable record

  • RetailTransactionTable → RetailTransactionTable

    Join on TerminalId = RetailTransactionTable.terminal, StoreId = RetailTransactionTable.store, TransactionId = RetailTransactionTable.transactionId

    Zero or one RetailFiscalReceipt_BR record → zero or one RetailTransactionTable record

  • RetailZReport → RetailZReport_BR

    Join on AdditionalFiscalMemoryIndex = RetailZReport_BR.AdditionalFiscalMemoryIndex, FiscalPrinterSerialNumber = RetailZReport_BR.FiscalPrinterSerialNumber, ZReportNumber = RetailZReport_BR.ZReportNumber

    Many RetailFiscalReceipt_BR records → exactly one RetailZReport_BR record

Get this data out

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

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

Email sales@drdynamics.co.uk