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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ChannelRetail channel of the transaction.Int64
RefRecId
NoRetailChannelTable.RecIdRetailTransactionSupplementaryInvoiceEntityRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity
StoreStore where the transaction took place.String
RetailStoreId
NoRetailStoreTable.StoreNumberRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity
TerminalRegister (POS terminal) of the transaction.String
RetailTerminalId
NoRetailTerminalTable.terminalIdRetailTransactionSupplementaryInvoiceEntityRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity
TransactionIdNumber of the retail transaction the invoice relates to.String (44)
RetailTransactionId
NoRetailTransactionTable.transactionIdRetailTransactionSupplementaryInvoiceEntityRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity
AccountNumCustomer account on the invoice.String (20)
CustAccount
NoCustTable.AccountNumRetailTransactionSupplementaryInvoiceEntityRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoRetailTransactionSupplementaryInvoiceBIEntity
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntityRetailTransactionSupplementaryInvoiceCDREntity
CustInvoiceJourLink to the customer invoice journal record.Int64
CustInvoiceJourRefRecId
NoCustInvoiceJour.RecIdRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity
CustomerNameName of the customer shown on the invoice.String (256)
SupplementaryInvoiceCustomerName
NoRetailTransactionSupplementaryInvoiceEntityRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity
InvoiceDateDate of the invoice.Date
InvoiceDate
NoRetailTransactionSupplementaryInvoiceEntityRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity
InvoiceIdInvoice number.String (50)
InvoiceId
NoRetailTransactionSupplementaryInvoiceEntityRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoRetailTransactionSupplementaryInvoiceBIEntity
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
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
NoRetailTransactionSupplementaryInvoiceBIEntityRetailTransactionSupplementaryInvoiceCDREntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (2)

Relations (6)

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

  • RetailStoreTable → RetailStoreTable

    Join on Store = RetailStoreTable.StoreNumber

    One or more RetailTransactionSupplementaryInvoice records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on Terminal = RetailTerminalTable.terminalId

    One or more RetailTransactionSupplementaryInvoice records → exactly one RetailTerminalTable record

  • RetailTransactionTable → RetailTransactionTable

    Join on TransactionId = RetailTransactionTable.transactionId, Store = RetailTransactionTable.store, Terminal = RetailTransactionTable.terminal, Channel = RetailTransactionTable.Channel

    Zero or one RetailTransactionSupplementaryInvoice record → exactly one RetailTransactionTable record

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailTransactionSupplementaryInvoice records → zero or one RetailChannelTable record

  • CustInvoiceJour → CustInvoiceJour

    Join on CustInvoiceJour = CustInvoiceJour.RecId

    Zero or one RetailTransactionSupplementaryInvoice record → zero or one CustInvoiceJour record

  • CustTable → CustTable

    Join on AccountNum = CustTable.AccountNum

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

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

Email sales@drdynamics.co.uk