Table

RestoredVATSalesTaxTrans_RU

VAT distribution

Holds the distribution of VAT per customer invoice and facture for VAT restoring, used for Russia. Each record has a tax code, a factor, the tax base and VAT amounts for direct and indirect expenses. It links to customer invoice journals, facture journals and inventory transaction origins.

Table name
RestoredVATSalesTaxTrans_RU
Module
Sales and purchase books (Russia)
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
LedgerBasicSalesTax
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (20)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
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
FactorFactor used in the distribution.Real
Factor
NoNone
FactureDateDate the facture was registered.Date
FactureDate_RU
NoNone
FactureExternalIdFacture number as shown on the external document.String (30)
FactureExternalId_RU
NoNone
FactureIdSystem identifier of the facture; it joins to the facture journal together with the module.String (50)
FactureId_RU
NoFactureJour_RU.FactureIdNone
FactureModuleSource module of the facture, such as customer, vendor or advance report.Enum
FactureModule_RU (enum)
NoFactureJour_RU.ModuleNone
InventTransIdLot ID that links to the inventory transaction origin.String (20)
InventTransId
NoInventTransOrigin.InventTransIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PrevPeriodYes/No flag with no label; purpose is not stated, but its name suggests a previous period.low confidenceEnum
NoYes (enum)
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
TaxBaseAmountOriginal tax base amount.Real
TaxBase
NoNone
TaxCodeSales tax code, pointing to the tax code record.String
TaxCode
NoTaxTable.TaxCodeNone
TaxReducedDirectVAT at the reduced 10% rate for direct expenses.Real
TaxAmountDirectVAT10_RU
NoNone
TaxReducedIndirectVAT at the reduced 10% rate for indirect expenses.Real
TaxAmountIndirectVAT10_RU
NoNone
TaxStandardDirectVAT at the standard rate for direct expenses (labelled 18%; the type name refers to 20%).Real
TaxAmountDirectVAT20_RU
NoNone
TaxStandardIndirectVAT at the standard rate for indirect expenses (labelled 18%; the type name refers to 20%).Real
TaxAmountIndirectVAT20_RU
NoNone
TransDateDate of the entry, pointing to the VAT restoring journal totals.Date
TransDate
NoRestoredVATLogTable_RU.TransDateNone

Indexes (2)

Relations (5)

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

  • CustInvoiceJour → CustInvoiceJour

    Join on CustInvoiceJourRecId = CustInvoiceJour.RecId

    Many RestoredVATSalesTaxTrans_RU records → exactly one CustInvoiceJour record

  • FactureJour → FactureJour_RU

    Join on FactureId = FactureJour_RU.FactureId, FactureModule = FactureJour_RU.Module

    Many RestoredVATSalesTaxTrans_RU records → zero or one FactureJour_RU record

  • InventTransOrigin → InventTransOrigin

    Join on InventTransId = InventTransOrigin.InventTransId

    Many RestoredVATSalesTaxTrans_RU records → exactly one InventTransOrigin record

  • RestoredVATLogTable → RestoredVATLogTable_RU

    Join on TransDate = RestoredVATLogTable_RU.TransDate

    Many RestoredVATSalesTaxTrans_RU records → exactly one RestoredVATLogTable_RU record

  • TaxTable → TaxTable

    Join on TaxCode = TaxTable.TaxCode

    Many RestoredVATSalesTaxTrans_RU records → exactly one TaxTable record

Get this data out

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

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

Email sales@drdynamics.co.uk