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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
FiscalPrinterSerialNumberSerial number of the fiscal printer that issued the report. | String (20)RetailFiscalPrinterSerialNumber_BR | Yes | RetailZReport_BREntity | |
RestartOperationNumberCounter of restart operations on the fiscal printer. | IntegerRetailDocumentNumber_BR | Yes | RetailZReport_BREntity | |
AdditionalFiscalMemoryIndexIndex of the additional fiscal memory of the fiscal printer. | IntegerRetailFiscalMemoryIndex_BR | No | RetailZReport_BREntity | |
StoreIdNumber of the store the report belongs to. | StringRetailStoreId | Yes | RetailStoreTable.StoreNumber | RetailZReport_BREntity |
TerminalIdNumber of the POS register the report belongs to. | StringRetailTerminalId | Yes | RetailTerminalTable.terminalId | RetailZReport_BREntity |
ZReportNumberNumber of the Z report. | IntegerRetailDocumentNumber_BR | Yes | RetailZReport_BREntity | |
AccountingDateAccounting date of the Z report. | DateTransDate | No | RetailZReport_BREntity | |
COFINSAmountAmount of COFINS tax in the report. The currency is not stated in the metadata. | RealTaxAmount | No | RetailZReport_BREntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FinalGrandTotalAmountGrand total at the end of the report period, in accounting currency. | RealAmountMST | No | RetailZReport_BREntity | |
FirstReceiptNumberNumber of the first fiscal document covered by the report. | IntegerRetailDocumentNumber_BR | No | RetailZReport_BREntity | |
FiscalEstablishmentFiscal establishment the report belongs to. Points to the fiscal establishment record. | StringFiscalEstablishmentId_BR | No | FiscalEstablishment_BR.FiscalEstablishmentId | RetailZReport_BREntity |
FiscalReceiptModelModel code of the fiscal document. | String (3)FiscalDocumentModel_BR | No | RetailZReport_BREntity | |
GrossDailySaleGross sales amount for the day, in accounting currency. | RealAmountMST | No | RetailZReport_BREntity | |
InitialGrandTotalAmountGrand total at the start of the report period, in accounting currency. | RealAmountMST | No | RetailZReport_BREntity | |
ISSDiscountYes or no flag related to ISS. The meaning is not stated in the metadata.low confidence | EnumNoYesIdNoYes (enum) | No | RetailZReport_BREntity | |
IsStatementPostedYes or no flag showing whether a statement has been posted for the report. | EnumNoYesIdNoYes (enum) | No | RetailZReport_BREntity | |
LastReceiptNumberNumber of the last fiscal document covered by the report. | IntegerRetailDocumentNumber_BR | No | RetailZReport_BREntity | |
NetAmountNet amount of the report, in accounting currency. | RealAmountMST | No | RetailZReport_BREntity | |
OriginNumber of the location where the record originated. | String (50)RetailConnDistributionLocationId | No | RetailZReport_BREntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PISAmountAmount of PIS tax in the report. The currency is not stated in the metadata. | RealTaxAmount | No | RetailZReport_BREntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
ReplicationCounterFromOriginCounter value used to track replication of the row from its origin. | IntegerRetailReplicationCounter | No | RetailZReport_BREntity | |
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 | |
TerminalNumberNumber of the fiscal printer. | IntegerRetailTerminalNumber_BR | No | RetailZReport_BREntity | |
TransactionIdNumber of the retail transaction linked to the report. | String (44)RetailTransactionId | No | RetailZReport_BREntity | |
VersionVersion of the Z report: unknown, version 1 or version 2. | EnumRetailZReportVersion_BR (enum) | No | RetailZReport_BREntity | |
VoucherVoucher number linked to the report. | String (20)Voucher | No | RetailZReport_BREntity | |
ZReportDateTimeDate and time when the Z report was issued. | UtcDateTimeTransDateTime | No | RetailZReport_BREntity |
Indexes (2)
ZReportNumberIdxPrimary indexReplacement keyFiscalPrinterSerialNumber,RestartOperationNumber,AdditionalFiscalMemoryIndex,StoreId,TerminalId,ZReportNumberUnique, alternate key.
LocationIdxOrigin,ReplicationCounterFromOriginNot unique.
Relations (4)
Each relation joins RetailZReport_BR to another table on the fields shown.
FiscalEstablishment→FiscalEstablishment_BRJoin on
FiscalEstablishment = FiscalEstablishment_BR.FiscalEstablishmentIdMany RetailZReport_BR records → exactly one FiscalEstablishment_BR record
RetailFiscalPrinter→RetailFiscalPrinter_BRJoin on
FiscalPrinterSerialNumber = RetailFiscalPrinter_BR.SerialNumber,AdditionalFiscalMemoryIndex = RetailFiscalPrinter_BR.AdditionalFiscalMemoryIndexMany RetailZReport_BR records → exactly one RetailFiscalPrinter_BR record
RetailStoreTable→RetailStoreTableJoin on
StoreId = RetailStoreTable.StoreNumberMany RetailZReport_BR records → exactly one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
TerminalId = RetailTerminalTable.terminalIdMany 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.
RetailZReport_BREntity· 26 fields from this table
Need help with RetailZReport_BR in a report, an integration or a migration? Talk to Dr Dynamics.