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 descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesTableSales order this record extends.Int64
RefRecId
NoSalesTable.RecIdSalesTableBRBiEntity
CFPSId_BRCFPS service code for the order.String (4)
CFPSId_BR
NoSalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more
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_BRYes/No flag showing whether the customer is the final user.Enum
CustVendFinalUser_BR
NoYes (enum)
NoSalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FineCode_BRFine code applied to the order.String
CustFineCode_BR
NoCustFineSetup_BR.FineCodeSalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more
FiscalDocumentType_BRFiscal document type for the order.Int64
RefRecId
NoFiscalDocumentType_BR.RecIdSalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more
GenerateIncomingFiscalDocument_BRYes/No flag for generating an incoming fiscal document.Enum
GenerateIncomingFiscalDocument_BR
NoYes (enum)
NoSalesTableBRBiEntity
InterestCode_BRInterest code applied to the order.String
CustInterestCode_BR
NoCustInterestSetup_BR.InterestCodeSalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more
InvoiceRefRecID_BRCustomer invoice referenced by the order.Int64
RefRecId
NoCustInvoiceJour.RecIdSalesTableBRBiEntity
IsServiceLocationForeign_BRYes/No flag showing whether the service location is abroad.Enum
ServiceLocationForeign_BR
NoYes (enum)
NoSalesTableBRBiEntity
MissingNIFReasonType_BRReason why no foreigner ID (NIF) was given.Enum
MissingNIFReasonType_BR (enum)
NoSalesTableBRBiEntity
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
PresenceTypeHow the buyer was present in the sale, such as in person, internet or telesales.Enum
EFDocPresenceType_BR (enum)
NoSalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more
PurposeOfReturn_BRPurpose of the return: refusal or return.Enum
PurposeOfReturn_BR (enum)
NoSalesTableBRBiEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoSalesTableBRBiEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SalesPurchOperationType_BROperation type of the order.Int64
SalesPurchOperationTypeRecId_BR
NoSalesPurchOperationType_BR.RecIdSalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more
ServiceCodeOnDlvAddress_BRYes/No flag for taking the service code from the delivery address.Enum
TaxServiceCodeOnDlvAddress_BR
NoYes (enum)
NoSalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more
ServiceLocationDomestic_BRCity of the service location when it is in Brazil.Int64
RefRecId
NoLogisticsAddressCity.RecIdSalesTableBRBiEntity
ServiceLocationNonDomestic_BRCountry or region of the service location when it is abroad.String
LogisticsAddressCountryRegionId
NoLogisticsAddressCountryRegion.CountryRegionIdSalesTableBRBiEntity
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
TaxServiceCode_BRService code for the order.String
TaxServiceCodeId_BR
NoSalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more
ThirdPartySalesDigitalPlatformYes/No flag showing whether the sale went through a third-party digital platform or marketplace.Enum
ThirdPartySalesDigitalPlatform_BR
NoYes (enum)
NoSalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 2 more
ThirdPartySalesDigitalPlatformCNPJCNPJ tax number of the digital platform provider.String (20)
ThirdPartySalesDigitalPlatformCNPJ_BR
NoSalesTableBRBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 2 more
TotalReturn_BRYes/No flag for a full refusal of the goods.Enum
TotalReturn_BR
NoYes (enum)
NoSalesTableBRBiEntity

Indexes (3)

Relations (9)

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

  • CFPSTable_BR → CFPSTable_BR

    Join on CFPSId_BR = CFPSTable_BR.CFPSId

    Many SalesTable_BR records → zero or one CFPSTable_BR record

  • CustFineSetup_BR → CustFineSetup_BR

    Join on FineCode_BR = CustFineSetup_BR.FineCode

    Many SalesTable_BR records → zero or one CustFineSetup_BR record

  • CustInterestSetup_BR → CustInterestSetup_BR

    Join on InterestCode_BR = CustInterestSetup_BR.InterestCode

    Many SalesTable_BR records → zero or one CustInterestSetup_BR record

  • FiscalDocumentType_BR → FiscalDocumentType_BR

    Join on FiscalDocumentType_BR = FiscalDocumentType_BR.RecId

    Many SalesTable_BR records → zero or one FiscalDocumentType_BR record

  • InvoiceRefRecID_BR → CustInvoiceJour

    Join on InvoiceRefRecID_BR = CustInvoiceJour.RecId

    Many SalesTable_BR records → zero or one CustInvoiceJour record

  • SalesPurchOperationType_BR → SalesPurchOperationType_BR

    Join on SalesPurchOperationType_BR = SalesPurchOperationType_BR.RecId

    Many SalesTable_BR records → zero or one SalesPurchOperationType_BR record

  • SalesTable → SalesTable

    Join on SalesTable = SalesTable.RecId

    Zero or one SalesTable_BR record → exactly one SalesTable record

  • LogisticsAddressCity → LogisticsAddressCity

    Join on ServiceLocationDomestic_BR = LogisticsAddressCity.RecId

    Many SalesTable_BR records → exactly one LogisticsAddressCity record

  • LogisticsAddressCountryRegion → LogisticsAddressCountryRegion

    Join on ServiceLocationNonDomestic_BR = LogisticsAddressCountryRegion.CountryRegionId

    Many 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.

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

Email sales@drdynamics.co.uk