Table
FiscalDocumentLine_BR
Fiscal document journal lines
Holds the lines of a Brazilian fiscal document. Each line is identified by the fiscal document and a line number. It links to the document header, the item, the fixed asset, units and the source invoice or packing slip. It also stores amounts, weights and Brazilian tax codes such as CFOP and CEST.
- Table name
FiscalDocumentLine_BR- Module
Fiscal books brazil- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
None- Replacement key
FiscalDocumentLine_BR- Key fields
FiscalDocument, LineNum- Model
FiscalBooks
Fields (55)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
FiscalDocumentSystem record ID of the fiscal document header that owns this line. | Int64FiscalDocumentRecId_BR | No | FiscalDocument_BR.RecId | None |
LineNumPosition number of the line within the fiscal document. | RealLineNum | No | None | |
AccountingAmountLine amount in the accounting currency. | RealAmountMST | No | None | |
AdjustmentCode53Adjustment code of type 5.3 for the line.low confidence | StringFBFiscalDocumentTaxSpedAdjustmentCode_BR | No | None | |
ApproximateTaxAmountApproximate total tax amount for the line. | RealTaxAmount | No | None | |
AssetIdFixed asset number linked to the line. It points to a fixed asset record. | String (20)FiscalDocumentAssetId_BR | No | AssetTable.AssetId | None |
BenefitCodeTax adjustment code for the line. | StringFBFiscalDocumentTaxSpedAdjustmentCode_BR | No | None | |
BillCollectionCodeBill collection code used in the ADCR report. It points to the bill collection code table. | String (6)FBSpedADCRBillCollectionCode_BR | No | FBSpedADCRBillCollectionCodeTable_BR.Code | None |
CFOPBrazilian CFOP code for the operation on this line. | String (5)SalesPurchCFOPId_BR | No | None | |
CNPJCNPJ of the manufacturer of the goods. | String (20)CNPJMan_BR | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CreditSourceCodeSource of the credit base, such as goods for resale, rentals or assets. | EnumFBNonFiscalOpCreditSourceCode_BR (enum) | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DescriptionFree-text description of the item or service on the line. | String (1000)FiscalDocumentItemDescription_BR | Yes | None | |
DIAdditionAddition number from the import declaration (DI) for the line. | String (5)PurchDIAddition_BR | No | None | |
ExceptionCodeException code assigned to the line. | StringExceptionCode_BR | No | None | |
FCINumberImport content (FCI) number for the line. | String (36)FCINumber_BR | No | None | |
FinancialLedgerDimensionLedger account and dimension combination for the line. It points to a dimension code combination record. | Int64LedgerDimensionAccount | No | DimensionAttributeValueCombination.RecId | None |
FiscalClassificationFiscal classification code of the item. | StringTaxFiscalClassificationId_BR | No | None | |
FreightNatureKind of operation that the freight relates to, such as sales, purchase or transfer. | EnumFreightNature_BR (enum) | No | None | |
GrossWeightGross weight of the goods on the line. | RealFiscalDocumentGrossWeight_BR | No | None | |
ICMSSTCollectionPaymentModeHow the ICMS-ST tax was collected, for example by state document or GNRE. | EnumICMSSTCollectionPaymentMode_BR (enum) | No | None | |
ICMSSTCollectionPaymentNumberNumber of the ICMS-ST collection payment. | String (256)ICMSSTCollectionPaymentNumber_BR | No | None | |
IndOpCode_BROperation indicator code, used for Brazil. It points to an operation indicator code record. | Int64RefRecId | No | IndOpCodes_BR.RecId | None |
InventTransIdInventory transaction number that links the line to its inventory origin record. | String (20)FiscalDocumentInventTransId_BR | No | InventTransOrigin.InventTransId | None |
ItemIdItem number of the product on the line. It points to an item record. | String (20)ItemIdBase | No | InventTable.ItemId | None |
ItemTypeShows whether the line is a product or a service. | EnumFiscalDocumentLineItemType_BR (enum) | No | None | |
LineAmountTotal amount of the line. | RealFiscalDocumentLineAmount_BR | No | None | |
LineDiscountDiscount amount applied to the line. | RealFiscalDocumentDiscAmount_BR | No | None | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
NBSCode_BRNBS code of the service, used for Brazil. It points to an NBS code record. | Int64RefRecId | No | NBSCodes_BR.RecId | None |
NetWeightNet weight of the goods on the line. | RealFiscalDocumentItemNetWeight_BR | No | None | |
NfeVbcstretVicmsstretTagsReportedYes/No flag showing whether the vBCSTRet and vICMSSTRet tags appear in the NF-e XML. | EnumFBNfeVbcstretVicmsstretTagsReported_BRNoYes (enum) | No | None | |
ObservationCodeObservation code assigned to the line. | String (6)FBObservationCode_BR | No | None | |
OriginOrigin of the goods for taxation, such as national or imported. | EnumFITaxationOrigin_BR (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
QuantityQuantity of the item on the line. | RealFiscalDocumentUnitQty_BR | 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 | |
RefRecIdSystem record ID of the source record, such as a customer invoice, packing slip line or vendor invoice line. Read it together with the reference table ID. | Int64RefRecId | No | CustInvoiceJour.RecIdCustPackingSlipTrans.RecIdVendInvoiceTrans.RecId | None |
RefTableIdID of the table that the reference record ID belongs to. | IntegerRefTableId | No | None | |
RespWithholdingICMSSTParty responsible for withholding ICMS-ST: direct, indirect or own declarant. | EnumRespWithholdingICMSST_BR (enum) | No | None | |
ScaleIndicatorShows whether the manufacturing scale is relevant or not relevant. | EnumScaleIndicator_BR (enum) | No | None | |
ServiceCodeService code used for service lines. | StringTaxServiceCodeId_BR | No | None | |
ServiceTaxationTypeValueTaxation type value for a service line. | StringServiceTaxationTypeValue_BR | No | None | |
SuframaDiscountCOFINSDiscount amount for COFINS under the SUFRAMA regime. | RealFiscalDocumentDiscAmount_BR | No | None | |
SuframaDiscountICMSDiscount amount for ICMS under the SUFRAMA regime. | RealFiscalDocumentDiscAmount_BR | No | None | |
SuframaDiscountPISDiscount amount for PIS under the SUFRAMA regime. | RealFiscalDocumentDiscAmount_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 | |
TaxSubstitutionCodeCEST code used for tax substitution goods. | String (9)TaxSubstitutionCode_BR | No | None | |
UnitUnit of measure symbol for the quantity. It points to a unit record. | StringUnitOfMeasureSymbol | No | UnitOfMeasure.Symbol | None |
UnitPricePrice of one unit of the item. | RealFiscalDocumentPriceCur_BR | No | None |
Indexes (4)
DimensionAttributeValueCombinationIdxNot unique.
FiscalDocumentLine_BRReplacement keyUnique, alternate key.
RefIdxNot unique.
PresumedIdxUnit,Quantity,InventTransId,FiscalDocumentNot unique.
Relations (12)
Each relation joins FiscalDocumentLine_BR to another table on the fields shown.
DimensionAttributeValueCombination→DimensionAttributeValueCombinationJoin on
FinancialLedgerDimension = DimensionAttributeValueCombination.RecIdMany FiscalDocumentLine_BR records → zero or one DimensionAttributeValueCombination record
FiscalDocument→FiscalDocument_BRJoin on
FiscalDocument = FiscalDocument_BR.RecIdMany FiscalDocumentLine_BR records → zero or one FiscalDocument_BR record
UnitOfMeasure→UnitOfMeasureJoin on
Unit = UnitOfMeasure.SymbolMany FiscalDocumentLine_BR records → exactly one UnitOfMeasure record
FBSpedADCRBillCollectionCodeTable_BR→FBSpedADCRBillCollectionCodeTable_BRJoin on
BillCollectionCode = FBSpedADCRBillCollectionCodeTable_BR.CodeMany FiscalDocumentLine_BR records → zero or one FBSpedADCRBillCollectionCodeTable_BR record
AssetTable→AssetTableJoin on
AssetId = AssetTable.AssetIdZero or one FiscalDocumentLine_BR record → zero or one AssetTable record
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdZero or one FiscalDocumentLine_BR record → exactly one InventTable record
InventTransOrigin→InventTransOriginJoin on
InventTransId = InventTransOrigin.InventTransIdMany FiscalDocumentLine_BR records → exactly one InventTransOrigin record
OriginatingCustInvoiceTrans→CustInvoiceJourJoin on
RefRecId = CustInvoiceJour.RecIdMany FiscalDocumentLine_BR records → zero or one CustInvoiceJour record
OriginatingCustPackingSlipTrans→CustPackingSlipTransJoin on
RefRecId = CustPackingSlipTrans.RecIdMany FiscalDocumentLine_BR records → zero or one CustPackingSlipTrans record
OriginatingVendInvoiceTrans→VendInvoiceTransJoin on
RefRecId = VendInvoiceTrans.RecIdMany FiscalDocumentLine_BR records → zero or one VendInvoiceTrans record
NBSCodes_BR→NBSCodes_BRJoin on
NBSCode_BR = NBSCodes_BR.RecIdMany FiscalDocumentLine_BR records → exactly one NBSCodes_BR record
IndOpCodes_BR→IndOpCodes_BRJoin on
IndOpCode_BR = IndOpCodes_BR.RecIdMany FiscalDocumentLine_BR records → exactly one IndOpCodes_BR record
Get this data out
No public entity reads from FiscalDocumentLine_BR. Its data is only reachable through the application, a custom entity or a database export.
Need help with FiscalDocumentLine_BR in a report, an integration or a migration? Talk to Dr Dynamics.