Table
RetailTransactionSupplementaryInvoice
Supplementary invoice
Stores supplementary invoice details for a retail transaction, such as invoice number, invoice date and customer name. The key is channel, store, register and transaction number. It links to the customer account and to the customer invoice journal.
- Table name
RetailTransactionSupplementaryInvoice- Module
Commerce transactions and orders- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
TransactionIdx- Replacement key
TransactionIdx- Key fields
Channel, Store, Terminal, TransactionId- Model
Foundation
Fields (19)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ChannelRetail channel of the transaction. | Int64RefRecId | No | RetailChannelTable.RecId | RetailTransactionSupplementaryInvoiceEntityRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity |
StoreStore where the transaction took place. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | RetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity |
TerminalRegister (POS terminal) of the transaction. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | RetailTransactionSupplementaryInvoiceEntityRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity |
TransactionIdNumber of the retail transaction the invoice relates to. | String (44)RetailTransactionId | No | RetailTransactionTable.transactionId | RetailTransactionSupplementaryInvoiceEntityRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity |
AccountNumCustomer account on the invoice. | String (20)CustAccount | No | CustTable.AccountNum | RetailTransactionSupplementaryInvoiceEntityRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | RetailTransactionSupplementaryInvoiceBIEntity | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | RetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntityRetailTransactionSupplementaryInvoiceCDREntity | |
CustInvoiceJourLink to the customer invoice journal record. | Int64CustInvoiceJourRefRecId | No | CustInvoiceJour.RecId | RetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity |
CustomerNameName of the customer shown on the invoice. | String (256)SupplementaryInvoiceCustomerName | No | RetailTransactionSupplementaryInvoiceEntityRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | RetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity | |
InvoiceDateDate of the invoice. | DateInvoiceDate | No | RetailTransactionSupplementaryInvoiceEntityRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity | |
InvoiceIdInvoice number. | String (50)InvoiceId | No | RetailTransactionSupplementaryInvoiceEntityRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | RetailTransactionSupplementaryInvoiceBIEntity | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | RetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | 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 | RetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (2)
TransactionIdxPrimary indexReplacement keyChannel,Store,Terminal,TransactionIdUnique, alternate key.
CustInvoiceJourIdxNot unique.
Relations (6)
Each relation joins RetailTransactionSupplementaryInvoice to another table on the fields shown.
RetailStoreTable→RetailStoreTableJoin on
Store = RetailStoreTable.StoreNumberOne or more RetailTransactionSupplementaryInvoice records → exactly one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
Terminal = RetailTerminalTable.terminalIdOne or more RetailTransactionSupplementaryInvoice records → exactly one RetailTerminalTable record
RetailTransactionTable→RetailTransactionTableJoin on
TransactionId = RetailTransactionTable.transactionId,Store = RetailTransactionTable.store,Terminal = RetailTransactionTable.terminal,Channel = RetailTransactionTable.ChannelZero or one RetailTransactionSupplementaryInvoice record → exactly one RetailTransactionTable record
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailTransactionSupplementaryInvoice records → zero or one RetailChannelTable record
CustInvoiceJour→CustInvoiceJourJoin on
CustInvoiceJour = CustInvoiceJour.RecIdZero or one RetailTransactionSupplementaryInvoice record → zero or one CustInvoiceJour record
CustTable→CustTableJoin on
AccountNum = CustTable.AccountNumMany RetailTransactionSupplementaryInvoice records → zero or one CustTable record
Get this data out
Tables are not exposed directly. These public entities read from RetailTransactionSupplementaryInvoice; use one of them in Power BI, Power Platform or a data management project.
RetailTransactionSupplementaryInvoiceEntity· 7 fields from this tableRetailTransactionSupplementaryInvoiceBIEntity· 15 fields from this tableRetailTransactionSupplementaryInvoiceCDREntity· 14 fields from this table
Need help with RetailTransactionSupplementaryInvoice in a report, an integration or a migration? Talk to Dr Dynamics.