Table

SalesLine_BR

Sales order line information for Brazil

Extra Brazil-specific data for a sales order line, one row per line (keyed by the sales line). It holds fiscal codes such as CFOP, NBS, service code and operation indicator, plus tax group settings for the Brazil tax reform.

Table name
SalesLine_BR
Module
Accounts receivable
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
SalesLineIdx
Key fields
SalesLine
Model
Foundation

Fields (19)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesLineSales order line this record extends.Int64
RefRecId
NoSalesLine.RecIdSalesLineBRBiEntity
CFOPTable_BRCFOP code record for the line.Int64
RefRecId
NoCFOPTable_BR.RecIdSalesLineBRBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeliveryCFOPTable_BRCFOP code record used for the delivery.Int64
RefRecId
NoCFOPTable_BR.RecIdSalesLineBRBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entityand 1 more
FiscalDocumentType_BRFiscal document type for the line.Int64
FiscalDocumentTypeRecID_BR
NoFiscalDocumentType_BR.RecIdSalesLineBRBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity
IndOpCode_BROperation indicator code linked to the line.Int64
RefRecId
NoIndOpCodes_BR.RecIdSalesLineBRBiEntity
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NBSCode_BRNBS code linked to the line.Int64
RefRecId
NoNBSCodes_BR.RecIdSalesLineBRBiEntity
OverrideSalesTax_BRYes/No flag that allows the tax reform tax settings to be overridden.Enum
TaxIntegrationOverrideSalesTax
NoYes (enum)
NoSalesLineBRBiEntitySalesOrderLineV3Entity
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
NoSalesLineBRBiEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SuframaDiscount_BRSUFRAMA discount percentage for the line.Real
SalesLinePercent
NoSalesLineBRBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity
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
TaxGroup_BRTax group for the tax reform, taken from the advanced tax engine unless overridden.String
TaxGroup
NoSalesLineBRBiEntitySalesOrderLineV3Entity
TaxItemGroup_BRItem tax group for the tax reform, taken from the advanced tax engine unless overridden.String
TaxItemGroup
NoSalesLineBRBiEntitySalesOrderLineV3Entity
TaxServiceCode_BRService code for the line.String
TaxServiceCodeId_BR
NoSalesLineBRBiEntitySalesOrderLineV3EntitySalesOrderLineV2Entity

Indexes (5)

Relations (9)

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

  • CFOPTable_BR → CFOPTable_BR

    Join on CFOPTable_BR = CFOPTable_BR.RecId

    Many SalesLine_BR records → exactly one CFOPTable_BR record

  • DeliveryCFOPTable_BR → CFOPTable_BR

    Join on DeliveryCFOPTable_BR = CFOPTable_BR.RecId

    Many SalesLine_BR records → zero or one CFOPTable_BR record

  • FiscalDocumentType_BR → FiscalDocumentType_BR

    Join on FiscalDocumentType_BR = FiscalDocumentType_BR.RecId

    Many SalesLine_BR records → exactly one FiscalDocumentType_BR record

  • SalesLine → SalesLine

    Join on SalesLine = SalesLine.RecId

    Zero or one SalesLine_BR record → exactly one SalesLine record

  • TaxServiceCode_BR → TaxServiceCode_BR

    Join on TaxServiceCode_BR = TaxServiceCode_BR.ServiceCodeId

    Many SalesLine_BR records → zero or one TaxServiceCode_BR record

  • TaxGroupHeadingTaxServiceView → TaxGroupHeadingTaxServiceView

    Join on TaxGroup_BR = TaxGroupHeadingTaxServiceView.TaxGroup

    Many SalesLine_BR records → zero or one TaxGroupHeadingTaxServiceView record

  • TaxItemGroupHeadingTaxServiceView → TaxItemGroupHeadingTaxServiceView

    Join on TaxItemGroup_BR = TaxItemGroupHeadingTaxServiceView.TaxItemGroup

    Many SalesLine_BR records → zero or one TaxItemGroupHeadingTaxServiceView record

  • NBSCodes_BR → NBSCodes_BR

    Join on NBSCode_BR = NBSCodes_BR.RecId

    Many SalesLine_BR records → exactly one NBSCodes_BR record

  • IndOpCodes_BR → IndOpCodes_BR

    Join on IndOpCode_BR = IndOpCodes_BR.RecId

    Many SalesLine_BR records → exactly one IndOpCodes_BR record

Get this data out

Tables are not exposed directly. These public entities read from SalesLine_BR; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk