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 descriptionType / EDT / enumMandatoryReferencesIn public entities
AdditionalTrailerNumberSerial number of the additional trailer.String (25)
AssetSerialNumber
NoNone
AdditionalTrailerOwnerAccount of the owner of the additional trailer.String (20)
VendAccount
NoNone
AdditionalTrailerTenantAccount of the tenant of the additional trailer.String (20)
VendAccount
NoNone
AdditionalTrailerTypeSAT code for the additional trailer type.String
EInvoiceExtCodeId_MX
NoNone
AuthorizationCodeAuthorization code of the invoice series.String (14)
AuthorizationCode_MX
NoNone
AuthorizationYearYear linked to the authorization.Integer
AuthorizationYear_MX
NoNone
CancelReasonReason for cancelling the document, as a numbered code such as substitution, error or rollback.Enum
EInvoiceCancelReason_MX (enum)
NoNone
CancelSubstitutionUUID of the document that replaces this one; points to another e-invoice record.String (36)
EInvoiceCFDIUUID_MX
NoNone
CertificateSubjectSubject text of the digital certificate used for the document.String (960)
DigitalCertificateSubject
NoNone
CFDIYes/no flag; the label is empty, so its exact meaning is not given, but it likely marks a CFDI document.low confidenceEnum
NoYes (enum)
NoNone
CFDICancelationIdUnique ID of the cancellation document.String (36)
EInvoiceCFDICancelationId_MX
NoNone
CFDICancelDateDate and time when the CFDI was cancelled.UtcDateTime
EInvoiceCFDICancelDate_MX
NoNone
CFDICancelKeyNameName of the key used for the cancellation.String (25)
EinvoiceCFDICancelKeyName_MX
NoNone
CFDICancelReasonCancellation reason code for the CFDI, such as substitution, error or rollback.Enum
EInvoiceCFDICancelReason_MX (enum)
NoNone
CFDICertificateNumberNumber of the certificate used on the document.String (40)
CertificateNumber_MX
NoNone
CFDIConfirmNumberShort confirmation number returned by the PAC for large CFDI amounts.String (5)
EInvoiceCFDIConfirmNumber_MX
NoNone
CFDIDateTimeStampDate and time of the digital stamp.UtcDateTime
EInvoiceCFDIDateTimeStamp_MX
NoNone
CFDIDocTypeType of CFDI document, such as invoice, prepayment, payment complement, withholding or packing slip.Enum
CFDIDocType_MX (enum)
NoNone
CFDIEInvoicePeriod_MXInvoicing period: daily, weekly, biweekly, monthly or bimonthly.Enum
RetailEInvoicePeriod_MX (enum)
NoNone
CFDIForeignTradeShows whether the document is a foreign trade operation.Enum
ForeignTrade_MX
NoYes (enum)
NoNone
CFDIIncotermCodeIncoterm code from the external classification list.String
SATIncoterm_MX
NoNone
CFDIMessageStatusStatus of the message sent for this document: blank, waiting or processed.Enum
EInvoiceCFDIMessageStatus_MX (enum)
NoNone
CFDIMessageTypeKind of message for this document: submit, cancel or cancel request.Enum
EInvoiceCFDIMessageType_MX (enum)
NoNone
CFDINumRegIdTribTax registration number of the country of residence.String (40)
NumRegIdTrib_MX
NoNone
CFDIOriginalStringOriginal string of the CFDI, stored as long text.String (-1)
EInvoiceCFDIOriginalString_MX
NoNone
CFDIPurposePurpose code for the CFDI; points to the external code table.String
SATPurpose_MX
NoNone
CFDIResponseResponse text returned by the web service.String (-1)
EInvoiceCFDIResponse_MX
NoNone
CFDISATCertificateNumberCertificate number from the SAT.String (20)
EInvoiceCFDISATCertificateNumber_MX
NoNone
CFDISATStampDigital stamp issued by the SAT.String (960)
EInvoiceCFDISATCertificate_MX
NoNone
CFDIShippingReasonShipping reason code from the external classification list.String
SATShippingReason_MX
NoNone
CFDISourceCertificate_MXYes/no flag for the source certificate code.Enum
SourceCertificate_MX
NoYes (enum)
NoNone
CFDIStampDigital stamp text, stored with the certificate subject type.low confidenceString (960)
DigitalCertificateSubject
NoNone
CFDIStatusCurrent CFDI status, such as in process, rejected, approved, cancelled or draft.Enum
EInvoiceCFDIStatus_MX (enum)
NoNone
CFDITemporaryExportShows whether this is a temporary export.Enum
CFDITemporaryExport_MX
NoYes (enum)
NoNone
CFDIUUIDUnique identifier (UUID) of the CFDI.String (36)
EInvoiceCFDIUUID_MX
NoNone
CFDIVersionCFDI version, for example 3.3 or 4.0.Enum
EInvoiceCFDIVersion_MX (enum)
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CustomsRegime_MXCustoms regimes that apply to the document.String (255)
CustomsRegimes_MX
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DropOffModeSAT code for the drop-off mode.String
EInvoiceExtCodeId_MX
NoNone
DropOffSpotID of the drop-off location.String (6)
EInvoiceSiteID_MX
NoNone
EnvironmentalDamageInsurancePolicyNumPolicy number of the environmental damage insurance.String (20)
AssetInsurancePolicyNum
NoNone
EnvironmentalDamageInsuranceVendorName of the environmental damage insurance vendor.String (160)
DirPartyName
NoNone
FiscalAddressCountry or region of the fiscal address; points to the country/region table.String
LogisticsAddressCountryRegionId
NoLogisticsAddressCountryRegion.CountryRegionIdNone
ForeignTaxRegistrationForeign tax registration ID.String (40)
ForeignTaxRegistration_MX
NoNone
IdCCP_MXIdCCP identifier for the document.low confidenceString (40)
IdCCP_MX
NoNone
InsurancePolicyNumberInsurance policy number.String (20)
AssetInsurancePolicyNum
NoNone
InsuranceVendorName of the insurance vendor.String (160)
DirPartyName
NoNone
InvoiceDateTimeDate and time of the invoice.UtcDateTime
InvoiceDateTime_MX
NoNone
InvoiceFolioFolio (number) of the invoice.String (25)
EInvoiceInvoiceFolio_MX
NoNone
InvoiceSeriesSeries code of the invoice.String (20)
EInvoiceInvoiceSeries_MX
NoNone
InvoicingNameName registered for the RFC tax ID.String (300)
SATRegistrationName_MX
NoNone
IsReturnShows whether the sale is a return.Enum
NoYes (enum)
NoNone
KeyVaultCertificateRefPoints to a certificate record held in the Key Vault certificates table.Int64
KeyVaultCertificateRef
NoKeyVaultCertificateTable.RecIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymMethodPayment type code; points to the external code table.String
SATPaymMethod_MX
NoNone
PaymModeCustomer method of payment; points to the payment mode table.String
CustPaymMode
NoCustPaymModeTable.PaymModeNone
PermissionIDUnique ID of the transport permission.String (50)
TransPermissionID_MX
NoNone
PermissionTypeType of transport permission, as an external code.String
EInvoiceExtCodeId_MX
NoNone
PickUpModeSAT code for the pick-up mode.String
EInvoiceExtCodeId_MX
NoNone
PickUpSpotID of the pick-up location.String (6)
EInvoiceSiteID_MX
NoNone
PrintInMSTShows whether documents are printed in the national currency.Enum
NoYes (enum)
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RefRecIdRecord ID of the source document, such as a customer invoice journal.Int64
RefRecId
NoNone
RefTableIdTable ID of the source document.Integer
RefTableId
NoNone
SeriesSeries of the invoice.String
InvoiceSeries_MX
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TrailerNumberSerial number of the trailer.String (25)
AssetSerialNumber
NoNone
TrailerOwnerAccount of the owner of the trailer.String (20)
VendAccount
NoNone
TrailerTenantAccount of the tenant of the trailer.String (20)
VendAccount
NoNone
TrailerTypeSAT code for the trailer type.String
EInvoiceExtCodeId_MX
NoNone
TransCardIncludedShows whether a transportation note is included.Enum
NoYes (enum)
NoNone
TransportationDocumentPoints to the related transportation details record.Int64
RefRecId
NoTransportationDocument.RecIdNone
TravelDistanceDistance travelled.Real
WHSDistance
NoNone
TravelTimeTravel time in hours.Real
WHSActualTime
NoNone
TruckConfigFederal motor transport configuration code of the truck.String
EInvoiceExtCodeId_MX
NoNone
TruckSerialNumSerial number of the truck.String (25)
AssetSerialNumber
NoNone
TruckYearModel year of the truck.String
AssetModelYear
NoNone
UseAdvCertificateStoreShows whether the advanced certificate store (Azure Key Vault) is used.Enum
UseAdvCertificateStore
NoYes (enum)
NoNone
VehicleOwnerAccount of the owner of the vehicle.String (20)
VendAccount
NoNone
VehicleTenantAccount of the tenant of the vehicle.String (20)
VendAccount
NoNone
VersionOlder CFD version, 2.0 or 2.2.Enum
EInvoiceVersion_MX (enum)
NoNone
WeightUnitCode of the weight unit; points to the external code table.String
EInvoiceExtCodeId_MX
NoNone
Worker1First driver; points to a worker record.Int64
RefRecId
NoHcmWorker.RecIdNone
Worker1CountryRegionCountry or region of the first driver.String
LogisticsAddressCountryRegionId
NoNone
Worker1DriverLicenseDriver licence number of the first driver.String (35)
HcmIdentificationNumber
NoNone
Worker1ForeignIdForeign ID number of the first driver.String (35)
HcmIdentificationNumber
NoNone
Worker1NameName of the first driver.String (60)
Name
NoNone
Worker1NationalIdNational ID number of the first driver.String (35)
HcmIdentificationNumber
NoNone
Worker2Second driver; points to a worker record.Int64
RefRecId
NoHcmWorker.RecIdNone
Worker2CountryRegionCountry or region of the second driver.String
LogisticsAddressCountryRegionId
NoNone
Worker2DriverLicenseDriver licence number of the second driver.String (35)
HcmIdentificationNumber
NoNone
Worker2ForeignIdForeign ID number of the second driver.String (35)
HcmIdentificationNumber
NoNone
Worker2NameName of the second driver.String (60)
Name
NoNone
Worker2NationalIdNational ID number of the second driver.String (35)
HcmIdentificationNumber
NoNone
XMLDocXML content of the electronic invoice, stored as long text.String (-1)
ElectronicInvXML_MX
NoNone

Indexes (3)

Relations (21)

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

  • CustInvoiceJour → CustInvoiceJour

    Join on RefTableId = CustInvoiceJour.TableId, RefRecId = CustInvoiceJour.RecId

    Many EInvoiceJour_MX records → zero or one CustInvoiceJour record

  • CustPaymModeTable → CustPaymModeTable

    Join on PaymMode = CustPaymModeTable.PaymMode

    Many EInvoiceJour_MX records → zero or one CustPaymModeTable record

  • ProjInvoiceJour → ProjInvoiceJour

    Join on RefTableId = ProjInvoiceJour.TableId, RefRecId = ProjInvoiceJour.RecId

    Many EInvoiceJour_MX records → zero or one ProjInvoiceJour record

  • CustSettlement → CustSettlement

    Join on RefTableId = CustSettlement.TableId, RefRecId = CustSettlement.RecId

    Many EInvoiceJour_MX records → zero or one CustSettlement record

  • CustTrans → CustTrans

    Join on RefTableId = CustTrans.TableId, RefRecId = CustTrans.RecId

    Many EInvoiceJour_MX records → zero or one CustTrans record

  • ExtCodeTablePaymMethod → EInvoiceExtCodeTable_MX

    Join on PaymMethod = EInvoiceExtCodeTable_MX.CodeId, EInvoiceExtCodeTable_MX.CodeType = 4

    Exactly one EInvoiceJour_MX record → exactly one EInvoiceExtCodeTable_MX record

  • ExtCodeTablePurpose → EInvoiceExtCodeTable_MX

    Join on CFDIPurpose = EInvoiceExtCodeTable_MX.CodeId, EInvoiceExtCodeTable_MX.CodeType = 3

    Exactly one EInvoiceJour_MX record → exactly one EInvoiceExtCodeTable_MX record

  • CFDIPurpose → EInvoiceExtCodeTable_MX

    Join on CFDIPurpose = EInvoiceExtCodeTable_MX.CodeId, EInvoiceExtCodeTable_MX.CodeType = 3

    Exactly one EInvoiceJour_MX record → exactly one EInvoiceExtCodeTable_MX record

  • PaymMethod → EInvoiceExtCodeTable_MX

    Join on PaymMethod = EInvoiceExtCodeTable_MX.CodeId, EInvoiceExtCodeTable_MX.CodeType = 4

    Exactly one EInvoiceJour_MX record → exactly one EInvoiceExtCodeTable_MX record

  • RetailStatementJour → RetailStatementJour

    Join on RefTableId = RetailStatementJour.TableId, RefRecId = RetailStatementJour.RecId

    Many EInvoiceJour_MX records → zero or one RetailStatementJour record

  • KeyVaultCertificateTable → KeyVaultCertificateTable

    Join on KeyVaultCertificateRef = KeyVaultCertificateTable.RecId

    Many EInvoiceJour_MX records → zero or one KeyVaultCertificateTable record

  • CustPackingSlipJour → CustPackingSlipJour

    Join on RefTableId = CustPackingSlipJour.TableId, RefRecId = CustPackingSlipJour.RecId

    Many EInvoiceJour_MX records → zero or one CustPackingSlipJour record

  • InventTransferJour → InventTransferJour

    Join on RefTableId = InventTransferJour.TableId, RefRecId = InventTransferJour.RecId

    Many EInvoiceJour_MX records → zero or one InventTransferJour record

  • WithholdingJour → CFDIWithholdingJour_MX

    Join on RefTableId = CFDIWithholdingJour_MX.TableId, RefRecId = CFDIWithholdingJour_MX.RecId

    Many EInvoiceJour_MX records → zero or one CFDIWithholdingJour_MX record

  • LogisticsAddressCountryRegion → LogisticsAddressCountryRegion

    Join on FiscalAddress = LogisticsAddressCountryRegion.CountryRegionId

    Many EInvoiceJour_MX records → zero or one LogisticsAddressCountryRegion record

  • Worker1 → HcmWorker

    Join on Worker1 = HcmWorker.RecId

    Cardinality not set in the metadata.

  • Worker2 → HcmWorker

    Join on Worker2 = HcmWorker.RecId

    Cardinality not set in the metadata.

  • TransportationDocument → TransportationDocument

    Join on TransportationDocument = TransportationDocument.RecId

    Zero or one EInvoiceJour_MX record → zero or one TransportationDocument record

  • RetailEInvoiceAggregatedStatement_MX → RetailEInvoiceAggregatedStatement_MX

    Join on RefTableId = RetailEInvoiceAggregatedStatement_MX.TableId, RefRecId = RetailEInvoiceAggregatedStatement_MX.RecId

    One or more EInvoiceJour_MX records → exactly one RetailEInvoiceAggregatedStatement_MX record

  • EInvoiceJour_Substitution → EInvoiceJour_MX

    Join on CancelSubstitution = EInvoiceJour_MX.CFDIUUID

    Zero or one EInvoiceJour_MX record → zero or one EInvoiceJour_MX record

  • ExtCodeWeightUnit → EInvoiceExtCodeTable_MX

    Join on WeightUnit = EInvoiceExtCodeTable_MX.CodeId, EInvoiceExtCodeTable_MX.CodeType = EInvoiceExtCodeType_MX::WeightUnit

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

Email sales@drdynamics.co.uk