Table

SalesLineHistory_BR

Sales order line information for Brazil

Stores extra Brazil-specific data for a sales order line, such as fiscal operation codes, fiscal document type, service code and tax group settings. It is keyed by the sales line (SalesLine) and has one row per line. Used for Brazil.

Table name
SalesLineHistory_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 (18)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesLinePoints to the sales order line this row extends.Int64
RefRecId
NoSalesLine.RecIdNone
CFOPTable_BRPoints to the fiscal operation code (CFOP) record for the line, used for Brazil.Int64
RefRecId
NoNone
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_BRPoints to the fiscal operation code (CFOP) used for delivery, used for Brazil.Int64
RefRecId
NoNone
FiscalDocumentType_BRPoints to the fiscal document type for the line, used for Brazil.Int64
FiscalDocumentTypeRecID_BR
NoNone
IndOpCode_BRPoints to the operation indicator code record for the line, used for Brazil.Int64
RefRecId
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NBSCode_BRPoints to the NBS code record for the line, used for Brazil.Int64
RefRecId
NoNone
OverrideSalesTax_BRYes/No flag that lets the line use its own sales tax determination instead of the default.Enum
TaxIntegrationOverrideSalesTax
NoYes (enum)
NoNone
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
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SuframaDiscount_BRPercentage discount linked to SUFRAMA, used for Brazil.Real
SalesLinePercent
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxGroup_BRTax group for the Brazil tax reform, which can be changed when the override is switched on.String
TaxGroup
NoNone
TaxItemGroup_BRItem tax group for the Brazil tax reform, which can be changed when the override is switched on.String
TaxItemGroup
NoNone
TaxServiceCode_BRService code for tax purposes on the line, used for Brazil.String
TaxServiceCodeId_BR
NoNone

Indexes (1)

  • SalesLineIdxReplacement key

    SalesLine

    Unique, alternate key.

Relations (1)

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

  • SalesLine → SalesLine

    Join on SalesLine = SalesLine.RecId

    Zero or one SalesLineHistory_BR record → exactly one SalesLine record

Get this data out

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

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

Email sales@drdynamics.co.uk