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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ChannelRetail channel of the document, by system record ID. | Int64RefRecId | Yes | RetailChannelTable.RecId | None |
storeNumber of the store of the transaction. | StringRetailStoreId | Yes | RetailFiscalDocument_BR.store | None |
terminalNumber of the register used for the transaction. | StringRetailTerminalId | Yes | RetailFiscalDocument_BR.terminal | None |
transactionIdNumber of the retail transaction the document comes from. | String (44)RetailTransactionId | Yes | RetailFiscalDocument_BR.transactionId | None |
FiscalDocumentSeriesSeries of the retail fiscal document the line belongs to. | String (9)FiscalDocumentSeries_BR | Yes | RetailFiscalDocument_BR.FiscalDocumentSeries | None |
FiscalDocumentNumberNumber of the retail fiscal document the line belongs to. | String (20)FiscalDocumentNumber_BR | Yes | RetailFiscalDocument_BR.FiscalDocumentNumber | None |
LineNumNumber of the line on the document. | RealLineNum | Yes | None | |
ApproximateTaxAmountApproximate tax amount for the line. | RealTaxAmount | No | None | |
BenefitCodeTax adjustment code for the line. | StringFBFiscalDocumentTaxSpedAdjustmentCode_BR | No | None | |
CFOPCFOP fiscal operation code for the line. | String (5)SalesPurchCFOPId_BR | No | None | |
CNPJManufacturerCNPJ of the manufacturer. | String (20)CNPJMan_BR | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DescriptionFree-text description of the line item. | String (1000)ItemFreeTxt | Yes | None | |
FiscalClassificationFiscal classification code of the item. | StringTaxFiscalClassificationId_BR | No | None | |
GlobalTradeItemNumberGTIN barcode number of the item. | String (14)GlobalTradeItemNumber | Yes | None | |
ItemIdItem number sold on the line. | String (20)ItemId | No | None | |
ItemTypeShows whether the line is a product or a service. | EnumFiscalDocumentLineItemType_BR (enum) | No | None | |
LineAmountAmount of the line. | RealLineAmount | No | None | |
LineDiscountDiscount on the line. | RealSalesSumLineDiscAmount | No | None | |
LineIdSecond line number field on the document line.low confidence | RealLineNum | No | None | |
OriginalLineDiscountOriginal discount on the line. | RealSalesSumLineDiscAmount | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
QuantityQuantity on the line. | RealUnitQty | 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 | |
ScaleIndicatorShows whether the production scale is relevant or not. | EnumScaleIndicator_BR (enum) | No | None | |
ServiceCodeService code, used when the line is a service. | StringTaxServiceCodeId_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 | |
TaxationOriginOrigin of the goods for tax, such as national or imported. | EnumFITaxationOrigin_BR (enum) | No | None | |
TaxSubstitutionCodeCEST code for tax substitution. | String (9)TaxSubstitutionCode_BR | No | None | |
UnitUnit of measure of the quantity. | StringUnitOfMeasureSymbol | No | None | |
UnitPricePrice of one unit on the line. | RealPriceCur | No | None |
Indexes (1)
IdxPrimary indexReplacement keyChannel,store,terminal,transactionId,FiscalDocumentSeries,FiscalDocumentNumber,LineNumUnique, alternate key.
Relations (2)
Each relation joins RetailFiscalDocumentLine_BR to another table on the fields shown.
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailFiscalDocumentLine_BR records → exactly one RetailChannelTable record
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 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.