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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SalesTablePoints to the sales order that this row belongs to. | Int64RefRecId | No | SalesTable.RecId | None |
CFPSId_BRCFPS code, a four-character fiscal code, used for Brazil. | String (4)CFPSId_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 | |
CustFinalUser_BRShows whether the customer is the final user, used for Brazil. | EnumCustVendFinalUser_BRNoYes (enum) | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FineCode_BRCode for the fine applied to the customer, used for Brazil. | StringCustFineCode_BR | No | None | |
FiscalDocumentType_BRPoints to a fiscal document type record by record ID, used for Brazil.low confidence | Int64RefRecId | No | None | |
GenerateIncomingFiscalDocument_BRYes or no: whether an incoming fiscal document is generated, used for Brazil. | EnumGenerateIncomingFiscalDocument_BRNoYes (enum) | No | None | |
InterestCode_BRCode for the interest applied to the customer, used for Brazil. | StringCustInterestCode_BR | No | None | |
InvoiceRefRecID_BRRecord ID that refers to an invoice, used for Brazil. | Int64RefRecId | No | None | |
IsServiceLocationForeign_BRShows whether the service location is outside the country, used for Brazil. | EnumServiceLocationForeign_BRNoYes (enum) | No | None | |
MissingNIFReasonType_BRReason why no foreigner ID (NIF) was given, such as exemption or not required. | EnumMissingNIFReasonType_BR (enum) | 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 | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PresenceTypeWay the buyer was present for the sale, such as in person, internet or telesales. | EnumEFDocPresenceType_BR (enum) | No | None | |
PurposeOfReturn_BRPurpose of the return: refusal or return. | EnumPurposeOfReturn_BR (enum) | 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 | |
SalesPurchOperationType_BRRecord ID of the operation type for the sale or purchase, used for Brazil. | Int64SalesPurchOperationTypeRecId_BR | No | None | |
ServiceCodeOnDlvAddress_BRShows whether the service code comes from the delivery address, used for Brazil. | EnumTaxServiceCodeOnDlvAddress_BRNoYes (enum) | No | None | |
ServiceLocationDomestic_BRRecord ID of the domestic service location, used for Brazil.low confidence | Int64RefRecId | No | None | |
ServiceLocationNonDomestic_BRCountry or region code of a foreign service location, used for Brazil. | StringLogisticsAddressCountryRegionId | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxServiceCode_BRTax service code for the order, used for Brazil. | StringTaxServiceCodeId_BR | No | None | |
ThirdPartySalesDigitalPlatformYes or no flag: shows whether the sale was a remote one via a third-party online platform or marketplace; used for Brazil.low confidence | EnumThirdPartySalesDigitalPlatform_BRNoYes (enum) | No | None | |
ThirdPartySalesDigitalPlatformCNPJCNPJ company number of the digital platform or marketplace provider. | String (20)ThirdPartySalesDigitalPlatformCNPJ_BR | No | None | |
TotalReturn_BRShows whether the return covers the whole order, used for Brazil.low confidence | EnumNoYes (enum) | No | None |
Indexes (1)
SalesTableReplacement keyUnique, alternate key.
Relations (1)
Each relation joins SalesTableHistory_BR to another table on the fields shown.
SalesTable→SalesTableJoin on
SalesTable = SalesTable.RecIdZero 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.