Table
MCRHistSalesLine_BR
Sales order line information history for Brazil
History of sales order line data used for Brazil. It stores fiscal values such as CFOP codes, fiscal document type, service code and a SUFRAMA discount. It points to the original sales line. It has no defined key.
- Table name
MCRHistSalesLine_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 (12)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CFOPTable_BRCFOP code, pointing to the CFOP codes table. | Int64RefRecId | No | CFOPTable_BR.RecId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DeliveryCFOPTable_BRCFOP code for delivery, pointing to the CFOP codes table. | Int64RefRecId | No | CFOPTable_BR.RecId | None |
FiscalDocumentType_BRFiscal document type, pointing to the fiscal document types table. | Int64FiscalDocumentTypeRecID_BR | No | FiscalDocumentType_BR.RecId | None |
MCRSalesLineCreatedDateTimeDate and time when the sales line 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 | |
SalesLineRefRecIdReference to the sales order line this history row belongs to. | Int64SalesLineRefRecId | No | SalesLine.RecId | None |
SuframaDiscount_BRSUFRAMA discount percentage on the line. | RealSalesLinePercent | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxServiceCode_BRTax service code of the line. | StringTaxServiceCodeId_BR | No | None |
Relations (4)
Each relation joins MCRHistSalesLine_BR to another table on the fields shown.
CFOPTable_BR→CFOPTable_BRJoin on
CFOPTable_BR = CFOPTable_BR.RecIdOne or more MCRHistSalesLine_BR records → exactly one CFOPTable_BR record
DeliveryCFOPTable_BR→CFOPTable_BRJoin on
DeliveryCFOPTable_BR = CFOPTable_BR.RecIdMany MCRHistSalesLine_BR records → zero or one CFOPTable_BR record
FiscalDocumentType_BR→FiscalDocumentType_BRJoin on
FiscalDocumentType_BR = FiscalDocumentType_BR.RecIdMany MCRHistSalesLine_BR records → exactly one FiscalDocumentType_BR record
SalesLine→SalesLineJoin on
SalesLineRefRecId = SalesLine.RecIdZero or one MCRHistSalesLine_BR record → exactly one SalesLine record
Get this data out
No public entity reads from MCRHistSalesLine_BR. Its data is only reachable through the application, a custom entity or a database export.
Need help with MCRHistSalesLine_BR in a report, an integration or a migration? Talk to Dr Dynamics.