Table

MCRHistSalesLine

Sales order line history

Holds history copies of sales order lines, one row per order line. The key is the sales order number plus the line number, and each row links to the sales order history header (MCRHistSalesTable) and to the original sales line. It carries item, quantity, price, delivery, tax, project, shipping carrier and return details for the line.

Table name
MCRHistSalesLine
Module
Commerce transactions and orders
Table group
WorksheetLine
Table type
Regular
Data per company
Yes
Configuration key
MCRCallCenter
Primary index
SalesLineIdx
Replacement key
None
Key fields
SalesId, LineNum, RecId
Model
Foundation

Fields (150)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesIdSales order number; links to the sales order history header and is part of the key.String (20)
SalesIdBase
YesMCRHistSalesTable.SalesIdNone
LineNumLine number within the sales order; part of the key.Real
LineNum
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
ActivityNumberProject activity number linked to the line.String (50)
ProjActivityNumber
NoNone
AddressRefRecIdSystem record ID of the record that the address reference points to.Int64
AddressRefRecId
NoNone
AddressRefTableIdID of the table that the address reference points to.Integer
AddressRefTableId
NoNone
BarCodeBar code value for the item on the line.String (80)
SalesBarCode
NoNone
BarCodeTypeBar code setup used for the line's bar code.String
BarcodeSetupId
NoNone
BlockedYes/No flag showing whether the line is stopped.Enum
LineStopped
NoYes (enum)
NoNone
CaseTaggingYes/No flag for RFID tagging at case level.Enum
RFIDCaseTagging
NoYes (enum)
NoNone
CompleteYes/No flag that stops the line being delivered in parts.Enum
LineComplete
NoYes (enum)
NoNone
ConfirmedDlvShip date held on the line.Date
SalesShippingDate
NoNone
CostPriceCost price used for a returned item.Real
ReturnCostPrice
NoNone
CountyOrigDestCounty of origin or destination of the goods.String (30)
AddressCountyOrigDest
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CurrencyCodeCurrency code of the line.String (3)
CustCurrencyCode
NoNone
CustAccountCustomer account of the order, pointing to the customer record.String (20)
CustAccount
YesCustTable.AccountNumNone
CustGroupCustomer group ID.String
CustGroupId
NoNone
CustomerLineNumLine number as used by the customer.Integer
CustLineNum
NoNone
CustomerRefCustomer's own reference for the line.String (60)
CustRefLine
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionLink to the default financial dimension set for the line.Int64
DimensionDefault
NoDimensionAttributeValueSet.RecIdNone
DeliveryAddressDelivery address as a single text value.String (250)
Addressing
NoNone
DeliveryCityCity of the delivery address.String (60)
AddressCity
NoNone
DeliveryCountryRegionIdCountry or region of the delivery address.String
AddressCountryRegionId
NoNone
DeliveryCountyCounty of the delivery address.String (30)
AddressCountyId
NoNone
DeliveryDateControlTypeMethod used to control the delivery date, such as sales lead time, ATP or CTP.Enum
SalesDeliveryDateControlType (enum)
NoNone
DeliveryNameName of the party receiving the delivery.String (160)
CustName
NoNone
DeliveryPostalAddressLink to the postal address record used for delivery.Int64
LogisticsPostalAddressRecId
NoLogisticsPostalAddress.RecIdNone
DeliveryStateState of the delivery address.String
LogisticsAddressStateId
NoNone
DeliveryStreetStreet of the delivery address.String (250)
AddressStreet
NoNone
DeliveryTypeShows whether the line is delivered from stock or by direct delivery.Enum
TradeLineDlvTypeId
TradeLineDlvType (enum)
NoNone
DeliveryZipCodeZIP or postal code of the delivery address.String
LogisticsAddressZipCodeId
NoNone
DlvModeMode of delivery for the line.String
DlvModeId
NoNone
EInvoiceAccountCodeDimension account code used for electronic invoicing.String (35)
EInvoiceAccountCode
NoNone
ExpectedRetQtyQuantity expected back on a return line.Real
ReturnExpectedRetQty
NoNone
ExternalItemIdItem number used by the customer or an external party.String (20)
SalesExternalItemId
NoNone
InterCompanyInventTransIdLot reference for the matching intercompany transaction.String (20)
InventRefTransId
NoNone
InterCompanyOriginShows whether the intercompany order is the source or derived from another one.Enum
InterCompanyOrigin (enum)
NoNone
InventDeliverNowQuantity to deliver now, in inventory units.Real
InventQty
NoNone
InventDimIdLink to the inventory dimensions of the line.String (20)
InventDimId
NoInventDim.inventDimIdNone
InventRefIdNumber of the order or document that this line refers to.String (20)
InventRefId
NoNone
InventRefTransIdLot ID of the referenced transaction.String (20)
InventRefTransId
NoNone
InventRefTypeType of the referenced document, such as sales order, purchase order or production.Enum
InventRefType (enum)
NoNone
InventTransIdInventory lot ID of the line.String (20)
InventTransId
NoNone
InventTransIdReturnLot ID of the original line for a return.String (20)
InventTransIdReturn
NoNone
ItemBOMIdBill of materials ID used for the item.String (20)
ItemBOMId
NoNone
ItemIdItem number on the line.String (20)
ItemIdSmall
YesNone
ItemReplacedYes/No flag showing whether the returned item is replaced.Enum
ReturnItemReplaced
NoYes (enum)
NoNone
ItemRouteIdRoute ID used for the item.String (20)
ItemRouteId
NoNone
ItemTaggingYes/No flag for RFID tagging at item level.Enum
RFIDItemTagging
NoYes (enum)
NoNone
LedgerDimensionLink to the ledger account and dimension combination for the line.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
LineAmountNet amount of the line.Real
SalesLineAmount
NoNone
LineDeliveryTypeShows whether the line has one delivery, several deliveries, or is a delivery line.Enum
LineDeliveryType (enum)
NoNone
LineDiscDiscount amount on the line.Real
SalesLineDisc
NoNone
LineHeaderHeading text for the line.String (80)
LineHeader
NoNone
LinePercentDiscount percentage on the line.Real
SalesLinePercent
NoNone
ManualEntryChangepolicyLink to a price and discount change policy record; labelled Dummy.low confidenceInt64
PriceDiscPolicyManual
NoPriceDiscChangePolicy.RecIdNone
MatchingAgreementLineLink to the agreement line that matches this sales line.Int64
AgreementLineRecId
NoAgreementLine.RecIdNone
MCRContinuityScheduleIdID of the continuity schedule for the line.String (20)
MCRContinuityScheduleID
NoNone
MCRCreateReplacementYes/No flag for creating a replacement.Enum
MCRCreateReplacement
NoYes (enum)
NoNone
MCRCustInvoiceTransRecIdWhole number holding a record ID, probably of a customer invoice transaction.low confidenceInt64
SysInt64
NoNone
MCRDropShipCommentFree-text comment for a direct delivery.String (250)
MCRDropShipComment
NoNone
MCRDropShipmentYes/No flag showing whether the line is a direct delivery.Enum
MCRDropShipment
NoYes (enum)
NoNone
MCRDropShipStatusProgress of a direct delivery, from to be delivered through purchase order created, released and shipped.Enum
MCRDropShipStatus (enum)
NoNone
MCRExchangeInventRefTransIdLot ID of the exchange transaction.String (20)
MCRExchangeInventRefTransId
NoNone
MCRExpediteExpedite code for the line.String
MCRExpedite
NoNone
MCRInstallmentEligibleYes/No flag showing whether the line can be paid in instalments.Enum
MCRInstallmentEligible
NoYes (enum)
NoNone
MCRInventDimIdOrigOriginal inventory dimension ID of the line.String (20)
InventDimId
NoNone
MCRInvoicedInTotalTotal quantity invoiced on the line.Real
SalesQty
NoNone
MCRItemIdOrigItem number originally on the line.String (20)
ItemIdSmall
NoNone
MCRLineDiscGroupLine discount group of the line.String
CustLineDiscCode
NoNone
MCRLineTypeKind of line: catalog free gift, regular or continuity parent.Enum
MCRLineType (enum)
NoNone
MCRListPriceOriginal unit price before any change.Real
MCROriginalUnitPrice
NoNone
MCRListPriceCurrencyCodeCurrency code for the original unit price.String (3)
CustCurrencyCode
NoNone
MCRParentLotIdLot ID of the parent line.String (20)
InventTransId
NoNone
MCRPickWaveRefReference to the pick wave for the line.String (20)
MCRPickingWave
NoNone
MCRPriceGroupIdPrice group ID for the line.String
CustPriceGroup
NoNone
MCRPriceOverrideYes/No flag showing whether the price was overridden.Enum
NoYes (enum)
NoNone
MCRReasonCodeSubcode that gives a reason; works together with the info code.String
RetailInformationSubcodeId
NoRetailInformationSubcodeTable.subcodeIdNone
MCRSalesLineCreatedDateTimeDate and time the line was created.UtcDateTime
DateTimeAccepted
NoNone
MCRSalesUOMSales unit of measure value for the line.low confidenceReal
MCRSalesUOM
NoNone
MCRShipToAccountRefCustomer account that the line ships to.String (20)
CustAccount
NoNone
MCRSourceIdSource code of the line.String (20)
MCRSourceID
NoNone
MCRUpSellOriginWhere the line came from: item cross-sell, item up-sell or catalog.Enum
MCRUpSellOrigin (enum)
NoNone
MCRUpSellOriginRefReference to the item or offer behind the up-sell origin; the label does not match the data type.low confidenceString (20)
MCRItemIdOfferId
NoNone
MCRWMSStatusABC class of the line for warehouse management.Enum
ABC (enum)
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
MultiLnDiscMultiline discount amount.Real
SalesMultiLnDisc
NoNone
MultiLnPercentMultiline discount percentage.Real
SalesMultiLnPercent
NoNone
NameFree text describing the line.String (1000)
ItemFreeTxt
NoNone
OverDeliveryPctPercentage by which delivery may exceed the ordered quantity.Real
SalesOverDeliveryPct
NoNone
PackingUnitPacking unit of the item.String
InventPackingUnit
NoNone
PackingUnitQtyQuantity held in one packing unit.Real
InventPackingUnitQty
NoNone
PalletTaggingYes/No flag for RFID tagging at pallet level.Enum
RFIDPalletTagging
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PortPort used for foreign trade reporting.String
IntrastatPortId
NoNone
PriceUnitQuantity that the unit price applies to.Real
PriceUnit
NoNone
ProjCategoryIdProject category of the line.String (30)
ProjCategoryId
NoNone
ProjIdProject ID linked to the line.String (20)
ProjId
NoNone
ProjLinePropertyIdProject line property of the line.String
ProjLinePropertyId
NoNone
ProjTransIdProject transaction ID of the line.String (20)
ProjItemTransId
NoNone
PurchorderFormNumCustomer's requisition or purchase order number.String (20)
CustPurchaseOrder
NoNone
QtyOrderedOrdered quantity in inventory units.Real
InventQty
NoNone
ReceiptDateConfirmedConfirmed date the customer receives the goods.Date
SalesReceiptDateConfirmed
NoNone
ReceiptDateRequestedDate the customer asked to receive the goods.Date
SalesReceiptDateRequested
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RemainInventFinancialQuantity still to invoice, in inventory units.Real
InventQty
NoNone
RemainInventPhysicalQuantity still to deliver, in inventory units.Real
InventQty
NoNone
RemainSalesFinancialQuantity still to invoice, in sales units.Real
SalesQty
NoNone
RemainSalesPhysicalQuantity still to deliver, in sales units.Real
SalesQty
NoNone
ReservationHow stock is reserved for the line: manual, automatic or explosion.Enum
ItemReservation (enum)
NoNone
RetailInfocodeIdInfo code ID; works together with the subcode.String
RetailInfocodeId
NoRetailInformationSubcodeTable.infocodeIdNone
ReturnAllowReservationYes/No flag allowing reservation on a return line.Enum
ReturnAllowReservation
NoYes (enum)
NoNone
ReturnArrivalDateDate the returned goods actually arrived.Date
ReturnArrivalDate
NoNone
ReturnClosedDateDate the return was closed.Date
ReturnClosedDate
NoNone
ReturnDeadlineEstimated arrival date for a return.Date
ReturnDeadline
NoNone
ReturnDispositionCodeIdDisposition code for a returned item.String
ReturnDispositionCodeId
NoNone
ReturnStatusStatus of a return line, from expected to received, invoiced or cancelled.Enum
ReturnStatusLine (enum)
NoNone
SalesDeliverNowQuantity to deliver now, in sales units.Real
SalesQty
NoNone
SalesGroupSales group of the line.String
CommissSalesGroup
NoNone
SalesLineRefRecIdLink to the original sales line record.Int64
SalesLineRefRecId
NoSalesLine.RecIdNone
SalesMarkupCharges added to the line.Real
SalesMarkup
NoNone
SalesPriceUnit price of the item.Real
SalesPrice
NoNone
SalesQtyOrdered quantity in sales units.Real
SalesOrderedQty
NoNone
SalesStatusStatus of the line: open order, delivered, invoiced or cancelled.Enum
SalesStatus (enum)
NoNone
SalesTypeType of order, such as sales order, returned order, subscription or journal.Enum
SalesType (enum)
NoNone
SalesUnitUnit of measure used for selling.String
SalesUnit
NoNone
ScrapYes/No flag; its meaning is not stated beyond the name.low confidenceEnum
NoYes (enum)
NoNone
ServiceOrderIdService order linked to the line.String
SMAServiceOrderId
NoNone
ShipCarrierAccountCustomer's account number with the carrier.String (25)
ShipCarrierAccount
NoNone
ShipCarrierAccountCodeAccount code for the carrier.String (20)
ShipCarrierAccountCode
NoNone
ShipCarrierDlvTypeType of carrier service: miscellaneous, ground, air or pickup.Enum
ShipCarrierDlvType (enum)
NoNone
ShipCarrierIdID of the carrier.String
ShipCarrierId
NoNone
ShipCarrierNameName of the third-party carrier.String (100)
LogisticsShipCarrierName
NoNone
ShipCarrierPostalAddressLink to the carrier's postal address record.Int64
LogisticsPostalAddressRecId
NoLogisticsPostalAddress.RecIdNone
ShippingDateConfirmedConfirmed ship date.Date
SalesShippingDateConfirmed
NoNone
ShippingDateRequestedShip date the customer asked for.Date
SalesShippingDateRequested
NoNone
SkipUpdateSetting for skipping intercompany updates: no, internal, intercompany or both.Enum
InterCompanySkipUpdate (enum)
NoNone
StatProcIdStatistics procedure used for foreign trade reporting.String
IntrastatProcId
NoNone
StatTriangularDealYes/No flag marking a triangular trade deal.Enum
IntrastatTriangularDeal
NoYes (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxAutogeneratedYes/No flag showing whether tax was generated automatically.Enum
TaxAutoGenerated
NoYes (enum)
NoNone
TaxGroupSales tax group of the line.String
TaxGroup
NoNone
TaxItemGroupItem sales tax group of the line.String
TaxItemGroup
NoNone
TaxWithholdGroupWithholding tax group of the line.String
TaxWithholdGroup
NoNone
TransactionCodeTransaction code used for foreign trade reporting.String
IntrastatTransactionCodeId
NoNone
TransportTransport mode used for foreign trade reporting.String
IntrastatTransport
NoNone
UnderDeliveryPctPercentage by which delivery may fall short of the ordered quantity.Real
SalesUnderDeliveryPct
NoNone

Indexes (3)

Relations (12)

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

  • AgreementLine → AgreementLine

    Join on MatchingAgreementLine = AgreementLine.RecId

    Many MCRHistSalesLine records → zero or one AgreementLine record

  • Common → Common

    Join on AddressRefTableId = Common.TableId, AddressRefRecId = Common.RecId

    Many MCRHistSalesLine records → zero or one Common record

  • CustTable → CustTable

    Join on CustAccount = CustTable.AccountNum

    One or more MCRHistSalesLine records → exactly one CustTable record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many MCRHistSalesLine records → zero or one DimensionAttributeValueSet record

  • DeliveryPostalAddress_FK → LogisticsPostalAddress

    Join on DeliveryPostalAddress = LogisticsPostalAddress.RecId

    Many MCRHistSalesLine records → zero or one LogisticsPostalAddress record

  • InventDim → InventDim

    Join on InventDimId = InventDim.inventDimId

    Many MCRHistSalesLine records → exactly one InventDim record

  • LedgerDimension → DimensionAttributeValueCombination

    Join on LedgerDimension = DimensionAttributeValueCombination.RecId

    Many MCRHistSalesLine records → zero or one DimensionAttributeValueCombination record

  • MCRHistSalesTable → MCRHistSalesTable

    Join on SalesId = MCRHistSalesTable.SalesId

    Many MCRHistSalesLine records → exactly one MCRHistSalesTable record

  • MCRReasonCode → RetailInformationSubcodeTable

    Join on MCRReasonCode = RetailInformationSubcodeTable.subcodeId, RetailInfocodeId = RetailInformationSubcodeTable.infocodeId

    Many MCRHistSalesLine records → zero or one RetailInformationSubcodeTable record

  • PriceDiscChangePolicyRecId2 → PriceDiscChangePolicy

    Join on ManualEntryChangepolicy = PriceDiscChangePolicy.RecId

    Many MCRHistSalesLine records → zero or one PriceDiscChangePolicy record

  • SalesLine → SalesLine

    Join on SalesLineRefRecId = SalesLine.RecId

    Many MCRHistSalesLine records → zero or one SalesLine record

  • ShipCarrierPostalAddress_FK → LogisticsPostalAddress

    Join on ShipCarrierPostalAddress = LogisticsPostalAddress.RecId

    Many MCRHistSalesLine records → zero or one LogisticsPostalAddress record

Get this data out

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

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

Email sales@drdynamics.co.uk