Table

RetailZReportTotalizerTaxTrans_BR

Z report totalizer tax transactions

Holds tax detail lines for the totalizers of a Z report, used for Brazil. Each row combines a totalizer with tax type, tax code, taxation code and origin, CFOP and fiscal value. It also holds the base, exempt and other base amounts. It links to the Z report totalizer and to the sales tax code.

Table name
RetailZReportTotalizerTaxTrans_BR
Module
Commerce
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
ZReportTotalizerTaxTransIdx
Replacement key
ZReportTotalizerTaxTransIdx
Key fields
FiscalPrinterSerialNumber, ZReportNumber, AdditionalFiscalMemoryIndex, TotalizerName, FiscalValue, TaxationCode, TaxationOrigin, TaxType, TaxCode, TaxValue, CFOP
Model
Foundation

Fields (25)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
FiscalPrinterSerialNumberSerial number of the fiscal printer. It links the row to the Z report totalizer.String (20)
RetailFiscalPrinterSerialNumber_BR
YesRetailZReportTotalizer_BR.FiscalPrinterSerialNumberRetailZReportTotalizerTaxTrans_BREntity
ZReportNumberNumber of the Z report the line belongs to.Integer
RetailDocumentNumber_BR
YesRetailZReportTotalizer_BR.ZReportNumberRetailZReportTotalizerTaxTrans_BREntity
AdditionalFiscalMemoryIndexIndex of the additional fiscal memory of the printer. It links the row to the Z report totalizer.Integer
RetailFiscalMemoryIndex_BR
NoRetailZReportTotalizer_BR.AdditionalFiscalMemoryIndexRetailZReportTotalizerTaxTrans_BREntity
TotalizerNameName of the totalizer the line belongs to.String
RetailTotalizerName_BR
YesRetailZReportTotalizer_BR.TotalizerNameRetailZReportTotalizerTaxTrans_BREntity
FiscalValueFiscal value category, such as with credit or debit, or without credit or debit.Enum
TaxFiscalValue_BR (enum)
YesRetailZReportTotalizerTaxTrans_BREntity
TaxationCodeTaxation code of the line.String (3)
TaxationCode_BR
YesRetailZReportTotalizerTaxTrans_BREntity
TaxationOriginOrigin of the goods for taxation, such as national or imported.Enum
FITaxationOrigin_BR (enum)
NoRetailZReportTotalizerTaxTrans_BREntity
TaxTypeType of Brazilian tax, such as ICMS, IPI, PIS, COFINS or ISS.Enum
TaxType_BR (enum)
YesRetailZReportTotalizerTaxTrans_BREntity
TaxCodeSales tax code of the line. Points to the sales tax code record.String
TaxCode
YesTaxTable.TaxCodeRetailZReportTotalizerTaxTrans_BREntity
TaxValueTax value of the line.Real
TaxValue
NoRetailZReportTotalizerTaxTrans_BREntity
CFOPCFOP code, a Brazilian fiscal operation code.String (5)
SalesPurchCFOPId_BR
YesRetailZReportTotalizerTaxTrans_BREntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
OriginNumber of the location where the record originated.String (50)
RetailConnDistributionLocationId
NoRetailZReportTotalizerTaxTrans_BREntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
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 value used to track replication of the row from its origin.Integer
RetailReplicationCounter
NoRetailZReportTotalizerTaxTrans_BREntity
StoreIdNumber of the store the report belongs to.String
RetailStoreId
YesRetailStoreTable.StoreNumberRetailZReportTotalizerTaxTrans_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
TaxAmountTaxable amount of the line. The currency is not stated in the metadata.Real
TaxAmount
NoRetailZReportTotalizerTaxTrans_BREntity
TaxBaseAmountTax base amount of the line. The currency is not stated in the metadata.Real
TaxBaseCur
NoRetailZReportTotalizerTaxTrans_BREntity
TaxBaseAmountExemptExempt part of the base amount. The currency is not stated in the metadata.Real
TaxBaseCur
NoRetailZReportTotalizerTaxTrans_BREntity
TaxBaseAmountOtherOther part of the base amount. The currency is not stated in the metadata.Real
TaxBaseCur
NoRetailZReportTotalizerTaxTrans_BREntity
TerminalIdNumber of the POS register the report belongs to.String
RetailTerminalId
YesRetailTerminalTable.terminalIdRetailZReportTotalizerTaxTrans_BREntity

Indexes (2)

Relations (4)

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

  • RetailStoreTable → RetailStoreTable

    Join on StoreId = RetailStoreTable.StoreNumber

    One or more RetailZReportTotalizerTaxTrans_BR records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on TerminalId = RetailTerminalTable.terminalId

    One or more RetailZReportTotalizerTaxTrans_BR records → exactly one RetailTerminalTable record

  • RetailZReportTotalizer_BR → RetailZReportTotalizer_BR

    Join on TerminalId = RetailZReportTotalizer_BR.TerminalId, StoreId = RetailZReportTotalizer_BR.StoreId, TotalizerName = RetailZReportTotalizer_BR.TotalizerName, ZReportNumber = RetailZReportTotalizer_BR.ZReportNumber, AdditionalFiscalMemoryIndex = RetailZReportTotalizer_BR.AdditionalFiscalMemoryIndex, FiscalPrinterSerialNumber = RetailZReportTotalizer_BR.FiscalPrinterSerialNumber

    One or more RetailZReportTotalizerTaxTrans_BR records → exactly one RetailZReportTotalizer_BR record

  • TaxTable → TaxTable

    Join on TaxCode = TaxTable.TaxCode

    Many RetailZReportTotalizerTaxTrans_BR records → exactly one TaxTable record

Get this data out

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

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

Email sales@drdynamics.co.uk