Table

StatisticsOnInvoiceJour

Statistics on invoice journal

Invoice statistics header rows for customer, vendor or project invoices. The key is the transaction record ID and the account type. Each row links to a statistics session, the invoice journal, the transaction, the account and the country or region.

Table name
StatisticsOnInvoiceJour
Module
Cross-module and platform
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
TransRecIdIdx
Key fields
TransRecId, Type
Model
Foundation

Fields (29)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
TransRecIdSystem record ID of the related transaction. It is part of the key.Int64
RefRecId
YesNone
TypeType of account, such as customer, vendor or project.Enum
LedgerJournalACType (enum)
NoNone
AmountAccountingAmount in accounting currency.Real
AmountMST
NoNone
AmountTransactionalAmount in the transaction currency.Real
AmountCur
NoNone
CountryRegionIdCountry or region, pointing to the country or region record.String
AddressCountryRegionId
NoLogisticsAddressCountryRegion.CountryRegionIdNone
CurrencyCodeCurrency code of the transaction.String (3)
CurrencyCode
NoNone
CustGroupIdCustomer group of the account.String
CustGroupId
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DocumentDateDate on the source document.Date
DocumentDate
NoNone
ExchAdjustmentExchange rate adjustment amount for the vendor invoice.Real
VendExchAdjustment
NoNone
InvoiceAccountCustomer or vendor account the invoice belongs to.String (20)
CustVendAC
NoCustTable.AccountNumVendTable.AccountNumNone
InvoiceDateDate of the invoice.Date
TransDate
YesNone
InvoiceIdInvoice number.String (50)
InvoiceId
NoNone
InvoiceJourRecIdSystem record ID of the related invoice journal.Int64
RefRecId
YesNone
InvoiceJourTableIdID of the table that holds the related invoice journal.Integer
RefTableId
YesNone
InvoiceReceivedDateDate the invoice was received.Date
TransDate
NoNone
InvoiceVoucherVoucher number of the invoice.String (20)
Voucher
YesNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PostingProfilePosting profile linked to the invoice.String
PostingProfile
NoNone
PurchReceiptDate_WDate the purchase document was received.Date
PurchReceiptDate_W
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
RefDataAreaIdCompany (legal entity) the records are taken from.String
DataAreaId
NoNone
SessionPoints to the statistics session record this row belongs to.Int64
RefRecId
YesStatisticsOnInvoiceSession.RecIdNone
SettlementAmountAccountingSettled amount in accounting currency.Real
AmountMST
NoNone
SettlementAmountTransactionalSettled amount in the transaction currency.Real
AmountCur
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TransTableIdID of the table that holds the related transaction.Integer
RefTableId
YesNone
VendGroupIdVendor group of the account.String
VendGroupId
NoNone

Indexes (4)

Relations (11)

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

  • StatisticsOnInvoiceSession → StatisticsOnInvoiceSession

    Join on Session = StatisticsOnInvoiceSession.RecId

    One or more StatisticsOnInvoiceJour records → exactly one StatisticsOnInvoiceSession record

  • VendTable → VendTable

    Join on InvoiceAccount = VendTable.AccountNum, Type = LedgerJournalACType::Vend

    Cardinality not set in the metadata.

  • VendInvoiceJour → VendInvoiceJour

    Join on InvoiceJourRecId = VendInvoiceJour.RecId, InvoiceJourTableId = VendInvoiceJour.TableId

    Cardinality not set in the metadata.

  • VendTrans → VendTrans

    Join on TransRecId = VendTrans.RecId, TransTableId = VendTrans.TableId

    Cardinality not set in the metadata.

  • CustTable → CustTable

    Join on InvoiceAccount = CustTable.AccountNum, Type = LedgerJournalACType::Cust

    Cardinality not set in the metadata.

  • CustInvoiceJour → CustInvoiceJour

    Join on InvoiceJourRecId = CustInvoiceJour.RecId, InvoiceJourTableId = CustInvoiceJour.TableId

    Cardinality not set in the metadata.

  • CustTrans → CustTrans

    Join on TransRecId = CustTrans.RecId, TransTableId = CustTrans.TableId

    Cardinality not set in the metadata.

  • ProjInvoiceJour → ProjInvoiceJour

    Join on InvoiceJourRecId = ProjInvoiceJour.RecId, InvoiceJourTableId = ProjInvoiceJour.TableId

    Cardinality not set in the metadata.

  • CustTable_Project → CustTable

    Join on InvoiceAccount = CustTable.AccountNum, Type = LedgerJournalACType::Project

    Cardinality not set in the metadata.

  • DataArea → DataArea

    Join on RefDataAreaId = DataArea.id, DataArea.isVirtual = null

    Many StatisticsOnInvoiceJour records → zero or one DataArea record

  • LogisticsAddressCountryRegion → LogisticsAddressCountryRegion

    Join on CountryRegionId = LogisticsAddressCountryRegion.CountryRegionId

    Many StatisticsOnInvoiceJour records → exactly one LogisticsAddressCountryRegion record

Get this data out

No public entity reads from StatisticsOnInvoiceJour. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk