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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SalesTableSystem record ID of the sales order this record belongs to. | Int64MCRSalesTableRefRecId | Yes | SalesTable.RecId | None |
AdvanceCreditYes/no setting for advance credit on the return. | EnumMCRAdvanceCreditNoYes (enum) | No | None | |
AdvanceExchangeHow an advance exchange is handled: blank, hold for receipt or release exchange. | EnumMCRAdvanceExchange (enum) | No | None | |
ApplyCreditToExchangeYes/no setting for applying credit to the exchange. | EnumMCRApplyCreditToExchangeNoYes (enum) | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
IsExchangeShows whether the return is an exchange. | EnumNoYes (enum) | No | None | |
OriginalSalesIdSales order that the return refers back to. | String (20)MCROriginalSalesId | No | SalesTable.SalesId | 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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
SalesTableIdxReplacement keyUnique, alternate key.
Relations (2)
Each relation joins MCRReturnSalesTableHistory to another table on the fields shown.
OriginalSalesId→SalesTableJoin on
OriginalSalesId = SalesTable.SalesIdMany MCRReturnSalesTableHistory records → exactly one SalesTable record
SalesTable→SalesTableJoin on
SalesTable = SalesTable.RecIdZero 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.