Table

EFDocument_BR

Nota Fiscal eletronica - NF-e

Holds the electronic fiscal document (NF-e) record for a Brazilian fiscal document. It links to the fiscal document header, the contingency mode and the return code. It stores message status and type, protocol and receipt numbers, response time, and NFC-e data such as the QR code text.

Table name
EFDocument_BR
Module
Fiscal books brazil
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
RecId
Replacement key
None
Key fields
None
Model
FiscalBooks

Fields (24)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AverageResponseTimeAverage response time, in seconds.Integer
EFDocumentTimeInSeconds_BR
NoNone
ConsumerEFDocInquiryUrlWeb address for NFC-e inquiry.String (255)
URL
NoNone
ContingencyDateTimeDate and time when contingency mode started.UtcDateTime
ContingencyDateTime
NoNone
ContingencyDateTimeOffsetTime offset for the contingency date and time.Int64
EFDocContingencyOffset_BR
NoNone
ContingencyModeContingency mode that applied, such as SCAN or SVC-AN.Enum
EFDocContingMode_BR (enum)
NoNone
ContingencyModeRefRecIDContingency mode record linked to the document.Int64
RefRecId
NoEFDocContingencyMode_BR.RecIdNone
ContingencyReasonReason why contingency mode was used.String (255)
EFDocContingencyReason_BR
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DateDate of the document.Date
TransDate
NoNone
MessageStatusState of the message: waiting to send, sent or processed.Enum
EFDocMessageStatus_BR (enum)
NoNone
MessageTypeKind of message: NF-e, discard, cancel or cancel by substitution.Enum
EFDocMessageType_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 for the document.String (20)
EFDocProtocolNumber_BR
NoNone
QrcodeTextText used to build the QR code.String (-1)
QrcodeText
NoNone
ReceiptNumberReceipt number for the document.String (15)
EFDocReceiptNumber_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
RefRecIdFiscal document header that this NF-e belongs to.Int64
RefRecId
NoFiscalDocument_BR.RecIdNone
ReturnCodeDescriptionText that explains the return code.String (255)
EFDocReturnCodeDescription_BR
NoNone
ReturnCodeRefRecIdReturn code (NF-e rejection code) for the document. The label talks about price currency, which does not match the relation.low confidenceInt64
ReturnCodeId_BR
NoEFDReturnCode_BR.RecIdNone
ReturnMessageMessage returned by SEFAZ, the tax authority.String (200)
EFDocReturnMessage_BR
NoNone
SynchronousSubmissionWhether the document was sent synchronously: unknown, no or yes.Enum
UnknownNoYes (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TimeTime of the document.Time
TimeOfDay
NoNone

Indexes (1)

Relations (3)

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

  • EFDocContigencyMode_BR → EFDocContingencyMode_BR

    Join on ContingencyModeRefRecID = EFDocContingencyMode_BR.RecId

    Many EFDocument_BR records → zero or one EFDocContingencyMode_BR record

  • EFDReturnCode → EFDReturnCode_BR

    Join on ReturnCodeRefRecId = EFDReturnCode_BR.RecId

    Many EFDocument_BR records → zero or one EFDReturnCode_BR record

  • FiscalDocument → FiscalDocument_BR

    Join on RefRecId = FiscalDocument_BR.RecId

    Many EFDocument_BR records → zero or one FiscalDocument_BR record

Get this data out

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

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

Email sales@drdynamics.co.uk