Table
RetailEInvoiceCFDIReference_MX
Referenced CFDIs
Lists CFDI documents that an electronic invoice refers to, used for Mexico. Each row holds the UUID of the referenced CFDI and the type of relation, such as credit note, substitution or prepayment. It can also point to a customer invoice or to a retail transaction.
- Table name
RetailEInvoiceCFDIReference_MX- Module
Commerce- Table group
Worksheet- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (14)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CFDIUUIDUUID of the referenced CFDI document. | String (36)EInvoiceCFDIUUID_MX | No | None | |
ChannelRetail channel of the related retail transaction, stored as a record ID. | Int64RetailChannelRecId | No | RetailTransactionTable.Channel | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
EInvoiceJourRecord ID of the electronic invoice that holds this reference. | Int64RefRecId | No | EInvoiceJour_MX.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
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 | |
ReferenceTypeType of relation between the invoice and the referenced CFDI, such as credit note, debit note or substitution. | EnumEInvoiceCFDIReferenceType_MX (enum) | No | None | |
RefRecIdRecord ID of the related customer invoice journal record. | Int64RefRecId | No | None | |
RefTableIdID of the table that RefRecId points to, here the customer invoice journal. | IntegerRefTableId | No | None | |
StoreStore number of the related retail transaction. Points to a store record. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | None |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TerminalRegister number of the related retail transaction. Points to a POS register. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | None |
TransactionIdNumber of the related retail transaction. | String (44)RetailTransactionId | No | RetailTransactionTable.TransactionId | None |
Indexes (4)
EInvoiceJourIdxNot unique.
RefTableIdRefRecIdIdxRefTableId,RefRecId,ReferenceTypeNot unique.
CFDIUUIDIdxNot unique.
TransactionIdIdxChannel,Store,Terminal,TransactionId,ReferenceTypeNot unique.
Relations (5)
Each relation joins RetailEInvoiceCFDIReference_MX to another table on the fields shown.
RetailStoreTable→RetailStoreTableJoin on
Store = RetailStoreTable.StoreNumberMany RetailEInvoiceCFDIReference_MX records → zero or one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
Terminal = RetailTerminalTable.terminalIdMany RetailEInvoiceCFDIReference_MX records → zero or one RetailTerminalTable record
RetailTransactionTable→RetailTransactionTableJoin on
Channel = RetailTransactionTable.Channel,Store = RetailTransactionTable.Store,Terminal = RetailTransactionTable.Terminal,TransactionId = RetailTransactionTable.TransactionIdMany RetailEInvoiceCFDIReference_MX records → zero or one RetailTransactionTable record
EInvoiceJour_MX→EInvoiceJour_MXJoin on
EInvoiceJour = EInvoiceJour_MX.RecIdMany RetailEInvoiceCFDIReference_MX records → exactly one EInvoiceJour_MX record
CustInvoiceJour→CustInvoiceJourJoin on
RefTableId = CustInvoiceJour.TableId,RefRecId = CustInvoiceJour.RecIdMany RetailEInvoiceCFDIReference_MX records → zero or one CustInvoiceJour record
Get this data out
No public entity reads from RetailEInvoiceCFDIReference_MX. Its data is only reachable through the application, a custom entity or a database export.
Need help with RetailEInvoiceCFDIReference_MX in a report, an integration or a migration? Talk to Dr Dynamics.