Table
MCRCustCreditTable
Customer credits
Holds customer credits, identified by a credit ID. Each credit has a credit type, a status, amounts, an item and a customer. It links to the originating payment and sales order, the journal, and a reason code. It also links to credit card settlement records.
- Table name
MCRCustCreditTable- Module
Commerce payments- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
CreditID- Replacement key
CreditID- Key fields
CreditID- Model
Foundation
Fields (31)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CreditIDUnique ID of the customer credit. | String (20)MCRCreditTableID | Yes | MCRCustCreditTableBiEntityMCRCustomerCreditPaymentEntity | |
BatchIdBatch number of the inventory item. | String (20)InventBatchId | No | None | |
ccSettlementRecIDPoints to the credit card transaction record used for settlement. | Int64RefRecId | No | CreditCardAuthTrans.RecId | MCRCustCreditTableBiEntity |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | MCRCustCreditTableBiEntity | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | MCRCustCreditTableBiEntity | |
CreditedQtyQuantity that has been credited. | RealQty | No | MCRCustCreditTableBiEntity | |
CreditQtyQuantity of the credit. | RealQty | No | MCRCustCreditTableBiEntity | |
creditTypeKind of credit, such as on-account, cash, check, credit card or gift card. | EnumMCRCustPaymType (enum) | No | MCRCustCreditTableBiEntity | |
CustAccountThe customer account that the credit belongs to. | String (20)CustAccount | Yes | CustTable.AccountNum | MCRCustCreditTableBiEntityMCRCustomerCreditPaymentEntity |
CustCreditStatusStatus of the credit: Open, Applied, Pending, Successful or Failed. | EnumMCRCustCreditStatus (enum) | No | MCRCustCreditTableBiEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | MCRCustCreditTableBiEntity | |
DefaultDimensionPoints to the default dimension set for the credit. | Int64DimensionDefault | No | DimensionAttributeValueSet.RecId | None |
InventTransIDLot ID that links to the inventory transaction origin. | String (20)InventTransId | No | InventTransOrigin.InventTransId | MCRCustCreditTableBiEntity |
ItemIdThe item number the credit relates to. | String (20)ItemId | No | InventTable.ItemId | MCRCustCreditTableBiEntity |
JournalNumNumber of the ledger journal batch linked to the credit. | String (20)LedgerJournalId | No | LedgerJournalTable.JournalNum | MCRCustCreditTableBiEntity |
LineNumLine number of the credit. | RealLineNum | No | MCRCustCreditTableBiEntity | |
NewPriceNew price of the item. | RealAmountCur | No | MCRCustCreditTableBiEntity | |
OrderCurrencyThe currency of the order. | String (3)CurrencyCode | No | Currency.CurrencyCode | MCRCustCreditTableBiEntity |
OrigPaymIDPoints to the customer payment record the credit came from. | Int64MCRCustPaymTableRefRecId | No | MCRCustPaymTable.RecId | MCRCustCreditTableBiEntity |
OrigSalesIDSales order created for the credit. | String (20)SalesIdBase | No | SalesTable.SalesId | MCRCustCreditTableBiEntity |
ParentCreditIdID of the parent credit voucher. | String (20)MCRCustCreditID | No | MCRCustCreditTableBiEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ReasonCodeCode of the reason subcode for the credit. | StringRetailInformationSubcodeId | No | RetailInformationSubcodeTable.subcodeId | MCRCustCreditTableBiEntity |
ReasonCodeDescriptionText describing the reason. | String (60)Description | No | MCRCustCreditTableBiEntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | MCRCustCreditTableBiEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | MCRCustCreditTableBiEntity | |
RetailInfocodeIdInfo code that the reason subcode belongs to. | StringRetailInfocodeId | No | RetailInformationSubcodeTable.infocodeId | MCRCustCreditTableBiEntity |
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 | |
TotalCreditThe total credit amount. | RealAmountCur | Yes | MCRCustCreditTableBiEntity | |
VoucherThe voucher number linked to the credit. | String (20)Voucher | No | MCRCustCreditTableBiEntity |
Indexes (2)
CreditIDPrimary indexReplacement keyUnique, alternate key.
InventTransIDNot unique.
Relations (12)
Each relation joins MCRCustCreditTable to another table on the fields shown.
CreditCardAuthTrans→CreditCardAuthTransJoin on
ccSettlementRecID = CreditCardAuthTrans.RecIdZero or one MCRCustCreditTable record → exactly one CreditCardAuthTrans record
Currency→CurrencyJoin on
OrderCurrency = Currency.CurrencyCodeMany MCRCustCreditTable records → exactly one Currency record
CustTable→CustTableJoin on
CustAccount = CustTable.AccountNumOne or more MCRCustCreditTable records → exactly one CustTable record
CustTrans→CustTransJoin on
Voucher = CustTrans.VoucherMany MCRCustCreditTable records → zero or one CustTrans record
DimensionAttributeValueSet→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany MCRCustCreditTable records → zero or one DimensionAttributeValueSet record
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany MCRCustCreditTable records → exactly one InventTable record
InventTransOrigin→InventTransOriginJoin on
InventTransID = InventTransOrigin.InventTransIdMany MCRCustCreditTable records → exactly one InventTransOrigin record
LedgerJournalTable→LedgerJournalTableJoin on
JournalNum = LedgerJournalTable.JournalNumMany MCRCustCreditTable records → exactly one LedgerJournalTable record
LedgerJournalTrans→LedgerJournalTransJoin on
JournalNum = LedgerJournalTrans.JournalNumMany MCRCustCreditTable records → zero or one LedgerJournalTrans record
MCRCustPaymTableOrig→MCRCustPaymTableJoin on
OrigPaymID = MCRCustPaymTable.RecIdMany MCRCustCreditTable records → zero or one MCRCustPaymTable record
ReasonCode→RetailInformationSubcodeTableJoin on
RetailInfocodeId = RetailInformationSubcodeTable.infocodeId,ReasonCode = RetailInformationSubcodeTable.subcodeIdMany MCRCustCreditTable records → zero or one RetailInformationSubcodeTable record
SalesTableOrig→SalesTableJoin on
OrigSalesID = SalesTable.SalesIdMany MCRCustCreditTable records → exactly one SalesTable record
Get this data out
Tables are not exposed directly. These public entities read from MCRCustCreditTable; use one of them in Power BI, Power Platform or a data management project.
MCRCustCreditTableBiEntity· 26 fields from this tableMCRCustomerCreditPaymentEntity· 2 fields from this table
Need help with MCRCustCreditTable in a report, an integration or a migration? Talk to Dr Dynamics.