Table

RetailFiscalDocumentLine_BR

Retail Fiscal Document Line

Holds the lines of a retail fiscal document for Brazil. Each line is identified by the document key plus a line number. It stores item, quantity, price, discount, CFOP, fiscal classification and taxation origin.

Table name
RetailFiscalDocumentLine_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
Channel, store, terminal, transactionId, FiscalDocumentSeries, FiscalDocumentNumber, LineNum
Model
Foundation

Fields (34)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ChannelRetail channel of the document, by system record ID.Int64
RefRecId
YesRetailChannelTable.RecIdNone
storeNumber of the store of the transaction.String
RetailStoreId
YesRetailFiscalDocument_BR.storeNone
terminalNumber of the register used for the transaction.String
RetailTerminalId
YesRetailFiscalDocument_BR.terminalNone
transactionIdNumber of the retail transaction the document comes from.String (44)
RetailTransactionId
YesRetailFiscalDocument_BR.transactionIdNone
FiscalDocumentSeriesSeries of the retail fiscal document the line belongs to.String (9)
FiscalDocumentSeries_BR
YesRetailFiscalDocument_BR.FiscalDocumentSeriesNone
FiscalDocumentNumberNumber of the retail fiscal document the line belongs to.String (20)
FiscalDocumentNumber_BR
YesRetailFiscalDocument_BR.FiscalDocumentNumberNone
LineNumNumber of the line on the document.Real
LineNum
YesNone
ApproximateTaxAmountApproximate tax amount for the line.Real
TaxAmount
NoNone
BenefitCodeTax adjustment code for the line.String
FBFiscalDocumentTaxSpedAdjustmentCode_BR
NoNone
CFOPCFOP fiscal operation code for the line.String (5)
SalesPurchCFOPId_BR
NoNone
CNPJManufacturerCNPJ of the manufacturer.String (20)
CNPJMan_BR
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DescriptionFree-text description of the line item.String (1000)
ItemFreeTxt
YesNone
FiscalClassificationFiscal classification code of the item.String
TaxFiscalClassificationId_BR
NoNone
GlobalTradeItemNumberGTIN barcode number of the item.String (14)
GlobalTradeItemNumber
YesNone
ItemIdItem number sold on the line.String (20)
ItemId
NoNone
ItemTypeShows whether the line is a product or a service.Enum
FiscalDocumentLineItemType_BR (enum)
NoNone
LineAmountAmount of the line.Real
LineAmount
NoNone
LineDiscountDiscount on the line.Real
SalesSumLineDiscAmount
NoNone
LineIdSecond line number field on the document line.low confidenceReal
LineNum
NoNone
OriginalLineDiscountOriginal discount on the line.Real
SalesSumLineDiscAmount
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
QuantityQuantity on the line.Real
UnitQty
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
ScaleIndicatorShows whether the production scale is relevant or not.Enum
ScaleIndicator_BR (enum)
NoNone
ServiceCodeService code, used when the line is a service.String
TaxServiceCodeId_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
TaxationOriginOrigin of the goods for tax, such as national or imported.Enum
FITaxationOrigin_BR (enum)
NoNone
TaxSubstitutionCodeCEST code for tax substitution.String (9)
TaxSubstitutionCode_BR
NoNone
UnitUnit of measure of the quantity.String
UnitOfMeasureSymbol
NoNone
UnitPricePrice of one unit on the line.Real
PriceCur
NoNone

Indexes (1)

Relations (2)

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

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailFiscalDocumentLine_BR records → exactly one RetailChannelTable record

  • 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 RetailFiscalDocumentLine_BR records → exactly one RetailFiscalDocument_BR record

Get this data out

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

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

Email sales@drdynamics.co.uk