Table
MCRHistSalesTable_BR
Sales order header information history for Brazil
History of sales order header data used for Brazil. It stores fiscal and finance values such as CFPS code, fine and interest codes, fiscal document type, operation type and the linked invoice. It links to sales order history. It has no defined key.
- Table name
MCRHistSalesTable_BR- Module
Inventory- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (16)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CFPSId_BRCFPS code of the order. | String (4)CFPSId_BR | No | None | |
CustFinalUser_BRYes or no choice for whether the customer is the final user. | EnumCustVendFinalUser_BRNoYes (enum) | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FineCode_BRFine code, pointing to the fine codes setup. | StringCustFineCode_BR | No | CustFineSetup_BR.FineCode | None |
FiscalDocumentType_BRFiscal document type, pointing to the fiscal document types table. | Int64RefRecId | No | FiscalDocumentType_BR.RecId | None |
InterestCode_BRInterest code, pointing to the interest codes setup. | StringCustInterestCode_BR | No | CustInterestSetup_BR.InterestCode | None |
InvoiceRefRecID_BRReference to the customer invoice journal record. | Int64RefRecId | No | CustInvoiceJour.RecId | None |
MCRSalesTableCreatedDateTimeDate and time when the order was created. | UtcDateTimeDateTimeAccepted | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | 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 | |
SalesIdSales order number, pointing to the sales order history. | String (20)SalesId | Yes | MCRHistSalesTable.SalesId | None |
SalesPurchOperationType_BROperation type, pointing to the operation type table. | Int64SalesPurchOperationTypeRecId_BR | No | SalesPurchOperationType_BR.RecId | None |
ServiceCodeOnDlvAddress_BRYes or no choice for whether the service code is taken from the delivery address. | EnumTaxServiceCodeOnDlvAddress_BRNoYes (enum) | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxServiceCode_BRTax service code of the order. | StringTaxServiceCodeId_BR | No | None |
Relations (6)
Each relation joins MCRHistSalesTable_BR to another table on the fields shown.
CustFineSetup_BR→CustFineSetup_BRJoin on
FineCode_BR = CustFineSetup_BR.FineCodeOne or more MCRHistSalesTable_BR records → zero or one CustFineSetup_BR record
CustInterestSetup_BR→CustInterestSetup_BRJoin on
InterestCode_BR = CustInterestSetup_BR.InterestCodeMany MCRHistSalesTable_BR records → zero or one CustInterestSetup_BR record
FiscalDocumentType_BR→FiscalDocumentType_BRJoin on
FiscalDocumentType_BR = FiscalDocumentType_BR.RecIdMany MCRHistSalesTable_BR records → zero or one FiscalDocumentType_BR record
InvoiceRefRecID_BR→CustInvoiceJourJoin on
InvoiceRefRecID_BR = CustInvoiceJour.RecIdMany MCRHistSalesTable_BR records → zero or one CustInvoiceJour record
MCRHistSalesTable→MCRHistSalesTableJoin on
SalesId = MCRHistSalesTable.SalesIdZero or one MCRHistSalesTable_BR record → exactly one MCRHistSalesTable record
SalesPurchOperationType_BR→SalesPurchOperationType_BRJoin on
SalesPurchOperationType_BR = SalesPurchOperationType_BR.RecIdMany MCRHistSalesTable_BR records → zero or one SalesPurchOperationType_BR record
Get this data out
No public entity reads from MCRHistSalesTable_BR. Its data is only reachable through the application, a custom entity or a database export.
Need help with MCRHistSalesTable_BR in a report, an integration or a migration? Talk to Dr Dynamics.