Table
RetailFiscalDocumentLegalText_BR
Retail fiscal document legal texts
Holds legal text lines attached to a retail fiscal document for Brazil. Each row belongs to one retail fiscal document and is numbered by line. It stores the text ID, type, description and note.
- Table name
RetailFiscalDocumentLegalText_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, FiscalDocumentSeries, FiscalDocumentNumber, Channel, RefNum- Model
Foundation
Fields (20)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TransactionIdNumber of the retail transaction the document comes from. | String (44)RetailTransactionId | Yes | RetailFiscalDocument_BR.transactionId | None |
TerminalNumber of the register used for the transaction. | StringRetailTerminalId | Yes | RetailTerminalTable.terminalId | None |
StoreNumber of the store of the transaction. | StringRetailStoreId | Yes | RetailStoreTable.StoreNumber | None |
FiscalDocumentSeriesSeries of the retail fiscal document this text belongs to. | String (9)FiscalDocumentSeries_BR | Yes | RetailFiscalDocument_BR.FiscalDocumentSeries | None |
FiscalDocumentNumberNumber of the retail fiscal document this text belongs to. | String (20)FiscalDocumentNumber_BR | Yes | RetailFiscalDocument_BR.FiscalDocumentNumber | None |
ChannelRetail channel of the document, by system record ID. | Int64RefRecId | Yes | RetailChannelTable.RecId | None |
RefNumLine number of the text on the document. | RealLineNum | Yes | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FiscalInformationYes/No flag for fiscal information on the text. | EnumFiscalDocumentTextFiscalInformation_BRNoYes (enum) | No | None | |
NotesFree-text note for the referenced transaction. | String (-1)Notes | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | 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 | |
RestrictionShows whether the text is internal or external. | EnumDocuRestriction (enum) | 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 | |
TextIDID of the fiscal document text. | StringFiscalDocumentTextID_BR | No | None | |
TextNameShort description of the text. | String (60)Description | No | None | |
TextTypeType of fiscal text, such as SUFRAMA, process reference, CFOP or user-defined. | EnumFiscalDocumentTextType_BR (enum) | Yes | None |
Indexes (1)
IdxPrimary indexReplacement keyTransactionId,Terminal,Store,FiscalDocumentSeries,FiscalDocumentNumber,Channel,RefNumUnique, alternate key.
Relations (5)
Each relation joins RetailFiscalDocumentLegalText_BR to another table on the fields shown.
RetailFiscalDocument_BR→RetailFiscalDocument_BRJoin on
Channel = RetailFiscalDocument_BR.Channel,Store = RetailFiscalDocument_BR.store,Terminal = RetailFiscalDocument_BR.terminal,TransactionId = RetailFiscalDocument_BR.transactionId,FiscalDocumentSeries = RetailFiscalDocument_BR.FiscalDocumentSeries,FiscalDocumentNumber = RetailFiscalDocument_BR.FiscalDocumentNumberMany RetailFiscalDocumentLegalText_BR records → exactly one RetailFiscalDocument_BR record
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailFiscalDocumentLegalText_BR records → exactly one RetailChannelTable record
RetailStoreTable→RetailStoreTableJoin on
Store = RetailStoreTable.StoreNumberMany RetailFiscalDocumentLegalText_BR records → exactly one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
Terminal = RetailTerminalTable.terminalIdMany RetailFiscalDocumentLegalText_BR records → exactly one RetailTerminalTable record
RetailTransactionTable→RetailTransactionTableJoin on
Terminal = RetailTransactionTable.BatchTerminalId,Store = RetailTransactionTable.store,TransactionId = RetailTransactionTable.transactionIdZero or one RetailFiscalDocumentLegalText_BR record → zero or one RetailTransactionTable record
Get this data out
No public entity reads from RetailFiscalDocumentLegalText_BR. Its data is only reachable through the application, a custom entity or a database export.
Need help with RetailFiscalDocumentLegalText_BR in a report, an integration or a migration? Talk to Dr Dynamics.