Table
RestoredVATLogGain_RU
Period revenue calculation
Holds the revenue per customer invoice used in the revenue calculation for a period, used for Russia. It splits revenue into domestic, export and not liable to VAT, in accounting currency. The key is the date plus the customer invoice journal record.
- Table name
RestoredVATLogGain_RU- Module
Sales and purchase books (Russia)- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
LedgerBasicSalesTax- Primary index
PeriodInvoiceIdx- Replacement key
PeriodInvoiceIdx- Key fields
TransDate, CustInvoiceJourRecId- Model
Foundation
Fields (12)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TransDateDate of the entry, pointing to the VAT restoring journal totals. | DateTransDate | No | RestoredVATLogTable_RU.TransDate | None |
CustInvoiceJourRecIdPoints to the customer invoice journal record. | Int64RefRecId | No | CustInvoiceJour.RecId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DomesticGainRevenue from the domestic market, in accounting currency. | RealAmountMSTDomesticGain_RU | No | None | |
ExportGainRevenue from exports, in accounting currency. | RealAmountMSTExportGain_RU | No | None | |
IncludeYes/No flag showing whether the invoice is included in the calculation. | EnumIncludeIntoCalc_RUNoYes (enum) | No | None | |
NotLiableGainRevenue not liable to VAT, in accounting currency. | RealAmountMSTNotLiableGain_RU | No | None | |
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 | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TotalGainTotal revenue, in accounting currency. | RealAmountMSTTotalGain_RU | No | None |
Indexes (1)
PeriodInvoiceIdxPrimary indexReplacement keyTransDate,CustInvoiceJourRecIdUnique, alternate key.
Relations (2)
Each relation joins RestoredVATLogGain_RU to another table on the fields shown.
CustInvoiceJour→CustInvoiceJourJoin on
CustInvoiceJourRecId = CustInvoiceJour.RecIdZero or one RestoredVATLogGain_RU record → exactly one CustInvoiceJour record
LogTable→RestoredVATLogTable_RUJoin on
TransDate = RestoredVATLogTable_RU.TransDateMany RestoredVATLogGain_RU records → exactly one RestoredVATLogTable_RU record
Get this data out
No public entity reads from RestoredVATLogGain_RU. Its data is only reachable through the application, a custom entity or a database export.
Need help with RestoredVATLogGain_RU in a report, an integration or a migration? Talk to Dr Dynamics.