Table
EInvoiceJour_MX
EInvoice
Electronic invoice header record used for Mexico. It stores the CFDI details for a document: status, UUID, stamps, certificates, cancellation data, and the XML. It links to a source document through RefTableId and RefRecId, mainly the customer invoice journal. It also holds transport details such as driver, vehicle, trailer and permission data. It has no defined key.
- Table name
EInvoiceJour_MX- Module
Electronic invoicing- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
RecId- Replacement key
None- Key fields
None- Model
Foundation
Fields (98)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AdditionalTrailerNumberSerial number of the additional trailer. | String (25)AssetSerialNumber | No | None | |
AdditionalTrailerOwnerAccount of the owner of the additional trailer. | String (20)VendAccount | No | None | |
AdditionalTrailerTenantAccount of the tenant of the additional trailer. | String (20)VendAccount | No | None | |
AdditionalTrailerTypeSAT code for the additional trailer type. | StringEInvoiceExtCodeId_MX | No | None | |
AuthorizationCodeAuthorization code of the invoice series. | String (14)AuthorizationCode_MX | No | None | |
AuthorizationYearYear linked to the authorization. | IntegerAuthorizationYear_MX | No | None | |
CancelReasonReason for cancelling the document, as a numbered code such as substitution, error or rollback. | EnumEInvoiceCancelReason_MX (enum) | No | None | |
CancelSubstitutionUUID of the document that replaces this one; points to another e-invoice record. | String (36)EInvoiceCFDIUUID_MX | No | None | |
CertificateSubjectSubject text of the digital certificate used for the document. | String (960)DigitalCertificateSubject | No | None | |
CFDIYes/no flag; the label is empty, so its exact meaning is not given, but it likely marks a CFDI document.low confidence | EnumNoYes (enum) | No | None | |
CFDICancelationIdUnique ID of the cancellation document. | String (36)EInvoiceCFDICancelationId_MX | No | None | |
CFDICancelDateDate and time when the CFDI was cancelled. | UtcDateTimeEInvoiceCFDICancelDate_MX | No | None | |
CFDICancelKeyNameName of the key used for the cancellation. | String (25)EinvoiceCFDICancelKeyName_MX | No | None | |
CFDICancelReasonCancellation reason code for the CFDI, such as substitution, error or rollback. | EnumEInvoiceCFDICancelReason_MX (enum) | No | None | |
CFDICertificateNumberNumber of the certificate used on the document. | String (40)CertificateNumber_MX | No | None | |
CFDIConfirmNumberShort confirmation number returned by the PAC for large CFDI amounts. | String (5)EInvoiceCFDIConfirmNumber_MX | No | None | |
CFDIDateTimeStampDate and time of the digital stamp. | UtcDateTimeEInvoiceCFDIDateTimeStamp_MX | No | None | |
CFDIDocTypeType of CFDI document, such as invoice, prepayment, payment complement, withholding or packing slip. | EnumCFDIDocType_MX (enum) | No | None | |
CFDIEInvoicePeriod_MXInvoicing period: daily, weekly, biweekly, monthly or bimonthly. | EnumRetailEInvoicePeriod_MX (enum) | No | None | |
CFDIForeignTradeShows whether the document is a foreign trade operation. | EnumForeignTrade_MXNoYes (enum) | No | None | |
CFDIIncotermCodeIncoterm code from the external classification list. | StringSATIncoterm_MX | No | None | |
CFDIMessageStatusStatus of the message sent for this document: blank, waiting or processed. | EnumEInvoiceCFDIMessageStatus_MX (enum) | No | None | |
CFDIMessageTypeKind of message for this document: submit, cancel or cancel request. | EnumEInvoiceCFDIMessageType_MX (enum) | No | None | |
CFDINumRegIdTribTax registration number of the country of residence. | String (40)NumRegIdTrib_MX | No | None | |
CFDIOriginalStringOriginal string of the CFDI, stored as long text. | String (-1)EInvoiceCFDIOriginalString_MX | No | None | |
CFDIPurposePurpose code for the CFDI; points to the external code table. | StringSATPurpose_MX | No | None | |
CFDIResponseResponse text returned by the web service. | String (-1)EInvoiceCFDIResponse_MX | No | None | |
CFDISATCertificateNumberCertificate number from the SAT. | String (20)EInvoiceCFDISATCertificateNumber_MX | No | None | |
CFDISATStampDigital stamp issued by the SAT. | String (960)EInvoiceCFDISATCertificate_MX | No | None | |
CFDIShippingReasonShipping reason code from the external classification list. | StringSATShippingReason_MX | No | None | |
CFDISourceCertificate_MXYes/no flag for the source certificate code. | EnumSourceCertificate_MXNoYes (enum) | No | None | |
CFDIStampDigital stamp text, stored with the certificate subject type.low confidence | String (960)DigitalCertificateSubject | No | None | |
CFDIStatusCurrent CFDI status, such as in process, rejected, approved, cancelled or draft. | EnumEInvoiceCFDIStatus_MX (enum) | No | None | |
CFDITemporaryExportShows whether this is a temporary export. | EnumCFDITemporaryExport_MXNoYes (enum) | No | None | |
CFDIUUIDUnique identifier (UUID) of the CFDI. | String (36)EInvoiceCFDIUUID_MX | No | None | |
CFDIVersionCFDI version, for example 3.3 or 4.0. | EnumEInvoiceCFDIVersion_MX (enum) | No | None | |
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 | |
CustomsRegime_MXCustoms regimes that apply to the document. | String (255)CustomsRegimes_MX | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DropOffModeSAT code for the drop-off mode. | StringEInvoiceExtCodeId_MX | No | None | |
DropOffSpotID of the drop-off location. | String (6)EInvoiceSiteID_MX | No | None | |
EnvironmentalDamageInsurancePolicyNumPolicy number of the environmental damage insurance. | String (20)AssetInsurancePolicyNum | No | None | |
EnvironmentalDamageInsuranceVendorName of the environmental damage insurance vendor. | String (160)DirPartyName | No | None | |
FiscalAddressCountry or region of the fiscal address; points to the country/region table. | StringLogisticsAddressCountryRegionId | No | LogisticsAddressCountryRegion.CountryRegionId | None |
ForeignTaxRegistrationForeign tax registration ID. | String (40)ForeignTaxRegistration_MX | No | None | |
IdCCP_MXIdCCP identifier for the document.low confidence | String (40)IdCCP_MX | No | None | |
InsurancePolicyNumberInsurance policy number. | String (20)AssetInsurancePolicyNum | No | None | |
InsuranceVendorName of the insurance vendor. | String (160)DirPartyName | No | None | |
InvoiceDateTimeDate and time of the invoice. | UtcDateTimeInvoiceDateTime_MX | No | None | |
InvoiceFolioFolio (number) of the invoice. | String (25)EInvoiceInvoiceFolio_MX | No | None | |
InvoiceSeriesSeries code of the invoice. | String (20)EInvoiceInvoiceSeries_MX | No | None | |
InvoicingNameName registered for the RFC tax ID. | String (300)SATRegistrationName_MX | No | None | |
IsReturnShows whether the sale is a return. | EnumNoYes (enum) | No | None | |
KeyVaultCertificateRefPoints to a certificate record held in the Key Vault certificates table. | Int64KeyVaultCertificateRef | No | KeyVaultCertificateTable.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymMethodPayment type code; points to the external code table. | StringSATPaymMethod_MX | No | None | |
PaymModeCustomer method of payment; points to the payment mode table. | StringCustPaymMode | No | CustPaymModeTable.PaymMode | None |
PermissionIDUnique ID of the transport permission. | String (50)TransPermissionID_MX | No | None | |
PermissionTypeType of transport permission, as an external code. | StringEInvoiceExtCodeId_MX | No | None | |
PickUpModeSAT code for the pick-up mode. | StringEInvoiceExtCodeId_MX | No | None | |
PickUpSpotID of the pick-up location. | String (6)EInvoiceSiteID_MX | No | None | |
PrintInMSTShows whether documents are printed in the national currency. | EnumNoYes (enum) | 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 | |
RefRecIdRecord ID of the source document, such as a customer invoice journal. | Int64RefRecId | No | None | |
RefTableIdTable ID of the source document. | IntegerRefTableId | No | None | |
SeriesSeries of the invoice. | StringInvoiceSeries_MX | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TrailerNumberSerial number of the trailer. | String (25)AssetSerialNumber | No | None | |
TrailerOwnerAccount of the owner of the trailer. | String (20)VendAccount | No | None | |
TrailerTenantAccount of the tenant of the trailer. | String (20)VendAccount | No | None | |
TrailerTypeSAT code for the trailer type. | StringEInvoiceExtCodeId_MX | No | None | |
TransCardIncludedShows whether a transportation note is included. | EnumNoYes (enum) | No | None | |
TransportationDocumentPoints to the related transportation details record. | Int64RefRecId | No | TransportationDocument.RecId | None |
TravelDistanceDistance travelled. | RealWHSDistance | No | None | |
TravelTimeTravel time in hours. | RealWHSActualTime | No | None | |
TruckConfigFederal motor transport configuration code of the truck. | StringEInvoiceExtCodeId_MX | No | None | |
TruckSerialNumSerial number of the truck. | String (25)AssetSerialNumber | No | None | |
TruckYearModel year of the truck. | StringAssetModelYear | No | None | |
UseAdvCertificateStoreShows whether the advanced certificate store (Azure Key Vault) is used. | EnumUseAdvCertificateStoreNoYes (enum) | No | None | |
VehicleOwnerAccount of the owner of the vehicle. | String (20)VendAccount | No | None | |
VehicleTenantAccount of the tenant of the vehicle. | String (20)VendAccount | No | None | |
VersionOlder CFD version, 2.0 or 2.2. | EnumEInvoiceVersion_MX (enum) | No | None | |
WeightUnitCode of the weight unit; points to the external code table. | StringEInvoiceExtCodeId_MX | No | None | |
Worker1First driver; points to a worker record. | Int64RefRecId | No | HcmWorker.RecId | None |
Worker1CountryRegionCountry or region of the first driver. | StringLogisticsAddressCountryRegionId | No | None | |
Worker1DriverLicenseDriver licence number of the first driver. | String (35)HcmIdentificationNumber | No | None | |
Worker1ForeignIdForeign ID number of the first driver. | String (35)HcmIdentificationNumber | No | None | |
Worker1NameName of the first driver. | String (60)Name | No | None | |
Worker1NationalIdNational ID number of the first driver. | String (35)HcmIdentificationNumber | No | None | |
Worker2Second driver; points to a worker record. | Int64RefRecId | No | HcmWorker.RecId | None |
Worker2CountryRegionCountry or region of the second driver. | StringLogisticsAddressCountryRegionId | No | None | |
Worker2DriverLicenseDriver licence number of the second driver. | String (35)HcmIdentificationNumber | No | None | |
Worker2ForeignIdForeign ID number of the second driver. | String (35)HcmIdentificationNumber | No | None | |
Worker2NameName of the second driver. | String (60)Name | No | None | |
Worker2NationalIdNational ID number of the second driver. | String (35)HcmIdentificationNumber | No | None | |
XMLDocXML content of the electronic invoice, stored as long text. | String (-1)ElectronicInvXML_MX | No | None |
Indexes (3)
RefInvoiceJourIdxNot unique.
ConfirmNumberIdxNot unique.
UUIDIndexNot unique.
Relations (21)
Each relation joins EInvoiceJour_MX to another table on the fields shown.
CustInvoiceJour→CustInvoiceJourJoin on
RefTableId = CustInvoiceJour.TableId,RefRecId = CustInvoiceJour.RecIdMany EInvoiceJour_MX records → zero or one CustInvoiceJour record
CustPaymModeTable→CustPaymModeTableJoin on
PaymMode = CustPaymModeTable.PaymModeMany EInvoiceJour_MX records → zero or one CustPaymModeTable record
ProjInvoiceJour→ProjInvoiceJourJoin on
RefTableId = ProjInvoiceJour.TableId,RefRecId = ProjInvoiceJour.RecIdMany EInvoiceJour_MX records → zero or one ProjInvoiceJour record
CustSettlement→CustSettlementJoin on
RefTableId = CustSettlement.TableId,RefRecId = CustSettlement.RecIdMany EInvoiceJour_MX records → zero or one CustSettlement record
CustTrans→CustTransJoin on
RefTableId = CustTrans.TableId,RefRecId = CustTrans.RecIdMany EInvoiceJour_MX records → zero or one CustTrans record
ExtCodeTablePaymMethod→EInvoiceExtCodeTable_MXJoin on
PaymMethod = EInvoiceExtCodeTable_MX.CodeId,EInvoiceExtCodeTable_MX.CodeType = 4Exactly one EInvoiceJour_MX record → exactly one EInvoiceExtCodeTable_MX record
ExtCodeTablePurpose→EInvoiceExtCodeTable_MXJoin on
CFDIPurpose = EInvoiceExtCodeTable_MX.CodeId,EInvoiceExtCodeTable_MX.CodeType = 3Exactly one EInvoiceJour_MX record → exactly one EInvoiceExtCodeTable_MX record
CFDIPurpose→EInvoiceExtCodeTable_MXJoin on
CFDIPurpose = EInvoiceExtCodeTable_MX.CodeId,EInvoiceExtCodeTable_MX.CodeType = 3Exactly one EInvoiceJour_MX record → exactly one EInvoiceExtCodeTable_MX record
PaymMethod→EInvoiceExtCodeTable_MXJoin on
PaymMethod = EInvoiceExtCodeTable_MX.CodeId,EInvoiceExtCodeTable_MX.CodeType = 4Exactly one EInvoiceJour_MX record → exactly one EInvoiceExtCodeTable_MX record
RetailStatementJour→RetailStatementJourJoin on
RefTableId = RetailStatementJour.TableId,RefRecId = RetailStatementJour.RecIdMany EInvoiceJour_MX records → zero or one RetailStatementJour record
KeyVaultCertificateTable→KeyVaultCertificateTableJoin on
KeyVaultCertificateRef = KeyVaultCertificateTable.RecIdMany EInvoiceJour_MX records → zero or one KeyVaultCertificateTable record
CustPackingSlipJour→CustPackingSlipJourJoin on
RefTableId = CustPackingSlipJour.TableId,RefRecId = CustPackingSlipJour.RecIdMany EInvoiceJour_MX records → zero or one CustPackingSlipJour record
InventTransferJour→InventTransferJourJoin on
RefTableId = InventTransferJour.TableId,RefRecId = InventTransferJour.RecIdMany EInvoiceJour_MX records → zero or one InventTransferJour record
WithholdingJour→CFDIWithholdingJour_MXJoin on
RefTableId = CFDIWithholdingJour_MX.TableId,RefRecId = CFDIWithholdingJour_MX.RecIdMany EInvoiceJour_MX records → zero or one CFDIWithholdingJour_MX record
LogisticsAddressCountryRegion→LogisticsAddressCountryRegionJoin on
FiscalAddress = LogisticsAddressCountryRegion.CountryRegionIdMany EInvoiceJour_MX records → zero or one LogisticsAddressCountryRegion record
Worker1→HcmWorkerJoin on
Worker1 = HcmWorker.RecIdCardinality not set in the metadata.
Worker2→HcmWorkerJoin on
Worker2 = HcmWorker.RecIdCardinality not set in the metadata.
TransportationDocument→TransportationDocumentJoin on
TransportationDocument = TransportationDocument.RecIdZero or one EInvoiceJour_MX record → zero or one TransportationDocument record
RetailEInvoiceAggregatedStatement_MX→RetailEInvoiceAggregatedStatement_MXJoin on
RefTableId = RetailEInvoiceAggregatedStatement_MX.TableId,RefRecId = RetailEInvoiceAggregatedStatement_MX.RecIdOne or more EInvoiceJour_MX records → exactly one RetailEInvoiceAggregatedStatement_MX record
EInvoiceJour_Substitution→EInvoiceJour_MXJoin on
CancelSubstitution = EInvoiceJour_MX.CFDIUUIDZero or one EInvoiceJour_MX record → zero or one EInvoiceJour_MX record
ExtCodeWeightUnit→EInvoiceExtCodeTable_MXJoin on
WeightUnit = EInvoiceExtCodeTable_MX.CodeId,EInvoiceExtCodeTable_MX.CodeType = EInvoiceExtCodeType_MX::WeightUnitMany EInvoiceJour_MX records → zero or one EInvoiceExtCodeTable_MX record
Get this data out
No public entity reads from EInvoiceJour_MX. Its data is only reachable through the application, a custom entity or a database export.
Need help with EInvoiceJour_MX in a report, an integration or a migration? Talk to Dr Dynamics.