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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TransRecIdSystem record ID of the related transaction. It is part of the key. | Int64RefRecId | Yes | None | |
TypeType of account, such as customer, vendor or project. | EnumLedgerJournalACType (enum) | No | None | |
AmountAccountingAmount in accounting currency. | RealAmountMST | No | None | |
AmountTransactionalAmount in the transaction currency. | RealAmountCur | No | None | |
CountryRegionIdCountry or region, pointing to the country or region record. | StringAddressCountryRegionId | No | LogisticsAddressCountryRegion.CountryRegionId | None |
CurrencyCodeCurrency code of the transaction. | String (3)CurrencyCode | No | None | |
CustGroupIdCustomer group of the account. | StringCustGroupId | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DocumentDateDate on the source document. | DateDocumentDate | No | None | |
ExchAdjustmentExchange rate adjustment amount for the vendor invoice. | RealVendExchAdjustment | No | None | |
InvoiceAccountCustomer or vendor account the invoice belongs to. | String (20)CustVendAC | No | CustTable.AccountNumVendTable.AccountNum | None |
InvoiceDateDate of the invoice. | DateTransDate | Yes | None | |
InvoiceIdInvoice number. | String (50)InvoiceId | No | None | |
InvoiceJourRecIdSystem record ID of the related invoice journal. | Int64RefRecId | Yes | None | |
InvoiceJourTableIdID of the table that holds the related invoice journal. | IntegerRefTableId | Yes | None | |
InvoiceReceivedDateDate the invoice was received. | DateTransDate | No | None | |
InvoiceVoucherVoucher number of the invoice. | String (20)Voucher | Yes | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PostingProfilePosting profile linked to the invoice. | StringPostingProfile | No | None | |
PurchReceiptDate_WDate the purchase document was received. | DatePurchReceiptDate_W | 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 | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RefDataAreaIdCompany (legal entity) the records are taken from. | StringDataAreaId | No | None | |
SessionPoints to the statistics session record this row belongs to. | Int64RefRecId | Yes | StatisticsOnInvoiceSession.RecId | None |
SettlementAmountAccountingSettled amount in accounting currency. | RealAmountMST | No | None | |
SettlementAmountTransactionalSettled amount in the transaction currency. | RealAmountCur | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TransTableIdID of the table that holds the related transaction. | IntegerRefTableId | Yes | None | |
VendGroupIdVendor group of the account. | StringVendGroupId | No | None |
Indexes (4)
SessionIdxNot unique.
JourRecidIdxUnique.
TransRecIdIdxReplacement keyUnique, alternate key.
SessionCrossCompanyIdxNot unique.
Relations (11)
Each relation joins StatisticsOnInvoiceJour to another table on the fields shown.
StatisticsOnInvoiceSession→StatisticsOnInvoiceSessionJoin on
Session = StatisticsOnInvoiceSession.RecIdOne or more StatisticsOnInvoiceJour records → exactly one StatisticsOnInvoiceSession record
VendTable→VendTableJoin on
InvoiceAccount = VendTable.AccountNum,Type = LedgerJournalACType::VendCardinality not set in the metadata.
VendInvoiceJour→VendInvoiceJourJoin on
InvoiceJourRecId = VendInvoiceJour.RecId,InvoiceJourTableId = VendInvoiceJour.TableIdCardinality not set in the metadata.
VendTrans→VendTransJoin on
TransRecId = VendTrans.RecId,TransTableId = VendTrans.TableIdCardinality not set in the metadata.
CustTable→CustTableJoin on
InvoiceAccount = CustTable.AccountNum,Type = LedgerJournalACType::CustCardinality not set in the metadata.
CustInvoiceJour→CustInvoiceJourJoin on
InvoiceJourRecId = CustInvoiceJour.RecId,InvoiceJourTableId = CustInvoiceJour.TableIdCardinality not set in the metadata.
CustTrans→CustTransJoin on
TransRecId = CustTrans.RecId,TransTableId = CustTrans.TableIdCardinality not set in the metadata.
ProjInvoiceJour→ProjInvoiceJourJoin on
InvoiceJourRecId = ProjInvoiceJour.RecId,InvoiceJourTableId = ProjInvoiceJour.TableIdCardinality not set in the metadata.
CustTable_Project→CustTableJoin on
InvoiceAccount = CustTable.AccountNum,Type = LedgerJournalACType::ProjectCardinality not set in the metadata.
DataArea→DataAreaJoin on
RefDataAreaId = DataArea.id,DataArea.isVirtual = nullMany StatisticsOnInvoiceJour records → zero or one DataArea record
LogisticsAddressCountryRegion→LogisticsAddressCountryRegionJoin on
CountryRegionId = LogisticsAddressCountryRegion.CountryRegionIdMany 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.