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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CFOPTable_BRCFOP code, pointing to the CFOP codes table.Int64
RefRecId
NoCFOPTable_BR.RecIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeliveryCFOPTable_BRCFOP code for delivery, pointing to the CFOP codes table.Int64
RefRecId
NoCFOPTable_BR.RecIdNone
FiscalDocumentType_BRFiscal document type, pointing to the fiscal document types table.Int64
FiscalDocumentTypeRecID_BR
NoFiscalDocumentType_BR.RecIdNone
MCRSalesLineCreatedDateTimeDate and time when the sales line 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
SalesLineRefRecIdReference to the sales order line this history row belongs to.Int64
SalesLineRefRecId
NoSalesLine.RecIdNone
SuframaDiscount_BRSUFRAMA discount percentage on the line.Real
SalesLinePercent
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxServiceCode_BRTax service code of the line.String
TaxServiceCodeId_BR
NoNone

Relations (4)

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

  • CFOPTable_BR → CFOPTable_BR

    Join on CFOPTable_BR = CFOPTable_BR.RecId

    One or more MCRHistSalesLine_BR records → exactly one CFOPTable_BR record

  • DeliveryCFOPTable_BR → CFOPTable_BR

    Join on DeliveryCFOPTable_BR = CFOPTable_BR.RecId

    Many MCRHistSalesLine_BR records → zero or one CFOPTable_BR record

  • FiscalDocumentType_BR → FiscalDocumentType_BR

    Join on FiscalDocumentType_BR = FiscalDocumentType_BR.RecId

    Many MCRHistSalesLine_BR records → exactly one FiscalDocumentType_BR record

  • SalesLine → SalesLine

    Join on SalesLineRefRecId = SalesLine.RecId

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

Email sales@drdynamics.co.uk