Table

EInvoiceTrans_MX

e-invoice lines

Electronic invoice line records used for Mexico. Each line points to its e-invoice header and to a source line, such as a customer invoice line. It holds SAT product and unit codes, customs data and transport details. It has no defined key.

Table name
EInvoiceTrans_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 (32)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
BrandCodeBrand of the product.String (30)
BrandCode_MX
NoNone
ContainerTypeSAT code for the container type.String
EInvoiceExtCodeId_MX
NoNone
CustomsDocDateDate of the customs document.Date
CustomsDocDate_MX
NoNone
CustomsDocNumberNumber of the customs document.String (21)
CustomsDocNumber_MX
NoNone
CustomsDocumentType_MXCustoms document type code.String
DocumentType_MX
NoNone
CustomsMaterialType_MXCustoms material type code.String
CustomsMaterialType_MX
NoNone
CustomsNameName of the customs office.String (60)
CustomsName_MX
NoNone
CustomsQtyQuantity declared for customs.Real
SATCustomsQty_MX
NoNone
CustomUOMCodeSAT code for the customs unit of measure.String
SATCustomUnitOfMeasure_MX
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DriverRecord ID of the driver.Int64
RefRecId
NoNone
DropOffSpotID of the drop-off location.String (6)
EInvoiceSiteID_MX
NoNone
HazardousMaterialTypeSAT code for the hazardous material type.String
EInvoiceExtCodeId_MX
NoNone
IdentifierCustomsDocument_MXIdentifier of the customs document.String (150)
IdentifierCustomDocument_MX
NoNone
IsHazardousShows whether the goods are hazardous material.Enum
NoYes (enum)
NoNone
MaterialDescription_MXDescription of the material.String (50)
MaterialDescription_MX
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PickUpSpotID of the pick-up location.String (6)
EInvoiceSiteID_MX
NoNone
ProductCodeSAT product code; points to the external code table.String
SATProductCode_MX
NoNone
PropertyNumberProperty number.String (20)
PropertyNumber_MX
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
RefEInvoiceJourRecIdPoints to the e-invoice header record.Int64
RefRecId
NoEInvoiceJour_MX.RecIdNone
RefRecIdRecord ID of the source line, such as a customer invoice line.Int64
RefRecId
NoNone
RefTableIdTable ID of the source line.Integer
RefTableId
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TariffFractionSAT tariff fraction code.String
SATTariffFraction_MX
NoNone
TrailerIdID of the trailer asset.String (20)
AssetId
NoNone
TravelDistanceDistance travelled.Real
WHSDistance
NoNone
TravelTimeActual travel time.Real
WHSActualTime
NoNone
TruckIdID of the truck asset.String (20)
AssetId
NoNone
UOMCodeSAT unit code; points to the external code table.String
SATUnitCode_MX
NoNone

Indexes (2)

Relations (4)

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

  • CustInvoiceTrans → CustInvoiceTrans

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

    Many EInvoiceTrans_MX records → zero or one CustInvoiceTrans record

  • EinvoiceJour → EInvoiceJour_MX

    Join on RefEInvoiceJourRecId = EInvoiceJour_MX.RecId

    Many EInvoiceTrans_MX records → zero or one EInvoiceJour_MX record

  • ExtCodeTableProduct → EInvoiceExtCodeTable_MX

    Join on ProductCode = EInvoiceExtCodeTable_MX.CodeId, EInvoiceExtCodeTable_MX.CodeType = 1

    Exactly one EInvoiceTrans_MX record → exactly one EInvoiceExtCodeTable_MX record

  • ExtCodeTableUOM → EInvoiceExtCodeTable_MX

    Join on UOMCode = EInvoiceExtCodeTable_MX.CodeId, EInvoiceExtCodeTable_MX.CodeType = 2

    Exactly one EInvoiceTrans_MX record → exactly one EInvoiceExtCodeTable_MX record

Get this data out

No public entity reads from EInvoiceTrans_MX. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk