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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
BrandCodeBrand of the product. | String (30)BrandCode_MX | No | None | |
ContainerTypeSAT code for the container type. | StringEInvoiceExtCodeId_MX | No | None | |
CustomsDocDateDate of the customs document. | DateCustomsDocDate_MX | No | None | |
CustomsDocNumberNumber of the customs document. | String (21)CustomsDocNumber_MX | No | None | |
CustomsDocumentType_MXCustoms document type code. | StringDocumentType_MX | No | None | |
CustomsMaterialType_MXCustoms material type code. | StringCustomsMaterialType_MX | No | None | |
CustomsNameName of the customs office. | String (60)CustomsName_MX | No | None | |
CustomsQtyQuantity declared for customs. | RealSATCustomsQty_MX | No | None | |
CustomUOMCodeSAT code for the customs unit of measure. | StringSATCustomUnitOfMeasure_MX | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DriverRecord ID of the driver. | Int64RefRecId | No | None | |
DropOffSpotID of the drop-off location. | String (6)EInvoiceSiteID_MX | No | None | |
HazardousMaterialTypeSAT code for the hazardous material type. | StringEInvoiceExtCodeId_MX | No | None | |
IdentifierCustomsDocument_MXIdentifier of the customs document. | String (150)IdentifierCustomDocument_MX | No | None | |
IsHazardousShows whether the goods are hazardous material. | EnumNoYes (enum) | No | None | |
MaterialDescription_MXDescription of the material. | String (50)MaterialDescription_MX | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PickUpSpotID of the pick-up location. | String (6)EInvoiceSiteID_MX | No | None | |
ProductCodeSAT product code; points to the external code table. | StringSATProductCode_MX | No | None | |
PropertyNumberProperty number. | String (20)PropertyNumber_MX | 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 | |
RefEInvoiceJourRecIdPoints to the e-invoice header record. | Int64RefRecId | No | EInvoiceJour_MX.RecId | None |
RefRecIdRecord ID of the source line, such as a customer invoice line. | Int64RefRecId | No | None | |
RefTableIdTable ID of the source line. | IntegerRefTableId | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TariffFractionSAT tariff fraction code. | StringSATTariffFraction_MX | No | None | |
TrailerIdID of the trailer asset. | String (20)AssetId | No | None | |
TravelDistanceDistance travelled. | RealWHSDistance | No | None | |
TravelTimeActual travel time. | RealWHSActualTime | No | None | |
TruckIdID of the truck asset. | String (20)AssetId | No | None | |
UOMCodeSAT unit code; points to the external code table. | StringSATUnitCode_MX | No | None |
Indexes (2)
RefInvoiceTransIdxNot unique.
RefEInvoiceJourRecIdIdxNot unique.
Relations (4)
Each relation joins EInvoiceTrans_MX to another table on the fields shown.
CustInvoiceTrans→CustInvoiceTransJoin on
RefRecId = CustInvoiceTrans.RecId,RefTableId = CustInvoiceTrans.TableIdMany EInvoiceTrans_MX records → zero or one CustInvoiceTrans record
EinvoiceJour→EInvoiceJour_MXJoin on
RefEInvoiceJourRecId = EInvoiceJour_MX.RecIdMany EInvoiceTrans_MX records → zero or one EInvoiceJour_MX record
ExtCodeTableProduct→EInvoiceExtCodeTable_MXJoin on
ProductCode = EInvoiceExtCodeTable_MX.CodeId,EInvoiceExtCodeTable_MX.CodeType = 1Exactly one EInvoiceTrans_MX record → exactly one EInvoiceExtCodeTable_MX record
ExtCodeTableUOM→EInvoiceExtCodeTable_MXJoin on
UOMCode = EInvoiceExtCodeTable_MX.CodeId,EInvoiceExtCodeTable_MX.CodeType = 2Exactly 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.