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 descriptionType / EDT / enumMandatoryReferencesIn public entities
TransactionIdNumber of the retail transaction the document comes from.String (44)
RetailTransactionId
YesRetailFiscalDocument_BR.transactionIdNone
TerminalNumber of the register used for the transaction.String
RetailTerminalId
YesRetailTerminalTable.terminalIdNone
StoreNumber of the store of the transaction.String
RetailStoreId
YesRetailStoreTable.StoreNumberNone
FiscalDocumentSeriesSeries of the retail fiscal document this text belongs to.String (9)
FiscalDocumentSeries_BR
YesRetailFiscalDocument_BR.FiscalDocumentSeriesNone
FiscalDocumentNumberNumber of the retail fiscal document this text belongs to.String (20)
FiscalDocumentNumber_BR
YesRetailFiscalDocument_BR.FiscalDocumentNumberNone
ChannelRetail channel of the document, by system record ID.Int64
RefRecId
YesRetailChannelTable.RecIdNone
RefNumLine number of the text on the document.Real
LineNum
YesNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FiscalInformationYes/No flag for fiscal information on the text.Enum
FiscalDocumentTextFiscalInformation_BR
NoYes (enum)
NoNone
NotesFree-text note for the referenced transaction.String (-1)
Notes
NoNone
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 used when the record is replicated from its origin.Integer
RetailReplicationCounter
NoNone
RestrictionShows whether the text is internal or external.Enum
DocuRestriction (enum)
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
TextIDID of the fiscal document text.String
FiscalDocumentTextID_BR
NoNone
TextNameShort description of the text.String (60)
Description
NoNone
TextTypeType of fiscal text, such as SUFRAMA, process reference, CFOP or user-defined.Enum
FiscalDocumentTextType_BR (enum)
YesNone

Indexes (1)

Relations (5)

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

  • RetailFiscalDocument_BR → RetailFiscalDocument_BR

    Join on Channel = RetailFiscalDocument_BR.Channel, Store = RetailFiscalDocument_BR.store, Terminal = RetailFiscalDocument_BR.terminal, TransactionId = RetailFiscalDocument_BR.transactionId, FiscalDocumentSeries = RetailFiscalDocument_BR.FiscalDocumentSeries, FiscalDocumentNumber = RetailFiscalDocument_BR.FiscalDocumentNumber

    Many RetailFiscalDocumentLegalText_BR records → exactly one RetailFiscalDocument_BR record

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailFiscalDocumentLegalText_BR records → exactly one RetailChannelTable record

  • RetailStoreTable → RetailStoreTable

    Join on Store = RetailStoreTable.StoreNumber

    Many RetailFiscalDocumentLegalText_BR records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on Terminal = RetailTerminalTable.terminalId

    Many RetailFiscalDocumentLegalText_BR records → exactly one RetailTerminalTable record

  • RetailTransactionTable → RetailTransactionTable

    Join on Terminal = RetailTransactionTable.BatchTerminalId, Store = RetailTransactionTable.store, TransactionId = RetailTransactionTable.transactionId

    Zero 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.

Email sales@drdynamics.co.uk