Table

PurchBookTrans_RU

Purchase book lines

Holds the lines of a purchase book used for Russia. Each line records a facture (tax invoice), its vendor, VAT amounts and dates, and the type of transaction. Lines link to a purchase book journal through PurchBookTable_RU and to the facture journal. No key is listed in the metadata.

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

Fields (49)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountNameName of the vendor on the line.String (160)
VendName
NoNone
AccountNumVendor account, pointing to the vendor record.String (20)
VendAccount
NoVendTable.AccountNumNone
AmountCurInclVATAmount including VAT in the transaction currency.Real
AmountCurInclVAT_RU
NoNone
AmountInclVATLine amount including VAT, in accounting currency.Real
AmountMSTinclVAT_RU
NoNone
AmountLiableToVAT0Amount without VAT for the 0% rate, in accounting currency.Real
AmountMST
NoNone
AmountLiableToVAT10Amount without VAT for the 10% rate, in accounting currency.Real
AmountMST
NoNone
AmountLiableToVAT20Amount without VAT for the 20% rate, in accounting currency.Real
AmountMST
NoNone
AmountNotLiableToVATBase amount that is not subject to VAT, in accounting currency.Real
AmountMST
NoNone
AnnulmentYes/No flag showing whether the line is an annulment.Enum
SalesPurchBookAnnulment_RU
NoYes (enum)
NoNone
CommissionAgentVendor account of the commission agent.String (20)
VendAccount
NoVendTable.AccountNumNone
CorrectedFactureDateDate of the facture that this line corrects.Date
FactureDate_RU
NoNone
CorrectedFactureExternalIdExternal number of the facture that this line corrects.String (30)
FactureExternalId_RU
NoNone
CorrectedPurchBookTable_RUPoints to the purchase book journal that holds the corrected entry.Int64
SalesPurchBookRecId_RU
NoPurchBookTable_RU.RecIdNone
CorrectionTypeKind of correction: none, correction or revision.Enum
FactureCorrectionType_RU (enum)
NoNone
CountryGTDText listing customs declaration numbers and the origin country.String (1260)
Str1260
NoNone
CurrencyCodeCurrency of the line, pointing to the currency record.String (3)
CurrencyCode
NoCurrency.CurrencyCodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeliveryDateDate the goods or services were delivered.Date
TransDate
NoNone
FactureDateDate the facture was registered.Date
FactureDate_RU
NoNone
FactureDate_ExternalDate shown on the external facture document.Date
FactureDate_External_RU
NoNone
FactureExternalIdFacture number as shown on the external document.String (30)
FactureExternalId_RU
NoNone
FactureIdSystem identifier of the facture, linked to the facture journal.String (50)
FactureId_RU
YesNone
FactureJour_RUPoints to the facture journal record behind the line.Int64
RefRecId
YesFactureJour_RU.RecIdNone
InvoiceCompanyCompany (legal entity) that holds the invoice transaction.String
CompanyId
NoNone
InvoiceRecIdRefSystem record ID of the related invoice transaction.Int64
RefRecId
NoNone
JointCorrectionYes/No flag showing whether the correction is consolidated.Enum
FactureJointCorrection_RU
NoYes (enum)
NoNone
LineNumSequence number of the line in the purchase book.Integer
PurchBookLineNum_RU
NoNone
OperationTypeCodesOperation type codes for the facture.String (8)
FactureOperationTypeCodes_RU
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymDocumentNumNumber of the payment document.String (20)
DocumentNum
NoNone
PaymentCompanyCompany (legal entity) that holds the payment transaction.String
CompanyId
NoNone
PaymentDateDate the payment was made.Date
PaymTransDate_RU
NoNone
PaymentRecIdRefSystem record ID of the related payment transaction.Int64
RefRecId
NoNone
PurchBookTable_RUPoints to the purchase book journal that owns this line.Int64
SalesPurchBookRecId_RU
YesPurchBookTable_RU.RecIdNone
PurchBookTransDateDate the line was checked for the purchase book.Date
PurchBookTransDate_RU
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
RefOriginalFacturePoints to the original facture journal record.Int64
RefRecId
NoFactureJour_RU.RecIdNone
RefRevisedFacturePoints to the revised facture journal record.Int64
RefRecId
NoFactureJour_RU.RecIdNone
RefTableIdID of the table that the reference record belongs to.Integer
RefTableId
NoNone
ReverseDateDate of the reversal.Date
TransDate
NoNone
ReverseTransYes/No flag showing whether the line is a correction.Enum
Correct
NoYes (enum)
NoNone
RevisionSeqNumberNumber of the revision.Integer
RevisionNum_RU
NoNone
RevisionTypeKind of revision, such as revision of the original facture or a revision or correction for sales or purchases.Enum
FactureRevisionType_RU (enum)
NoNone
SettlementDateDate of the settlement.Date
TransDate
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxAmountVAT10VAT amount at the 10% rate.Real
TaxAmountVAT10_RU
NoNone
TaxAmountVAT20VAT amount at the 20% rate.Real
TaxAmountVAT20_RU
NoNone
TransTypeType of transaction, such as invoice, payment, credit note or return.Enum
SalesPurchBookTransType_RU (enum)
NoNone

Indexes (9)

Relations (16)

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

  • CorrectedPurchBookTable_RU → PurchBookTable_RU

    Join on CorrectedPurchBookTable_RU = PurchBookTable_RU.RecId

    Many PurchBookTrans_RU records → zero or one PurchBookTable_RU record

  • CustTransInvoice → CustTrans

    Join on InvoiceRecIdRef = CustTrans.RecId, RefTableId = CustTrans.TableId, TransType = SalesPurchBookTransType_RU::PrepaymentStorno, InvoiceCompany = CustTrans.dataAreaId

    Many PurchBookTrans_RU records → zero or one CustTrans record

  • CustTransPayment → CustTrans

    Join on PaymentRecIdRef = CustTrans.RecId, RefTableId = CustTrans.TableId, TransType = SalesPurchBookTransType_RU::PrepaymentStorno, PaymentCompany = CustTrans.dataAreaId

    Many PurchBookTrans_RU records → zero or one CustTrans record

  • DataAreaInvoice → DataArea

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

    Many PurchBookTrans_RU records → exactly one DataArea record

  • DataAreaPayment → DataArea

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

    Many PurchBookTrans_RU records → exactly one DataArea record

  • EmplTrans → EmplTrans_RU

    Join on InvoiceRecIdRef = EmplTrans_RU.RecId, RefTableId = EmplTrans_RU.TableId

    Many PurchBookTrans_RU records → zero or one EmplTrans_RU record

  • FactureJour → FactureJour_RU

    Join on FactureJour_RU = FactureJour_RU.RecId

    Many PurchBookTrans_RU records → exactly one FactureJour_RU record

  • FactureJour_RU → FactureJour_RU

    Join on FactureId = FactureJour_RU.FactureId

    Many PurchBookTrans_RU records → exactly one FactureJour_RU record

  • FactureJourOriginal → FactureJour_RU

    Join on RefOriginalFacture = FactureJour_RU.RecId

    Many PurchBookTrans_RU records → exactly one FactureJour_RU record

  • FactureJourRevised → FactureJour_RU

    Join on RefRevisedFacture = FactureJour_RU.RecId

    Many PurchBookTrans_RU records → exactly one FactureJour_RU record

  • PurchBookTable_RU → PurchBookTable_RU

    Join on PurchBookTable_RU = PurchBookTable_RU.RecId

    Many PurchBookTrans_RU records → exactly one PurchBookTable_RU record

  • VendTable → VendTable

    Join on AccountNum = VendTable.AccountNum

    Many PurchBookTrans_RU records → exactly one VendTable record

  • VendTransInvoice → VendTrans

    Join on InvoiceRecIdRef = VendTrans.RecId, RefTableId = VendTrans.TableId, InvoiceCompany = VendTrans.dataAreaId

    Many PurchBookTrans_RU records → zero or one VendTrans record

  • VendTransPayment → VendTrans

    Join on PaymentRecIdRef = VendTrans.RecId, RefTableId = VendTrans.TableId, PaymentCompany = VendTrans.dataAreaId

    Many PurchBookTrans_RU records → zero or one VendTrans record

  • VendTable_ComissionAgent → VendTable

    Join on CommissionAgent = VendTable.AccountNum

    Exactly one PurchBookTrans_RU record → exactly one VendTable record

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many PurchBookTrans_RU records → exactly one Currency record

Get this data out

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

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

Email sales@drdynamics.co.uk