Table
SalesTable_BR
Sales order header information for Brazil
Extra Brazil-specific data for a sales order header, one row per order (keyed by the sales order). It holds fiscal document type, operation type, fine and interest codes, service location details and settings for returns and digital platform sales.
- Table name
SalesTable_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 (30)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SalesTableSales order this record extends. | Int64RefRecId | No | SalesTable.RecId | SalesTableBRBiEntity |
CFPSId_BRCFPS service code for the order. | String (4)CFPSId_BR | No | SalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more | |
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_BRYes/No flag showing whether the customer is the final user. | EnumCustVendFinalUser_BRNoYes (enum) | No | SalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FineCode_BRFine code applied to the order. | StringCustFineCode_BR | No | CustFineSetup_BR.FineCode | SalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more |
FiscalDocumentType_BRFiscal document type for the order. | Int64RefRecId | No | FiscalDocumentType_BR.RecId | SalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more |
GenerateIncomingFiscalDocument_BRYes/No flag for generating an incoming fiscal document. | EnumGenerateIncomingFiscalDocument_BRNoYes (enum) | No | SalesTableBRBiEntity | |
InterestCode_BRInterest code applied to the order. | StringCustInterestCode_BR | No | CustInterestSetup_BR.InterestCode | SalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more |
InvoiceRefRecID_BRCustomer invoice referenced by the order. | Int64RefRecId | No | CustInvoiceJour.RecId | SalesTableBRBiEntity |
IsServiceLocationForeign_BRYes/No flag showing whether the service location is abroad. | EnumServiceLocationForeign_BRNoYes (enum) | No | SalesTableBRBiEntity | |
MissingNIFReasonType_BRReason why no foreigner ID (NIF) was given. | EnumMissingNIFReasonType_BR (enum) | No | SalesTableBRBiEntity | |
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 | |
PresenceTypeHow the buyer was present in the sale, such as in person, internet or telesales. | EnumEFDocPresenceType_BR (enum) | No | SalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more | |
PurposeOfReturn_BRPurpose of the return: refusal or return. | EnumPurposeOfReturn_BR (enum) | No | SalesTableBRBiEntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | SalesTableBRBiEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SalesPurchOperationType_BROperation type of the order. | Int64SalesPurchOperationTypeRecId_BR | No | SalesPurchOperationType_BR.RecId | SalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more |
ServiceCodeOnDlvAddress_BRYes/No flag for taking the service code from the delivery address. | EnumTaxServiceCodeOnDlvAddress_BRNoYes (enum) | No | SalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more | |
ServiceLocationDomestic_BRCity of the service location when it is in Brazil. | Int64RefRecId | No | LogisticsAddressCity.RecId | SalesTableBRBiEntity |
ServiceLocationNonDomestic_BRCountry or region of the service location when it is abroad. | StringLogisticsAddressCountryRegionId | No | LogisticsAddressCountryRegion.CountryRegionId | SalesTableBRBiEntity |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxServiceCode_BRService code for the order. | StringTaxServiceCodeId_BR | No | SalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more | |
ThirdPartySalesDigitalPlatformYes/No flag showing whether the sale went through a third-party digital platform or marketplace. | EnumThirdPartySalesDigitalPlatform_BRNoYes (enum) | No | SalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 2 more | |
ThirdPartySalesDigitalPlatformCNPJCNPJ tax number of the digital platform provider. | String (20)ThirdPartySalesDigitalPlatformCNPJ_BR | No | SalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 2 more | |
TotalReturn_BRYes/No flag for a full refusal of the goods. | EnumTotalReturn_BRNoYes (enum) | No | SalesTableBRBiEntity |
Indexes (3)
SalesTableReplacement keyUnique, alternate key.
SalesPurchOperationType_BRIdxNot unique.
FiscalDocumentType_BRIdxNot unique.
Relations (9)
Each relation joins SalesTable_BR to another table on the fields shown.
CFPSTable_BR→CFPSTable_BRJoin on
CFPSId_BR = CFPSTable_BR.CFPSIdMany SalesTable_BR records → zero or one CFPSTable_BR record
CustFineSetup_BR→CustFineSetup_BRJoin on
FineCode_BR = CustFineSetup_BR.FineCodeMany SalesTable_BR records → zero or one CustFineSetup_BR record
CustInterestSetup_BR→CustInterestSetup_BRJoin on
InterestCode_BR = CustInterestSetup_BR.InterestCodeMany SalesTable_BR records → zero or one CustInterestSetup_BR record
FiscalDocumentType_BR→FiscalDocumentType_BRJoin on
FiscalDocumentType_BR = FiscalDocumentType_BR.RecIdMany SalesTable_BR records → zero or one FiscalDocumentType_BR record
InvoiceRefRecID_BR→CustInvoiceJourJoin on
InvoiceRefRecID_BR = CustInvoiceJour.RecIdMany SalesTable_BR records → zero or one CustInvoiceJour record
SalesPurchOperationType_BR→SalesPurchOperationType_BRJoin on
SalesPurchOperationType_BR = SalesPurchOperationType_BR.RecIdMany SalesTable_BR records → zero or one SalesPurchOperationType_BR record
SalesTable→SalesTableJoin on
SalesTable = SalesTable.RecIdZero or one SalesTable_BR record → exactly one SalesTable record
LogisticsAddressCity→LogisticsAddressCityJoin on
ServiceLocationDomestic_BR = LogisticsAddressCity.RecIdMany SalesTable_BR records → exactly one LogisticsAddressCity record
LogisticsAddressCountryRegion→LogisticsAddressCountryRegionJoin on
ServiceLocationNonDomestic_BR = LogisticsAddressCountryRegion.CountryRegionIdMany SalesTable_BR records → exactly one LogisticsAddressCountryRegion record
Get this data out
Tables are not exposed directly. These public entities read from SalesTable_BR; use one of them in Power BI, Power Platform or a data management project.
SalesTableBRBiEntity· 21 fields from this tableSalesOrderHeaderV4Entity· 11 fields from this tableSalesOrderHeaderV3Entity· 11 fields from this tableSalesOrderHeaderV2Entity· 11 fields from this tableSalesOrderHeaderEntity· 11 fields from this tableSalesOrderHeaderV2ExistAddrReadOnlyEntity· 9 fields from this tableSalesOrderHeaderV3ExistAddrReadOnlyEntity· 9 fields from this table
Need help with SalesTable_BR in a report, an integration or a migration? Talk to Dr Dynamics.