Table
RetailEInvoiceAggregatedStatement_MX
Aggregated retail statement for CFDI electronic invoice
Holds aggregated retail statements for CFDI electronic invoicing, used for Mexico. Each record covers one store and one aggregation period, with the sales amount and posting date. It has no defined key.
- Table name
RetailEInvoiceAggregatedStatement_MX- Module
Commerce transactions and orders- Table group
WorksheetHeader- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AggregatedStatementIdIdentifier of the aggregated statement. | String (20)RetailEInvoiceAggregatedStatementId_MX | Yes | None | |
AggregationPeriodLength of the aggregation period: Daily, Weekly, Biweekly, Monthly or Bimonthly. | EnumRetailEInvoicePeriod_MX (enum) | No | None | |
AggregationPeriodEndLast date of the aggregation period. | DatePeriodEnd | No | None | |
AggregationPeriodStartFirst date of the aggregation period. | DatePeriodStart | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PostedDateDate when the statement was posted. | DateRetailPostedDate | No | None | |
PostedDateTimeDate and time when the statement was posted. | UtcDateTimeRetailStatementPostedDateTime | 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 | |
SalesAmountTotal sales amount of the aggregated statement. | RealRetailSalesAmount | No | None | |
StoreIdStore the statement is for. It points to the store record. | StringRetailStoreId | Yes | RetailStoreTable.StoreNumber | None |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (2)
AggregatedStatementIdxUnique, alternate key.
AggergationPeriodDatesIdxAggregationPeriodStart,AggregationPeriodEndNot unique.
Relations (1)
Each relation joins RetailEInvoiceAggregatedStatement_MX to another table on the fields shown.
RetailStoreTable→RetailStoreTableJoin on
StoreId = RetailStoreTable.StoreNumberOne or more RetailEInvoiceAggregatedStatement_MX records → exactly one RetailStoreTable record
Get this data out
No public entity reads from RetailEInvoiceAggregatedStatement_MX. Its data is only reachable through the application, a custom entity or a database export.
Need help with RetailEInvoiceAggregatedStatement_MX in a report, an integration or a migration? Talk to Dr Dynamics.