Table

SalesTableHistory_BR

Sales order header information for Brazil

Brazil-specific header details for a sales order, one row per order (key SalesTable). It holds fiscal data such as CFPS code, fine and interest codes, service code, presence type, operation type and return details. It also holds information on third-party digital platform sales.

Table name
SalesTableHistory_BR
Module
Accounts receivable
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
LogisticsBasic
Primary index
RecId
Replacement key
SalesTable
Key fields
SalesTable
Model
Foundation

Fields (29)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesTablePoints to the sales order that this row belongs to.Int64
RefRecId
NoSalesTable.RecIdNone
CFPSId_BRCFPS code, a four-character fiscal code, used for Brazil.String (4)
CFPSId_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
CustFinalUser_BRShows whether the customer is the final user, used for Brazil.Enum
CustVendFinalUser_BR
NoYes (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FineCode_BRCode for the fine applied to the customer, used for Brazil.String
CustFineCode_BR
NoNone
FiscalDocumentType_BRPoints to a fiscal document type record by record ID, used for Brazil.low confidenceInt64
RefRecId
NoNone
GenerateIncomingFiscalDocument_BRYes or no: whether an incoming fiscal document is generated, used for Brazil.Enum
GenerateIncomingFiscalDocument_BR
NoYes (enum)
NoNone
InterestCode_BRCode for the interest applied to the customer, used for Brazil.String
CustInterestCode_BR
NoNone
InvoiceRefRecID_BRRecord ID that refers to an invoice, used for Brazil.Int64
RefRecId
NoNone
IsServiceLocationForeign_BRShows whether the service location is outside the country, used for Brazil.Enum
ServiceLocationForeign_BR
NoYes (enum)
NoNone
MissingNIFReasonType_BRReason why no foreigner ID (NIF) was given, such as exemption or not required.Enum
MissingNIFReasonType_BR (enum)
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
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PresenceTypeWay the buyer was present for the sale, such as in person, internet or telesales.Enum
EFDocPresenceType_BR (enum)
NoNone
PurposeOfReturn_BRPurpose of the return: refusal or return.Enum
PurposeOfReturn_BR (enum)
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
SalesPurchOperationType_BRRecord ID of the operation type for the sale or purchase, used for Brazil.Int64
SalesPurchOperationTypeRecId_BR
NoNone
ServiceCodeOnDlvAddress_BRShows whether the service code comes from the delivery address, used for Brazil.Enum
TaxServiceCodeOnDlvAddress_BR
NoYes (enum)
NoNone
ServiceLocationDomestic_BRRecord ID of the domestic service location, used for Brazil.low confidenceInt64
RefRecId
NoNone
ServiceLocationNonDomestic_BRCountry or region code of a foreign service location, used for Brazil.String
LogisticsAddressCountryRegionId
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxServiceCode_BRTax service code for the order, used for Brazil.String
TaxServiceCodeId_BR
NoNone
ThirdPartySalesDigitalPlatformYes or no flag: shows whether the sale was a remote one via a third-party online platform or marketplace; used for Brazil.low confidenceEnum
ThirdPartySalesDigitalPlatform_BR
NoYes (enum)
NoNone
ThirdPartySalesDigitalPlatformCNPJCNPJ company number of the digital platform or marketplace provider.String (20)
ThirdPartySalesDigitalPlatformCNPJ_BR
NoNone
TotalReturn_BRShows whether the return covers the whole order, used for Brazil.low confidenceEnum
NoYes (enum)
NoNone

Indexes (1)

  • SalesTableReplacement key

    SalesTable

    Unique, alternate key.

Relations (1)

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

  • SalesTable → SalesTable

    Join on SalesTable = SalesTable.RecId

    Zero or one SalesTableHistory_BR record → exactly one SalesTable record

Get this data out

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

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

Email sales@drdynamics.co.uk