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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
transactionIdNumber of the retail transaction that was voided. | String (44)RetailTransactionId | Yes | RetailTransactionTable.transactionId | None |
terminalNumber of the register used for the retail transaction. | StringRetailTerminalId | Yes | RetailTransactionTable.terminal | None |
storeNumber of the store of the retail transaction. | StringRetailStoreId | Yes | RetailTransactionTable.store | None |
ChannelRetail channel of the transaction, by system record ID. | Int64RefRecId | Yes | RetailChannelTable.RecId | None |
AccessKeyAccess key of the document that was voided. | String (45)EFDocAccessKey_BR | No | None | |
CancelAccessKeyAccess key of the cancellation document. | String (45)EFDocAccessKey_BR | No | None | |
CancelAccountingDateDate and time of the cancellation. | UtcDateTimeFiscalDocumentDateTime_BR | No | None | |
CancelQrcodeTextText used to build the QR code of the cancellation. | String (-1)QrcodeText | No | None | |
CancelReasonCommentFree-text comment giving the reason for the cancellation. | String (255)ReasonComment_BR | No | None | |
CancelTaxAuthorityInfoObservations from the tax authority, sent by the SAT device. | String (-1)EFRTaxAuthorityInfo_BR | No | None | |
CancelTotalAmountTotal amount of the cancelled document, in accounting currency. | RealAmountMST | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
MessageStatusWhere the cancellation message stands: waiting to send, sent or processed. | EnumEFDocMessageStatus_BR (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProtocolNumberProtocol number returned for the cancellation. | String (20)EFDocProtocolNumber_BR | No | None | |
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 used when the record is replicated from its origin. | IntegerRetailReplicationCounter | No | None | |
ReturnCodeDescriptionDescription of the return code from the tax authority. | String (255)EFDocReturnCodeDescription_BR | No | None | |
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 | |
XmlRequestXML request sent for the cancellation. | String (-1)EFDocXML_BR | No | None | |
XmlResponseXML response received for the cancellation. | String (-1)EFDocXML_BR | No | None |
Indexes (2)
IdxPrimary indexReplacement keytransactionId,terminal,store,ChannelUnique, alternate key.
AccessKeyIdxNot unique.
Relations (2)
Each relation joins RetailFiscalDocumentCancel_BR to another table on the fields shown.
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailFiscalDocumentCancel_BR records → exactly one RetailChannelTable record
RetailTransactionTable→RetailTransactionTableJoin on
Channel = RetailTransactionTable.Channel,store = RetailTransactionTable.store,terminal = RetailTransactionTable.terminal,transactionId = RetailTransactionTable.transactionIdZero 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.