Table

RetailCustInvoiceJourTable

Retail customer invoice journal

Holds extra retail details for a customer invoice journal record. Each row links an invoice journal to the store, register, channel, statement and hour of day where it came from. It has no defined key in the metadata.

Table name
RetailCustInvoiceJourTable
Module
Commerce customers
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (14)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CustInvoiceJourPoints to the customer invoice journal record that this retail detail row extends.Int64
RefRecId
NoCustInvoiceJour.RecIdRetailCustInvoiceJourTableBiEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoRetailCustInvoiceJourTableBiEntity
IsEInvocieGeneratedFromPOS_SAYes or No flag used for Saudi Arabia. It appears to show whether an e-invoice was generated from the POS.Enum
NoYesId
NoYes (enum)
NoRetailCustInvoiceJourTableBiEntity
OMInternalOrganizationPoints to the internal organization record linked to the invoice.Int64
RefRecId
NoOMInternalOrganization.RecIdRetailCustInvoiceJourTableBiEntity
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
NoRetailCustInvoiceJourTableBiEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoRetailCustInvoiceJourTableBiEntity
RetailChannelPoints to the retail channel linked to the invoice.Int64
RefRecId
NoRetailChannelTable.RecIdRetailCustInvoiceJourTableBiEntity
RetailHourOfDayPoints to the hour-of-day record linked to the invoice.Int64
RefRecId
NoRetailHour.RecIdRetailCustInvoiceJourTableBiEntity
RetailStatementIdNumber of the retail statement linked to the invoice.String (20)
RetailStatementId
NoRetailStatementTable.statementIdRetailCustInvoiceJourTableBiEntity
RetailStoreIdNumber of the store linked to the invoice.String
RetailStoreId
NoRetailStoreTable.StoreNumberRetailCustInvoiceJourTableBiEntity
RetailTerminalIdNumber of the POS register linked to the invoice.String
RetailTerminalId
NoRetailTerminalTable.terminalIdRetailCustInvoiceJourTableBiEntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoRetailCustInvoiceJourTableBiEntity
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (2)

Relations (7)

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

  • CustInvoiceJour → CustInvoiceJour

    Join on CustInvoiceJour = CustInvoiceJour.RecId

    Zero or one RetailCustInvoiceJourTable record → exactly one CustInvoiceJour record

  • OMInternalOrganization → OMInternalOrganization

    Join on OMInternalOrganization = OMInternalOrganization.RecId

    Many RetailCustInvoiceJourTable records → exactly one OMInternalOrganization record

  • RetailChannel → RetailChannelTable

    Join on RetailChannel = RetailChannelTable.RecId

    Many RetailCustInvoiceJourTable records → exactly one RetailChannelTable record

  • RetailHourOfDay → RetailHour

    Join on RetailHourOfDay = RetailHour.RecId

    Many RetailCustInvoiceJourTable records → exactly one RetailHour record

  • RetailStatementTable → RetailStatementTable

    Join on RetailStatementId = RetailStatementTable.statementId

    Many RetailCustInvoiceJourTable records → exactly one RetailStatementTable record

  • RetailStoreTable → RetailStoreTable

    Join on RetailStoreId = RetailStoreTable.StoreNumber

    Many RetailCustInvoiceJourTable records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on RetailTerminalId = RetailTerminalTable.terminalId

    Many RetailCustInvoiceJourTable records → exactly one RetailTerminalTable record

Get this data out

Tables are not exposed directly. These public entities read from RetailCustInvoiceJourTable; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk