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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CFPSId_BRCFPS code of the order.String (4)
CFPSId_BR
NoNone
CustFinalUser_BRYes or no choice for whether the customer is the final user.Enum
CustVendFinalUser_BR
NoYes (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FineCode_BRFine code, pointing to the fine codes setup.String
CustFineCode_BR
NoCustFineSetup_BR.FineCodeNone
FiscalDocumentType_BRFiscal document type, pointing to the fiscal document types table.Int64
RefRecId
NoFiscalDocumentType_BR.RecIdNone
InterestCode_BRInterest code, pointing to the interest codes setup.String
CustInterestCode_BR
NoCustInterestSetup_BR.InterestCodeNone
InvoiceRefRecID_BRReference to the customer invoice journal record.Int64
RefRecId
NoCustInvoiceJour.RecIdNone
MCRSalesTableCreatedDateTimeDate and time when the order was created.UtcDateTime
DateTimeAccepted
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
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
SalesIdSales order number, pointing to the sales order history.String (20)
SalesId
YesMCRHistSalesTable.SalesIdNone
SalesPurchOperationType_BROperation type, pointing to the operation type table.Int64
SalesPurchOperationTypeRecId_BR
NoSalesPurchOperationType_BR.RecIdNone
ServiceCodeOnDlvAddress_BRYes or no choice for whether the service code is taken from the delivery address.Enum
TaxServiceCodeOnDlvAddress_BR
NoYes (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxServiceCode_BRTax service code of the order.String
TaxServiceCodeId_BR
NoNone

Relations (6)

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

  • CustFineSetup_BR → CustFineSetup_BR

    Join on FineCode_BR = CustFineSetup_BR.FineCode

    One or more MCRHistSalesTable_BR records → zero or one CustFineSetup_BR record

  • CustInterestSetup_BR → CustInterestSetup_BR

    Join on InterestCode_BR = CustInterestSetup_BR.InterestCode

    Many MCRHistSalesTable_BR records → zero or one CustInterestSetup_BR record

  • FiscalDocumentType_BR → FiscalDocumentType_BR

    Join on FiscalDocumentType_BR = FiscalDocumentType_BR.RecId

    Many MCRHistSalesTable_BR records → zero or one FiscalDocumentType_BR record

  • InvoiceRefRecID_BR → CustInvoiceJour

    Join on InvoiceRefRecID_BR = CustInvoiceJour.RecId

    Many MCRHistSalesTable_BR records → zero or one CustInvoiceJour record

  • MCRHistSalesTable → MCRHistSalesTable

    Join on SalesId = MCRHistSalesTable.SalesId

    Zero or one MCRHistSalesTable_BR record → exactly one MCRHistSalesTable record

  • SalesPurchOperationType_BR → SalesPurchOperationType_BR

    Join on SalesPurchOperationType_BR = SalesPurchOperationType_BR.RecId

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

Email sales@drdynamics.co.uk