Table

RetailZReport_BR

Z reports

Holds Z reports from fiscal printers, used for Brazil. A Z report is a daily summary from a fiscal printer. Each row records the printer, store and register, report number, document number range, totals and tax amounts such as PIS and COFINS. The key combines printer serial number, restart operation number, fiscal memory index, store, register and Z report number.

Table name
RetailZReport_BR
Module
Commerce
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
ZReportNumberIdx
Replacement key
ZReportNumberIdx
Key fields
FiscalPrinterSerialNumber, RestartOperationNumber, AdditionalFiscalMemoryIndex, StoreId, TerminalId, ZReportNumber
Model
Foundation

Fields (32)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
FiscalPrinterSerialNumberSerial number of the fiscal printer that issued the report.String (20)
RetailFiscalPrinterSerialNumber_BR
YesRetailZReport_BREntity
RestartOperationNumberCounter of restart operations on the fiscal printer.Integer
RetailDocumentNumber_BR
YesRetailZReport_BREntity
AdditionalFiscalMemoryIndexIndex of the additional fiscal memory of the fiscal printer.Integer
RetailFiscalMemoryIndex_BR
NoRetailZReport_BREntity
StoreIdNumber of the store the report belongs to.String
RetailStoreId
YesRetailStoreTable.StoreNumberRetailZReport_BREntity
TerminalIdNumber of the POS register the report belongs to.String
RetailTerminalId
YesRetailTerminalTable.terminalIdRetailZReport_BREntity
ZReportNumberNumber of the Z report.Integer
RetailDocumentNumber_BR
YesRetailZReport_BREntity
AccountingDateAccounting date of the Z report.Date
TransDate
NoRetailZReport_BREntity
COFINSAmountAmount of COFINS tax in the report. The currency is not stated in the metadata.Real
TaxAmount
NoRetailZReport_BREntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FinalGrandTotalAmountGrand total at the end of the report period, in accounting currency.Real
AmountMST
NoRetailZReport_BREntity
FirstReceiptNumberNumber of the first fiscal document covered by the report.Integer
RetailDocumentNumber_BR
NoRetailZReport_BREntity
FiscalEstablishmentFiscal establishment the report belongs to. Points to the fiscal establishment record.String
FiscalEstablishmentId_BR
NoFiscalEstablishment_BR.FiscalEstablishmentIdRetailZReport_BREntity
FiscalReceiptModelModel code of the fiscal document.String (3)
FiscalDocumentModel_BR
NoRetailZReport_BREntity
GrossDailySaleGross sales amount for the day, in accounting currency.Real
AmountMST
NoRetailZReport_BREntity
InitialGrandTotalAmountGrand total at the start of the report period, in accounting currency.Real
AmountMST
NoRetailZReport_BREntity
ISSDiscountYes or no flag related to ISS. The meaning is not stated in the metadata.low confidenceEnum
NoYesId
NoYes (enum)
NoRetailZReport_BREntity
IsStatementPostedYes or no flag showing whether a statement has been posted for the report.Enum
NoYesId
NoYes (enum)
NoRetailZReport_BREntity
LastReceiptNumberNumber of the last fiscal document covered by the report.Integer
RetailDocumentNumber_BR
NoRetailZReport_BREntity
NetAmountNet amount of the report, in accounting currency.Real
AmountMST
NoRetailZReport_BREntity
OriginNumber of the location where the record originated.String (50)
RetailConnDistributionLocationId
NoRetailZReport_BREntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PISAmountAmount of PIS tax in the report. The currency is not stated in the metadata.Real
TaxAmount
NoRetailZReport_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 value used to track replication of the row from its origin.Integer
RetailReplicationCounter
NoRetailZReport_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
TerminalNumberNumber of the fiscal printer.Integer
RetailTerminalNumber_BR
NoRetailZReport_BREntity
TransactionIdNumber of the retail transaction linked to the report.String (44)
RetailTransactionId
NoRetailZReport_BREntity
VersionVersion of the Z report: unknown, version 1 or version 2.Enum
RetailZReportVersion_BR (enum)
NoRetailZReport_BREntity
VoucherVoucher number linked to the report.String (20)
Voucher
NoRetailZReport_BREntity
ZReportDateTimeDate and time when the Z report was issued.UtcDateTime
TransDateTime
NoRetailZReport_BREntity

Indexes (2)

Relations (4)

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

  • FiscalEstablishment → FiscalEstablishment_BR

    Join on FiscalEstablishment = FiscalEstablishment_BR.FiscalEstablishmentId

    Many RetailZReport_BR records → exactly one FiscalEstablishment_BR record

  • RetailFiscalPrinter → RetailFiscalPrinter_BR

    Join on FiscalPrinterSerialNumber = RetailFiscalPrinter_BR.SerialNumber, AdditionalFiscalMemoryIndex = RetailFiscalPrinter_BR.AdditionalFiscalMemoryIndex

    Many RetailZReport_BR records → exactly one RetailFiscalPrinter_BR record

  • RetailStoreTable → RetailStoreTable

    Join on StoreId = RetailStoreTable.StoreNumber

    Many RetailZReport_BR records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on TerminalId = RetailTerminalTable.terminalId

    Many RetailZReport_BR records → exactly one RetailTerminalTable record

Get this data out

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

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

Email sales@drdynamics.co.uk