Table

MCRCustPaymTable

Customer payments

Holds payment lines taken from customers, such as cash, cheque, credit card, gift card, loyalty card, on-account and refund cheque. Each line has an amount, a payment type and a status. Lines can link to a customer, a sales order line, a card or payment method setup, a payment schedule, a customer credit card or a free text invoice. A line can also point to another payment line when it is a refund.

Table name
MCRCustPaymTable
Module
Commerce payments
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
MCRPayment
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (40)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AllowAlternateReturnPaymentsYes or no flag that appears to allow other payment methods for returns.Enum
NoYes (enum)
NoNone
AmountAmount of the payment, in the payment currency.Real
AmountCur
NoMCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more
CardTypeIdCard type used for the payment. It points to the card setup for the payment method and channel.String
RetailStoreCardTypeId
NoRetailStoreTenderTypeCardTable.cardTypeIdMCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more
ChannelRetail channel the payment belongs to.Int64
RetailChannelRecId
YesRetailChannelTable.RecIdNone
CheckAuthorizedShows whether the cheque has been authorised (yes or no).Enum
NoYes (enum)
NoMCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more
CheckNumberNumber of the cheque used for the payment.String
MCRCheckNumber
NoMCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more
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
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoNone
CurrencyCodeCurrency of the payment.String (3)
CustCurrencyCode
NoCurrency.CurrencyCodeMCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more
CustAccountCustomer account that made the payment.String (20)
CustAccount
NoCustTable.AccountNumMCRContinuityCustomerPaymentEntityMCRCustomerInvoicePaymentEntityMCRInstallmentPlanCustomerPaymentEntity
CustPaymTypeKind of payment, for example on-account, cash, cheque, credit card, refund cheque, gift card or loyalty card.Enum
MCRCustPaymType (enum)
NoMCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
IsCreditCardProcessedYes or no flag that appears to show whether the credit card payment has been processed.Enum
NoYes (enum)
NoMCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more
IsNonRecurringYes or no flag that marks the payment as non-recurring.Enum
NoYes (enum)
NoNone
isPlanRefundYes or no flag that marks the payment as a plan refund.Enum
NoYes (enum)
NoMCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more
IsPrepayYes or no flag that marks the payment as a prepayment.Enum
MCRIsPrePay
NoYes (enum)
NoMCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more
LineNumLine number that orders the payment lines.Real
LineNum
NoMCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 6 more
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
ModifiedTransactionIdA system number for the database transaction that last changed the record. System field.Int64
ModifiedTransactionId
NoNone
NumAuthRetryNumber of times authorisation has been retried for this payment.Integer
MCRCCNumAuthRetries
NoMCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more
OnAccountAuthorizedShows whether the on-account payment has been authorised (yes or no).Enum
NoYes (enum)
NoMCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more
OrigRefundRecIDSystem record ID of the customer payment that this refund relates to.Int64
MCRCustPaymTableRefRecId
NoMCRCustPaymTable.RecIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymInfoRecIdSystem record ID of the related customer credit card record. Use it together with the reference table ID.Int64
RefRecId
NoNone
PaymInfoTableIdID of the table that the payment information reference points to, which is the customer credit card table.Integer
RefTableId
NoNone
PaymSchedIDPayment schedule linked to this payment.String (30)
PaymSchedId
NoPaymSched.NameMCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more
PercentAmountPercentage value held for the payment.Real
Percent
NoMCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more
PostedAmountAmount of the payment that has been posted.Real
AmountCur
NoMCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more
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
RefRecIdSystem record ID of the related record, such as a customer free text invoice. Use it together with the table ID.Int64
MCRRelatedTableRefRecId
YesNone
RefTableIdID of the table that the record reference points to, such as the free text invoice table.Integer
RefTableId
YesNone
RoundingDifferenceAmount of a rounding difference held on the payment line.low confidenceReal
Amount
NoNone
SalesLineSystem record ID of the sales order line the payment relates to.Int64
SalesLineRefRecId
NoSalesLine.RecIdNone
StatusWhere the payment stands: not submitted, authorised, declined, posted or paid.Enum
MCRCustPaymStatus (enum)
NoMCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TenderTypeIdPayment method used, taken from the retail payment method and card setup.String
MCRRetailStoreTenderTypeId
YesRetailStoreTenderTypeCardTable.tenderTypeIdRetailStoreTenderTypeTable.tenderTypeIdMCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more

Indexes (4)

Relations (18)

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

  • CreditCardCust → CreditCardCust

    Join on PaymInfoTableId = CreditCardCust.TableId, PaymInfoRecId = CreditCardCust.RecId

    Zero or one MCRCustPaymTable record → exactly one CreditCardCust record

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many MCRCustPaymTable records → exactly one Currency record

  • CustInvoiceTable → CustInvoiceTable

    Join on RefRecId = CustInvoiceTable.RecId, RefTableId = CustInvoiceTable.TableId

    Many MCRCustPaymTable records → zero or one CustInvoiceTable record

  • CustPaymSchedLine → CustPaymSchedLine

    Join on RefTableId = CustPaymSchedLine.TableId, RefRecId = CustPaymSchedLine.RecId

    Many MCRCustPaymTable records → zero or one CustPaymSchedLine record

  • CustTable → CustTable

    Join on CustAccount = CustTable.AccountNum

    Many MCRCustPaymTable records → exactly one CustTable record

  • InvoiceAccount → SalesTable

    Join on CustAccount = SalesTable.InvoiceAccount, RefTableId = SalesTable.TableId, RefRecId = SalesTable.RecId

    Many MCRCustPaymTable records → zero or one SalesTable record

  • LedgerJournalTrans → LedgerJournalTrans

    Join on LedgerJournalTrans.AccountType = LedgerJournalACType::Cust, RefRecId = LedgerJournalTrans.RecId, RefTableId = LedgerJournalTrans.TableId

    Many MCRCustPaymTable records → zero or one LedgerJournalTrans record

  • MCRContinuityCustHeader → MCRContinuityCustHeader

    Join on RefTableId = MCRContinuityCustHeader.TableId, RefRecId = MCRContinuityCustHeader.RecId

    Many MCRCustPaymTable records → zero or one MCRContinuityCustHeader record

  • MCRCustCreditTable → MCRCustCreditTable

    Join on CustAccount = MCRCustCreditTable.CustAccount, RefTableId = MCRCustCreditTable.TableId, RefRecId = MCRCustCreditTable.RecId

    Many MCRCustPaymTable records → zero or one MCRCustCreditTable record

  • MCRCustPaymTable_OrigRefund → MCRCustPaymTable

    Join on OrigRefundRecID = MCRCustPaymTable.RecId

    Many MCRCustPaymTable records → zero or one MCRCustPaymTable record

  • MCRInstallmentPlanSalesTable → MCRInstallmentPlanSalesTable

    Join on RefTableId = MCRInstallmentPlanSalesTable.TableId, RefRecId = MCRInstallmentPlanSalesTable.RecId

    Many MCRCustPaymTable records → zero or one MCRInstallmentPlanSalesTable record

  • PaymSched → PaymSched

    Join on PaymSchedID = PaymSched.Name

    Many MCRCustPaymTable records → exactly one PaymSched record

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Zero or one MCRCustPaymTable record → exactly one RetailChannelTable record

  • RetailGiftCardTable → RetailGiftCardTable

    Join on PaymInfoRecId = RetailGiftCardTable.RecId, PaymInfoTableId = RetailGiftCardTable.TableId

    Zero or one MCRCustPaymTable record → exactly one RetailGiftCardTable record

  • RetailStoreTenderTypeCardTable → RetailStoreTenderTypeCardTable

    Join on CardTypeId = RetailStoreTenderTypeCardTable.cardTypeId, TenderTypeId = RetailStoreTenderTypeCardTable.tenderTypeId, Channel = RetailStoreTenderTypeCardTable.Channel

    Zero or one MCRCustPaymTable record → exactly one RetailStoreTenderTypeCardTable record

  • RetailStoreTenderTypeTable → RetailStoreTenderTypeTable

    Join on TenderTypeId = RetailStoreTenderTypeTable.tenderTypeId, Channel = RetailStoreTenderTypeTable.Channel

    Many MCRCustPaymTable records → exactly one RetailStoreTenderTypeTable record

  • SalesTable → SalesTable

    Join on RefTableId = SalesTable.TableId, RefRecId = SalesTable.RecId

    Many MCRCustPaymTable records → zero or one SalesTable record

  • SalesLine → SalesLine

    Join on SalesLine = SalesLine.RecId

    Cardinality not set in the metadata.

Get this data out

Tables are not exposed directly. These public entities read from MCRCustPaymTable; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk