Table

MCRReturnSalesTableHistory

Return orders

Stores extra return order details for a sales order. It is keyed by a reference to the sales order record. It records whether the return is an exchange, how advance credit or advance exchange is handled, and the original sales order.

Table name
MCRReturnSalesTableHistory
Module
Commerce transactions and orders
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
LogisticsBasic
Primary index
None
Replacement key
SalesTableIdx
Key fields
SalesTable
Model
Foundation

Fields (11)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesTableSystem record ID of the sales order this record belongs to.Int64
MCRSalesTableRefRecId
YesSalesTable.RecIdNone
AdvanceCreditYes/no setting for advance credit on the return.Enum
MCRAdvanceCredit
NoYes (enum)
NoNone
AdvanceExchangeHow an advance exchange is handled: blank, hold for receipt or release exchange.Enum
MCRAdvanceExchange (enum)
NoNone
ApplyCreditToExchangeYes/no setting for applying credit to the exchange.Enum
MCRApplyCreditToExchange
NoYes (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
IsExchangeShows whether the return is an exchange.Enum
NoYes (enum)
NoNone
OriginalSalesIdSales order that the return refers back to.String (20)
MCROriginalSalesId
NoSalesTable.SalesIdNone
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

  • SalesTableIdxReplacement key

    SalesTable

    Unique, alternate key.

Relations (2)

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

  • OriginalSalesId → SalesTable

    Join on OriginalSalesId = SalesTable.SalesId

    Many MCRReturnSalesTableHistory records → exactly one SalesTable record

  • SalesTable → SalesTable

    Join on SalesTable = SalesTable.RecId

    Zero or one MCRReturnSalesTableHistory record → exactly one SalesTable record

Get this data out

No public entity reads from MCRReturnSalesTableHistory. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk