Table

RetailFiscalDocumentCancel_BR

Voided retail fiscal documents

Holds cancellation details for retail fiscal documents voided in Brazil. Each row is keyed by transaction number, register, store and channel, and links to the retail transaction. It stores the cancel access key, QR code text, protocol, message status and XML request and response.

Table name
RetailFiscalDocumentCancel_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
transactionId, terminal, store, Channel
Model
Foundation

Fields (23)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
transactionIdNumber of the retail transaction that was voided.String (44)
RetailTransactionId
YesRetailTransactionTable.transactionIdNone
terminalNumber of the register used for the retail transaction.String
RetailTerminalId
YesRetailTransactionTable.terminalNone
storeNumber of the store of the retail transaction.String
RetailStoreId
YesRetailTransactionTable.storeNone
ChannelRetail channel of the transaction, by system record ID.Int64
RefRecId
YesRetailChannelTable.RecIdNone
AccessKeyAccess key of the document that was voided.String (45)
EFDocAccessKey_BR
NoNone
CancelAccessKeyAccess key of the cancellation document.String (45)
EFDocAccessKey_BR
NoNone
CancelAccountingDateDate and time of the cancellation.UtcDateTime
FiscalDocumentDateTime_BR
NoNone
CancelQrcodeTextText used to build the QR code of the cancellation.String (-1)
QrcodeText
NoNone
CancelReasonCommentFree-text comment giving the reason for the cancellation.String (255)
ReasonComment_BR
NoNone
CancelTaxAuthorityInfoObservations from the tax authority, sent by the SAT device.String (-1)
EFRTaxAuthorityInfo_BR
NoNone
CancelTotalAmountTotal amount of the cancelled document, in accounting currency.Real
AmountMST
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
MessageStatusWhere the cancellation message stands: waiting to send, sent or processed.Enum
EFDocMessageStatus_BR (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProtocolNumberProtocol number returned for the cancellation.String (20)
EFDocProtocolNumber_BR
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
ReturnCodeDescriptionDescription of the return code from the tax authority.String (255)
EFDocReturnCodeDescription_BR
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
XmlRequestXML request sent for the cancellation.String (-1)
EFDocXML_BR
NoNone
XmlResponseXML response received for the cancellation.String (-1)
EFDocXML_BR
NoNone

Indexes (2)

Relations (2)

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

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailFiscalDocumentCancel_BR records → exactly one RetailChannelTable record

  • RetailTransactionTable → RetailTransactionTable

    Join on Channel = RetailTransactionTable.Channel, store = RetailTransactionTable.store, terminal = RetailTransactionTable.terminal, transactionId = RetailTransactionTable.transactionId

    Zero or one RetailFiscalDocumentCancel_BR record → exactly one RetailTransactionTable record

Get this data out

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

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

Email sales@drdynamics.co.uk