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 descriptionType / EDT / enumMandatoryReferencesIn public entities
TransDateDate of the entry, pointing to the VAT restoring journal totals.Date
TransDate
NoRestoredVATLogTable_RU.TransDateNone
CustInvoiceJourRecIdPoints to the customer invoice journal record.Int64
RefRecId
NoCustInvoiceJour.RecIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DomesticGainRevenue from the domestic market, in accounting currency.Real
AmountMSTDomesticGain_RU
NoNone
ExportGainRevenue from exports, in accounting currency.Real
AmountMSTExportGain_RU
NoNone
IncludeYes/No flag showing whether the invoice is included in the calculation.Enum
IncludeIntoCalc_RU
NoYes (enum)
NoNone
NotLiableGainRevenue not liable to VAT, in accounting currency.Real
AmountMSTNotLiableGain_RU
NoNone
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
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TotalGainTotal revenue, in accounting currency.Real
AmountMSTTotalGain_RU
NoNone

Indexes (1)

Relations (2)

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

  • CustInvoiceJour → CustInvoiceJour

    Join on CustInvoiceJourRecId = CustInvoiceJour.RecId

    Zero or one RestoredVATLogGain_RU record → exactly one CustInvoiceJour record

  • LogTable → RestoredVATLogTable_RU

    Join on TransDate = RestoredVATLogTable_RU.TransDate

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

Email sales@drdynamics.co.uk