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 descriptionType / EDT / enumMandatoryReferencesIn public entities
FiscalDocumentSystem record ID of the fiscal document header that owns this line.Int64
FiscalDocumentRecId_BR
NoFiscalDocument_BR.RecIdNone
LineNumPosition number of the line within the fiscal document.Real
LineNum
NoNone
AccountingAmountLine amount in the accounting currency.Real
AmountMST
NoNone
AdjustmentCode53Adjustment code of type 5.3 for the line.low confidenceString
FBFiscalDocumentTaxSpedAdjustmentCode_BR
NoNone
ApproximateTaxAmountApproximate total tax amount for the line.Real
TaxAmount
NoNone
AssetIdFixed asset number linked to the line. It points to a fixed asset record.String (20)
FiscalDocumentAssetId_BR
NoAssetTable.AssetIdNone
BenefitCodeTax adjustment code for the line.String
FBFiscalDocumentTaxSpedAdjustmentCode_BR
NoNone
BillCollectionCodeBill collection code used in the ADCR report. It points to the bill collection code table.String (6)
FBSpedADCRBillCollectionCode_BR
NoFBSpedADCRBillCollectionCodeTable_BR.CodeNone
CFOPBrazilian CFOP code for the operation on this line.String (5)
SalesPurchCFOPId_BR
NoNone
CNPJCNPJ of the manufacturer of the goods.String (20)
CNPJMan_BR
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CreditSourceCodeSource of the credit base, such as goods for resale, rentals or assets.Enum
FBNonFiscalOpCreditSourceCode_BR (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DescriptionFree-text description of the item or service on the line.String (1000)
FiscalDocumentItemDescription_BR
YesNone
DIAdditionAddition number from the import declaration (DI) for the line.String (5)
PurchDIAddition_BR
NoNone
ExceptionCodeException code assigned to the line.String
ExceptionCode_BR
NoNone
FCINumberImport content (FCI) number for the line.String (36)
FCINumber_BR
NoNone
FinancialLedgerDimensionLedger account and dimension combination for the line. It points to a dimension code combination record.Int64
LedgerDimensionAccount
NoDimensionAttributeValueCombination.RecIdNone
FiscalClassificationFiscal classification code of the item.String
TaxFiscalClassificationId_BR
NoNone
FreightNatureKind of operation that the freight relates to, such as sales, purchase or transfer.Enum
FreightNature_BR (enum)
NoNone
GrossWeightGross weight of the goods on the line.Real
FiscalDocumentGrossWeight_BR
NoNone
ICMSSTCollectionPaymentModeHow the ICMS-ST tax was collected, for example by state document or GNRE.Enum
ICMSSTCollectionPaymentMode_BR (enum)
NoNone
ICMSSTCollectionPaymentNumberNumber of the ICMS-ST collection payment.String (256)
ICMSSTCollectionPaymentNumber_BR
NoNone
IndOpCode_BROperation indicator code, used for Brazil. It points to an operation indicator code record.Int64
RefRecId
NoIndOpCodes_BR.RecIdNone
InventTransIdInventory transaction number that links the line to its inventory origin record.String (20)
FiscalDocumentInventTransId_BR
NoInventTransOrigin.InventTransIdNone
ItemIdItem number of the product on the line. It points to an item record.String (20)
ItemIdBase
NoInventTable.ItemIdNone
ItemTypeShows whether the line is a product or a service.Enum
FiscalDocumentLineItemType_BR (enum)
NoNone
LineAmountTotal amount of the line.Real
FiscalDocumentLineAmount_BR
NoNone
LineDiscountDiscount amount applied to the line.Real
FiscalDocumentDiscAmount_BR
NoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NBSCode_BRNBS code of the service, used for Brazil. It points to an NBS code record.Int64
RefRecId
NoNBSCodes_BR.RecIdNone
NetWeightNet weight of the goods on the line.Real
FiscalDocumentItemNetWeight_BR
NoNone
NfeVbcstretVicmsstretTagsReportedYes/No flag showing whether the vBCSTRet and vICMSSTRet tags appear in the NF-e XML.Enum
FBNfeVbcstretVicmsstretTagsReported_BR
NoYes (enum)
NoNone
ObservationCodeObservation code assigned to the line.String (6)
FBObservationCode_BR
NoNone
OriginOrigin of the goods for taxation, such as national or imported.Enum
FITaxationOrigin_BR (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
QuantityQuantity of the item on the line.Real
FiscalDocumentUnitQty_BR
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
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.Int64
RefRecId
NoCustInvoiceJour.RecIdCustPackingSlipTrans.RecIdVendInvoiceTrans.RecIdNone
RefTableIdID of the table that the reference record ID belongs to.Integer
RefTableId
NoNone
RespWithholdingICMSSTParty responsible for withholding ICMS-ST: direct, indirect or own declarant.Enum
RespWithholdingICMSST_BR (enum)
NoNone
ScaleIndicatorShows whether the manufacturing scale is relevant or not relevant.Enum
ScaleIndicator_BR (enum)
NoNone
ServiceCodeService code used for service lines.String
TaxServiceCodeId_BR
NoNone
ServiceTaxationTypeValueTaxation type value for a service line.String
ServiceTaxationTypeValue_BR
NoNone
SuframaDiscountCOFINSDiscount amount for COFINS under the SUFRAMA regime.Real
FiscalDocumentDiscAmount_BR
NoNone
SuframaDiscountICMSDiscount amount for ICMS under the SUFRAMA regime.Real
FiscalDocumentDiscAmount_BR
NoNone
SuframaDiscountPISDiscount amount for PIS under the SUFRAMA regime.Real
FiscalDocumentDiscAmount_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
TaxSubstitutionCodeCEST code used for tax substitution goods.String (9)
TaxSubstitutionCode_BR
NoNone
UnitUnit of measure symbol for the quantity. It points to a unit record.String
UnitOfMeasureSymbol
NoUnitOfMeasure.SymbolNone
UnitPricePrice of one unit of the item.Real
FiscalDocumentPriceCur_BR
NoNone

Indexes (4)

Relations (12)

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

  • DimensionAttributeValueCombination → DimensionAttributeValueCombination

    Join on FinancialLedgerDimension = DimensionAttributeValueCombination.RecId

    Many FiscalDocumentLine_BR records → zero or one DimensionAttributeValueCombination record

  • FiscalDocument → FiscalDocument_BR

    Join on FiscalDocument = FiscalDocument_BR.RecId

    Many FiscalDocumentLine_BR records → zero or one FiscalDocument_BR record

  • UnitOfMeasure → UnitOfMeasure

    Join on Unit = UnitOfMeasure.Symbol

    Many FiscalDocumentLine_BR records → exactly one UnitOfMeasure record

  • FBSpedADCRBillCollectionCodeTable_BR → FBSpedADCRBillCollectionCodeTable_BR

    Join on BillCollectionCode = FBSpedADCRBillCollectionCodeTable_BR.Code

    Many FiscalDocumentLine_BR records → zero or one FBSpedADCRBillCollectionCodeTable_BR record

  • AssetTable → AssetTable

    Join on AssetId = AssetTable.AssetId

    Zero or one FiscalDocumentLine_BR record → zero or one AssetTable record

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Zero or one FiscalDocumentLine_BR record → exactly one InventTable record

  • InventTransOrigin → InventTransOrigin

    Join on InventTransId = InventTransOrigin.InventTransId

    Many FiscalDocumentLine_BR records → exactly one InventTransOrigin record

  • OriginatingCustInvoiceTrans → CustInvoiceJour

    Join on RefRecId = CustInvoiceJour.RecId

    Many FiscalDocumentLine_BR records → zero or one CustInvoiceJour record

  • OriginatingCustPackingSlipTrans → CustPackingSlipTrans

    Join on RefRecId = CustPackingSlipTrans.RecId

    Many FiscalDocumentLine_BR records → zero or one CustPackingSlipTrans record

  • OriginatingVendInvoiceTrans → VendInvoiceTrans

    Join on RefRecId = VendInvoiceTrans.RecId

    Many FiscalDocumentLine_BR records → zero or one VendInvoiceTrans record

  • NBSCodes_BR → NBSCodes_BR

    Join on NBSCode_BR = NBSCodes_BR.RecId

    Many FiscalDocumentLine_BR records → exactly one NBSCodes_BR record

  • IndOpCodes_BR → IndOpCodes_BR

    Join on IndOpCode_BR = IndOpCodes_BR.RecId

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

Email sales@drdynamics.co.uk