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 descriptionType / EDT / enumMandatoryReferencesIn public entities
AggregatedStatementIdIdentifier of the aggregated statement.String (20)
RetailEInvoiceAggregatedStatementId_MX
YesNone
AggregationPeriodLength of the aggregation period: Daily, Weekly, Biweekly, Monthly or Bimonthly.Enum
RetailEInvoicePeriod_MX (enum)
NoNone
AggregationPeriodEndLast date of the aggregation period.Date
PeriodEnd
NoNone
AggregationPeriodStartFirst date of the aggregation period.Date
PeriodStart
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PostedDateDate when the statement was posted.Date
RetailPostedDate
NoNone
PostedDateTimeDate and time when the statement was posted.UtcDateTime
RetailStatementPostedDateTime
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
SalesAmountTotal sales amount of the aggregated statement.Real
RetailSalesAmount
NoNone
StoreIdStore the statement is for. It points to the store record.String
RetailStoreId
YesRetailStoreTable.StoreNumberNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (2)

Relations (1)

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

  • RetailStoreTable → RetailStoreTable

    Join on StoreId = RetailStoreTable.StoreNumber

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

Email sales@drdynamics.co.uk