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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AllowAlternateReturnPaymentsYes or no flag that appears to allow other payment methods for returns. | EnumNoYes (enum) | No | None | |
AmountAmount of the payment, in the payment currency. | RealAmountCur | No | MCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more | |
CardTypeIdCard type used for the payment. It points to the card setup for the payment method and channel. | StringRetailStoreCardTypeId | No | RetailStoreTenderTypeCardTable.cardTypeId | MCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more |
ChannelRetail channel the payment belongs to. | Int64RetailChannelRecId | Yes | RetailChannelTable.RecId | None |
CheckAuthorizedShows whether the cheque has been authorised (yes or no). | EnumNoYes (enum) | No | MCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more | |
CheckNumberNumber of the cheque used for the payment. | StringMCRCheckNumber | No | MCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CreatedTransactionIdA system number for the database transaction that created the record. System field. | Int64CreatedTransactionId | No | None | |
CurrencyCodeCurrency of the payment. | String (3)CustCurrencyCode | No | Currency.CurrencyCode | MCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more |
CustAccountCustomer account that made the payment. | String (20)CustAccount | No | CustTable.AccountNum | MCRContinuityCustomerPaymentEntityMCRCustomerInvoicePaymentEntityMCRInstallmentPlanCustomerPaymentEntity |
CustPaymTypeKind of payment, for example on-account, cash, cheque, credit card, refund cheque, gift card or loyalty card. | EnumMCRCustPaymType (enum) | No | MCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
IsCreditCardProcessedYes or no flag that appears to show whether the credit card payment has been processed. | EnumNoYes (enum) | No | MCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more | |
IsNonRecurringYes or no flag that marks the payment as non-recurring. | EnumNoYes (enum) | No | None | |
isPlanRefundYes or no flag that marks the payment as a plan refund. | EnumNoYes (enum) | No | MCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more | |
IsPrepayYes or no flag that marks the payment as a prepayment. | EnumMCRIsPrePayNoYes (enum) | No | MCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more | |
LineNumLine number that orders the payment lines. | RealLineNum | No | MCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 6 more | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
ModifiedTransactionIdA system number for the database transaction that last changed the record. System field. | Int64ModifiedTransactionId | No | None | |
NumAuthRetryNumber of times authorisation has been retried for this payment. | IntegerMCRCCNumAuthRetries | No | MCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more | |
OnAccountAuthorizedShows whether the on-account payment has been authorised (yes or no). | EnumNoYes (enum) | No | MCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more | |
OrigRefundRecIDSystem record ID of the customer payment that this refund relates to. | Int64MCRCustPaymTableRefRecId | No | MCRCustPaymTable.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymInfoRecIdSystem record ID of the related customer credit card record. Use it together with the reference table ID. | Int64RefRecId | No | None | |
PaymInfoTableIdID of the table that the payment information reference points to, which is the customer credit card table. | IntegerRefTableId | No | None | |
PaymSchedIDPayment schedule linked to this payment. | String (30)PaymSchedId | No | PaymSched.Name | MCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more |
PercentAmountPercentage value held for the payment. | RealPercent | No | MCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more | |
PostedAmountAmount of the payment that has been posted. | RealAmountCur | No | MCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more | |
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 | |
RefRecIdSystem record ID of the related record, such as a customer free text invoice. Use it together with the table ID. | Int64MCRRelatedTableRefRecId | Yes | None | |
RefTableIdID of the table that the record reference points to, such as the free text invoice table. | IntegerRefTableId | Yes | None | |
RoundingDifferenceAmount of a rounding difference held on the payment line.low confidence | RealAmount | No | None | |
SalesLineSystem record ID of the sales order line the payment relates to. | Int64SalesLineRefRecId | No | SalesLine.RecId | None |
StatusWhere the payment stands: not submitted, authorised, declined, posted or paid. | EnumMCRCustPaymStatus (enum) | No | MCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TenderTypeIdPayment method used, taken from the retail payment method and card setup. | StringMCRRetailStoreTenderTypeId | Yes | RetailStoreTenderTypeCardTable.tenderTypeIdRetailStoreTenderTypeTable.tenderTypeId | MCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityMCRCustomerInvoicePaymentEntityand 2 more |
Indexes (4)
KeyRefTableId,RefRecId,CustPaymType,StatusNot unique.
CustIndexNot unique.
PaymInfoIdxPaymInfoTableId,PaymInfoRecIdNot unique.
LineNumIdxNot unique.
Relations (18)
Each relation joins MCRCustPaymTable to another table on the fields shown.
CreditCardCust→CreditCardCustJoin on
PaymInfoTableId = CreditCardCust.TableId,PaymInfoRecId = CreditCardCust.RecIdZero or one MCRCustPaymTable record → exactly one CreditCardCust record
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany MCRCustPaymTable records → exactly one Currency record
CustInvoiceTable→CustInvoiceTableJoin on
RefRecId = CustInvoiceTable.RecId,RefTableId = CustInvoiceTable.TableIdMany MCRCustPaymTable records → zero or one CustInvoiceTable record
CustPaymSchedLine→CustPaymSchedLineJoin on
RefTableId = CustPaymSchedLine.TableId,RefRecId = CustPaymSchedLine.RecIdMany MCRCustPaymTable records → zero or one CustPaymSchedLine record
CustTable→CustTableJoin on
CustAccount = CustTable.AccountNumMany MCRCustPaymTable records → exactly one CustTable record
InvoiceAccount→SalesTableJoin on
CustAccount = SalesTable.InvoiceAccount,RefTableId = SalesTable.TableId,RefRecId = SalesTable.RecIdMany MCRCustPaymTable records → zero or one SalesTable record
LedgerJournalTrans→LedgerJournalTransJoin on
LedgerJournalTrans.AccountType = LedgerJournalACType::Cust,RefRecId = LedgerJournalTrans.RecId,RefTableId = LedgerJournalTrans.TableIdMany MCRCustPaymTable records → zero or one LedgerJournalTrans record
MCRContinuityCustHeader→MCRContinuityCustHeaderJoin on
RefTableId = MCRContinuityCustHeader.TableId,RefRecId = MCRContinuityCustHeader.RecIdMany MCRCustPaymTable records → zero or one MCRContinuityCustHeader record
MCRCustCreditTable→MCRCustCreditTableJoin on
CustAccount = MCRCustCreditTable.CustAccount,RefTableId = MCRCustCreditTable.TableId,RefRecId = MCRCustCreditTable.RecIdMany MCRCustPaymTable records → zero or one MCRCustCreditTable record
MCRCustPaymTable_OrigRefund→MCRCustPaymTableJoin on
OrigRefundRecID = MCRCustPaymTable.RecIdMany MCRCustPaymTable records → zero or one MCRCustPaymTable record
MCRInstallmentPlanSalesTable→MCRInstallmentPlanSalesTableJoin on
RefTableId = MCRInstallmentPlanSalesTable.TableId,RefRecId = MCRInstallmentPlanSalesTable.RecIdMany MCRCustPaymTable records → zero or one MCRInstallmentPlanSalesTable record
PaymSched→PaymSchedJoin on
PaymSchedID = PaymSched.NameMany MCRCustPaymTable records → exactly one PaymSched record
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdZero or one MCRCustPaymTable record → exactly one RetailChannelTable record
RetailGiftCardTable→RetailGiftCardTableJoin on
PaymInfoRecId = RetailGiftCardTable.RecId,PaymInfoTableId = RetailGiftCardTable.TableIdZero or one MCRCustPaymTable record → exactly one RetailGiftCardTable record
RetailStoreTenderTypeCardTable→RetailStoreTenderTypeCardTableJoin on
CardTypeId = RetailStoreTenderTypeCardTable.cardTypeId,TenderTypeId = RetailStoreTenderTypeCardTable.tenderTypeId,Channel = RetailStoreTenderTypeCardTable.ChannelZero or one MCRCustPaymTable record → exactly one RetailStoreTenderTypeCardTable record
RetailStoreTenderTypeTable→RetailStoreTenderTypeTableJoin on
TenderTypeId = RetailStoreTenderTypeTable.tenderTypeId,Channel = RetailStoreTenderTypeTable.ChannelMany MCRCustPaymTable records → exactly one RetailStoreTenderTypeTable record
SalesTable→SalesTableJoin on
RefTableId = SalesTable.TableId,RefRecId = SalesTable.RecIdMany MCRCustPaymTable records → zero or one SalesTable record
SalesLine→SalesLineJoin on
SalesLine = SalesLine.RecIdCardinality 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.
MCRContinuityCustomerPaymentEntity· 18 fields from this tableMCRCustomerCreditPaymentEntity· 17 fields from this tableMCRCustomerInvoicePaymentEntity· 18 fields from this tableMCRInstallmentPlanCustomerPaymentEntity· 19 fields from this tableMCRSalesOrderCustomerPaymentEntity· 18 fields from this tableMCRRefundCheckAuthorizationEntity· 1 field from this tableMCRRefundCheckSettlementEntity· 1 field from this table
Need help with MCRCustPaymTable in a report, an integration or a migration? Talk to Dr Dynamics.