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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CreditIDUnique ID of the customer credit.String (20)
MCRCreditTableID
YesMCRCustCreditTableBiEntityMCRCustomerCreditPaymentEntity
BatchIdBatch number of the inventory item.String (20)
InventBatchId
NoNone
ccSettlementRecIDPoints to the credit card transaction record used for settlement.Int64
RefRecId
NoCreditCardAuthTrans.RecIdMCRCustCreditTableBiEntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoMCRCustCreditTableBiEntity
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoMCRCustCreditTableBiEntity
CreditedQtyQuantity that has been credited.Real
Qty
NoMCRCustCreditTableBiEntity
CreditQtyQuantity of the credit.Real
Qty
NoMCRCustCreditTableBiEntity
creditTypeKind of credit, such as on-account, cash, check, credit card or gift card.Enum
MCRCustPaymType (enum)
NoMCRCustCreditTableBiEntity
CustAccountThe customer account that the credit belongs to.String (20)
CustAccount
YesCustTable.AccountNumMCRCustCreditTableBiEntityMCRCustomerCreditPaymentEntity
CustCreditStatusStatus of the credit: Open, Applied, Pending, Successful or Failed.Enum
MCRCustCreditStatus (enum)
NoMCRCustCreditTableBiEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoMCRCustCreditTableBiEntity
DefaultDimensionPoints to the default dimension set for the credit.Int64
DimensionDefault
NoDimensionAttributeValueSet.RecIdNone
InventTransIDLot ID that links to the inventory transaction origin.String (20)
InventTransId
NoInventTransOrigin.InventTransIdMCRCustCreditTableBiEntity
ItemIdThe item number the credit relates to.String (20)
ItemId
NoInventTable.ItemIdMCRCustCreditTableBiEntity
JournalNumNumber of the ledger journal batch linked to the credit.String (20)
LedgerJournalId
NoLedgerJournalTable.JournalNumMCRCustCreditTableBiEntity
LineNumLine number of the credit.Real
LineNum
NoMCRCustCreditTableBiEntity
NewPriceNew price of the item.Real
AmountCur
NoMCRCustCreditTableBiEntity
OrderCurrencyThe currency of the order.String (3)
CurrencyCode
NoCurrency.CurrencyCodeMCRCustCreditTableBiEntity
OrigPaymIDPoints to the customer payment record the credit came from.Int64
MCRCustPaymTableRefRecId
NoMCRCustPaymTable.RecIdMCRCustCreditTableBiEntity
OrigSalesIDSales order created for the credit.String (20)
SalesIdBase
NoSalesTable.SalesIdMCRCustCreditTableBiEntity
ParentCreditIdID of the parent credit voucher.String (20)
MCRCustCreditID
NoMCRCustCreditTableBiEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ReasonCodeCode of the reason subcode for the credit.String
RetailInformationSubcodeId
NoRetailInformationSubcodeTable.subcodeIdMCRCustCreditTableBiEntity
ReasonCodeDescriptionText describing the reason.String (60)
Description
NoMCRCustCreditTableBiEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoMCRCustCreditTableBiEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoMCRCustCreditTableBiEntity
RetailInfocodeIdInfo code that the reason subcode belongs to.String
RetailInfocodeId
NoRetailInformationSubcodeTable.infocodeIdMCRCustCreditTableBiEntity
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
TotalCreditThe total credit amount.Real
AmountCur
YesMCRCustCreditTableBiEntity
VoucherThe voucher number linked to the credit.String (20)
Voucher
NoMCRCustCreditTableBiEntity

Indexes (2)

Relations (12)

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

  • CreditCardAuthTrans → CreditCardAuthTrans

    Join on ccSettlementRecID = CreditCardAuthTrans.RecId

    Zero or one MCRCustCreditTable record → exactly one CreditCardAuthTrans record

  • Currency → Currency

    Join on OrderCurrency = Currency.CurrencyCode

    Many MCRCustCreditTable records → exactly one Currency record

  • CustTable → CustTable

    Join on CustAccount = CustTable.AccountNum

    One or more MCRCustCreditTable records → exactly one CustTable record

  • CustTrans → CustTrans

    Join on Voucher = CustTrans.Voucher

    Many MCRCustCreditTable records → zero or one CustTrans record

  • DimensionAttributeValueSet → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many MCRCustCreditTable records → zero or one DimensionAttributeValueSet record

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Many MCRCustCreditTable records → exactly one InventTable record

  • InventTransOrigin → InventTransOrigin

    Join on InventTransID = InventTransOrigin.InventTransId

    Many MCRCustCreditTable records → exactly one InventTransOrigin record

  • LedgerJournalTable → LedgerJournalTable

    Join on JournalNum = LedgerJournalTable.JournalNum

    Many MCRCustCreditTable records → exactly one LedgerJournalTable record

  • LedgerJournalTrans → LedgerJournalTrans

    Join on JournalNum = LedgerJournalTrans.JournalNum

    Many MCRCustCreditTable records → zero or one LedgerJournalTrans record

  • MCRCustPaymTableOrig → MCRCustPaymTable

    Join on OrigPaymID = MCRCustPaymTable.RecId

    Many MCRCustCreditTable records → zero or one MCRCustPaymTable record

  • ReasonCode → RetailInformationSubcodeTable

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

    Many MCRCustCreditTable records → zero or one RetailInformationSubcodeTable record

  • SalesTableOrig → SalesTable

    Join on OrigSalesID = SalesTable.SalesId

    Many 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.

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

Email sales@drdynamics.co.uk