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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountNameName of the vendor on the line. | String (160)VendName | No | None | |
AccountNumVendor account, pointing to the vendor record. | String (20)VendAccount | No | VendTable.AccountNum | None |
AmountCurInclVATAmount including VAT in the transaction currency. | RealAmountCurInclVAT_RU | No | None | |
AmountInclVATLine amount including VAT, in accounting currency. | RealAmountMSTinclVAT_RU | No | None | |
AmountLiableToVAT0Amount without VAT for the 0% rate, in accounting currency. | RealAmountMST | No | None | |
AmountLiableToVAT10Amount without VAT for the 10% rate, in accounting currency. | RealAmountMST | No | None | |
AmountLiableToVAT20Amount without VAT for the 20% rate, in accounting currency. | RealAmountMST | No | None | |
AmountNotLiableToVATBase amount that is not subject to VAT, in accounting currency. | RealAmountMST | No | None | |
AnnulmentYes/No flag showing whether the line is an annulment. | EnumSalesPurchBookAnnulment_RUNoYes (enum) | No | None | |
CommissionAgentVendor account of the commission agent. | String (20)VendAccount | No | VendTable.AccountNum | None |
CorrectedFactureDateDate of the facture that this line corrects. | DateFactureDate_RU | No | None | |
CorrectedFactureExternalIdExternal number of the facture that this line corrects. | String (30)FactureExternalId_RU | No | None | |
CorrectedPurchBookTable_RUPoints to the purchase book journal that holds the corrected entry. | Int64SalesPurchBookRecId_RU | No | PurchBookTable_RU.RecId | None |
CorrectionTypeKind of correction: none, correction or revision. | EnumFactureCorrectionType_RU (enum) | No | None | |
CountryGTDText listing customs declaration numbers and the origin country. | String (1260)Str1260 | No | None | |
CurrencyCodeCurrency of the line, pointing to the currency record. | String (3)CurrencyCode | No | Currency.CurrencyCode | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DeliveryDateDate the goods or services were delivered. | DateTransDate | No | None | |
FactureDateDate the facture was registered. | DateFactureDate_RU | No | None | |
FactureDate_ExternalDate shown on the external facture document. | DateFactureDate_External_RU | No | None | |
FactureExternalIdFacture number as shown on the external document. | String (30)FactureExternalId_RU | No | None | |
FactureIdSystem identifier of the facture, linked to the facture journal. | String (50)FactureId_RU | Yes | None | |
FactureJour_RUPoints to the facture journal record behind the line. | Int64RefRecId | Yes | FactureJour_RU.RecId | None |
InvoiceCompanyCompany (legal entity) that holds the invoice transaction. | StringCompanyId | No | None | |
InvoiceRecIdRefSystem record ID of the related invoice transaction. | Int64RefRecId | No | None | |
JointCorrectionYes/No flag showing whether the correction is consolidated. | EnumFactureJointCorrection_RUNoYes (enum) | No | None | |
LineNumSequence number of the line in the purchase book. | IntegerPurchBookLineNum_RU | No | None | |
OperationTypeCodesOperation type codes for the facture. | String (8)FactureOperationTypeCodes_RU | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymDocumentNumNumber of the payment document. | String (20)DocumentNum | No | None | |
PaymentCompanyCompany (legal entity) that holds the payment transaction. | StringCompanyId | No | None | |
PaymentDateDate the payment was made. | DatePaymTransDate_RU | No | None | |
PaymentRecIdRefSystem record ID of the related payment transaction. | Int64RefRecId | No | None | |
PurchBookTable_RUPoints to the purchase book journal that owns this line. | Int64SalesPurchBookRecId_RU | Yes | PurchBookTable_RU.RecId | None |
PurchBookTransDateDate the line was checked for the purchase book. | DatePurchBookTransDate_RU | 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 | |
RefOriginalFacturePoints to the original facture journal record. | Int64RefRecId | No | FactureJour_RU.RecId | None |
RefRevisedFacturePoints to the revised facture journal record. | Int64RefRecId | No | FactureJour_RU.RecId | None |
RefTableIdID of the table that the reference record belongs to. | IntegerRefTableId | No | None | |
ReverseDateDate of the reversal. | DateTransDate | No | None | |
ReverseTransYes/No flag showing whether the line is a correction. | EnumCorrectNoYes (enum) | No | None | |
RevisionSeqNumberNumber of the revision. | IntegerRevisionNum_RU | No | None | |
RevisionTypeKind of revision, such as revision of the original facture or a revision or correction for sales or purchases. | EnumFactureRevisionType_RU (enum) | No | None | |
SettlementDateDate of the settlement. | DateTransDate | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxAmountVAT10VAT amount at the 10% rate. | RealTaxAmountVAT10_RU | No | None | |
TaxAmountVAT20VAT amount at the 20% rate. | RealTaxAmountVAT20_RU | No | None | |
TransTypeType of transaction, such as invoice, payment, credit note or return. | EnumSalesPurchBookTransType_RU (enum) | No | None |
Indexes (9)
CorrectedPurchBookTable_RUIdxNot unique.
FactureIdxNot unique.
BookLineIdxNot unique.
SettlementIdxInvoiceRecIdRef,PaymentRecIdRef,SettlementDateNot unique.
InvoiceIdxFactureExternalId,AccountNum,FactureDateNot unique.
CorrectedFactureIdxCorrectedFactureExternalId,CorrectedFactureDate,CorrectedPurchBookTable_RUNot unique.
FactureJour_RUIdxNot unique.
RefRevisedFactureIdxNot unique.
RefOriginalFactureIdxNot unique.
Relations (16)
Each relation joins PurchBookTrans_RU to another table on the fields shown.
CorrectedPurchBookTable_RU→PurchBookTable_RUJoin on
CorrectedPurchBookTable_RU = PurchBookTable_RU.RecIdMany PurchBookTrans_RU records → zero or one PurchBookTable_RU record
CustTransInvoice→CustTransJoin on
InvoiceRecIdRef = CustTrans.RecId,RefTableId = CustTrans.TableId,TransType = SalesPurchBookTransType_RU::PrepaymentStorno,InvoiceCompany = CustTrans.dataAreaIdMany PurchBookTrans_RU records → zero or one CustTrans record
CustTransPayment→CustTransJoin on
PaymentRecIdRef = CustTrans.RecId,RefTableId = CustTrans.TableId,TransType = SalesPurchBookTransType_RU::PrepaymentStorno,PaymentCompany = CustTrans.dataAreaIdMany PurchBookTrans_RU records → zero or one CustTrans record
DataAreaInvoice→DataAreaJoin on
InvoiceCompany = DataArea.id,DataArea.isVirtual = nullMany PurchBookTrans_RU records → exactly one DataArea record
DataAreaPayment→DataAreaJoin on
PaymentCompany = DataArea.id,DataArea.isVirtual = nullMany PurchBookTrans_RU records → exactly one DataArea record
EmplTrans→EmplTrans_RUJoin on
InvoiceRecIdRef = EmplTrans_RU.RecId,RefTableId = EmplTrans_RU.TableIdMany PurchBookTrans_RU records → zero or one EmplTrans_RU record
FactureJour→FactureJour_RUJoin on
FactureJour_RU = FactureJour_RU.RecIdMany PurchBookTrans_RU records → exactly one FactureJour_RU record
FactureJour_RU→FactureJour_RUJoin on
FactureId = FactureJour_RU.FactureIdMany PurchBookTrans_RU records → exactly one FactureJour_RU record
FactureJourOriginal→FactureJour_RUJoin on
RefOriginalFacture = FactureJour_RU.RecIdMany PurchBookTrans_RU records → exactly one FactureJour_RU record
FactureJourRevised→FactureJour_RUJoin on
RefRevisedFacture = FactureJour_RU.RecIdMany PurchBookTrans_RU records → exactly one FactureJour_RU record
PurchBookTable_RU→PurchBookTable_RUJoin on
PurchBookTable_RU = PurchBookTable_RU.RecIdMany PurchBookTrans_RU records → exactly one PurchBookTable_RU record
VendTable→VendTableJoin on
AccountNum = VendTable.AccountNumMany PurchBookTrans_RU records → exactly one VendTable record
VendTransInvoice→VendTransJoin on
InvoiceRecIdRef = VendTrans.RecId,RefTableId = VendTrans.TableId,InvoiceCompany = VendTrans.dataAreaIdMany PurchBookTrans_RU records → zero or one VendTrans record
VendTransPayment→VendTransJoin on
PaymentRecIdRef = VendTrans.RecId,RefTableId = VendTrans.TableId,PaymentCompany = VendTrans.dataAreaIdMany PurchBookTrans_RU records → zero or one VendTrans record
VendTable_ComissionAgent→VendTableJoin on
CommissionAgent = VendTable.AccountNumExactly one PurchBookTrans_RU record → exactly one VendTable record
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany 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.