Table

SalesBookTrans_RU

Sales book lines

Lines of the sales book, used for Russia. Each line links to a facture (FactureJour_RU), a sales books journal (SalesBookTable_RU) and a customer account. It holds amounts split by VAT rate, plus payment, correction and revision details.

Table name
SalesBookTrans_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 (45)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountNameName of the customer on the line.String (160)
CustName
NoNone
AccountNumCustomer account the line belongs to.String (20)
CustAccount
NoCustTable.AccountNumNone
AmountCurInclVATLine amount 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% VAT rate (in accounting currency).Real
AmountMST
NoNone
AmountLiableToVAT10Amount without VAT for the 10% VAT rate (in accounting currency).Real
AmountMST
NoNone
AmountLiableToVAT20Amount without VAT for the 20% VAT rate (in accounting currency).Real
AmountMST
NoNone
AmountNotLiableToVATBase amount that is not liable to VAT (in accounting currency).Real
AmountMST
NoNone
AnnulmentYes/No flag showing whether the line is annulled.Enum
SalesPurchBookAnnulment_RU
NoYes (enum)
NoNone
CommissionAgentCustomer account of the commission agent.String (20)
CustAccount
NoCustTable.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
CorrectedSalesBookTable_RUPoints to the sales books journal that holds the corrected line.Int64
SalesPurchBookRecId_RU
NoSalesBookTable_RU.RecIdNone
CorrectingFactureIdSystem identifier of the facture that makes the correction.String (50)
FactureId_RU
NoNone
CorrectionTypeKind of correction: none, correction or revision.Enum
FactureCorrectionType_RU (enum)
NoNone
CurrencyCodeCurrency of the line.String (3)
CurrencyCode
NoCurrency.CurrencyCodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FactureDateDate the facture was registered.Date
FactureDate_RU
NoNone
FactureDate_ExternalDate shown on the facture itself.Date
FactureDate_External_RU
NoNone
FactureExternalIdExternal number of the facture.String (30)
FactureExternalId_RU
NoNone
FactureIdSystem identifier of the facture the line relates to.String (50)
FactureId_RU
NoNone
FactureJour_RUPoints to the facture record for this line.Int64
RefRecId
YesFactureJour_RU.RecIdNone
JointCorrectionYes/No flag showing whether the correction is consolidated.Enum
FactureJointCorrection_RU
NoYes (enum)
NoNone
LineNumNumber of the line in the sales book.Integer
SalesBookLineNum_RU
NoNone
OperationTypeCodesOperation codes linked to 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) in which the payment was made.String
CompanyId
NoNone
PaymentDateDate of the payment.Date
PaymTransDate_RU
NoNone
PaymentRecIdRefSystem record ID of the related payment transaction.Int64
PaymentRefRecId_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 record.Int64
RefRecId
NoFactureJour_RU.RecIdNone
RefRevisedFacturePoints to the revised facture record.Int64
RefRecId
NoFactureJour_RU.RecIdNone
RefTableIdID of the table that the payment reference points to.low confidenceInteger
RefTableId
NoNone
ReverseDateDate of the reversal.Date
TransDate
NoNone
ReverseTransYes/No flag marking the line as a correction.Enum
Correct
NoYes (enum)
NoNone
RevisionSeqNumberSequence number of the revision.Integer
RevisionNum_RU
NoNone
RevisionTypeKind of revision, such as revision of the original facture or a sales or purchase revision or correction.Enum
FactureRevisionType_RU (enum)
NoNone
SalesBookTable_RUPoints to the sales books journal that holds this line.Int64
SalesPurchBookRecId_RU
YesSalesBookTable_RU.RecIdNone
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, credit note, payment or return.Enum
SalesPurchBookTransType_RU (enum)
NoNone

Indexes (8)

Relations (19)

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

  • CustTable → CustTable

    Join on AccountNum = CustTable.AccountNum

    Many SalesBookTrans_RU records → zero or one CustTable record

  • CustTransPayment → CustTrans

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

    Many SalesBookTrans_RU records → zero or one CustTrans record

  • DataArea_PaymentCompany → DataArea

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

    Many SalesBookTrans_RU records → exactly one DataArea record

  • FactureJour → FactureJour_RU

    Join on FactureJour_RU = FactureJour_RU.RecId

    Many SalesBookTrans_RU records → exactly one FactureJour_RU record

  • FactureJour_AmountDiff → FactureJour_RU

    Join on TransType = SalesPurchBookTransType_RU::SumDiff, FactureJour_RU.Module = FactureModule_RU::Cust, FactureId = FactureJour_RU.FactureId

    Many SalesBookTrans_RU records → zero or one FactureJour_RU record

  • FactureJour_CreditNote → FactureJour_RU

    Join on TransType = SalesPurchBookTransType_RU::CreditNote, FactureJour_RU.Module = FactureModule_RU::Cust, FactureId = FactureJour_RU.FactureId

    Many SalesBookTrans_RU records → zero or one FactureJour_RU record

  • FactureJour_Invoice → FactureJour_RU

    Join on TransType = SalesPurchBookTransType_RU::Invoice, FactureJour_RU.Module = FactureModule_RU::Cust, FactureId = FactureJour_RU.FactureId

    Many SalesBookTrans_RU records → zero or one FactureJour_RU record

  • FactureJour_Prepayment → FactureJour_RU

    Join on TransType = SalesPurchBookTransType_RU::Prepayment, FactureJour_RU.Module = FactureModule_RU::Cust, FactureId = FactureJour_RU.FactureId

    Many SalesBookTrans_RU records → zero or one FactureJour_RU record

  • FactureJour_RU → FactureJour_RU

    Join on FactureId = FactureJour_RU.FactureId

    Many SalesBookTrans_RU records → zero or one FactureJour_RU record

  • FactureJour_TaxCorrection_Cust → FactureJour_RU

    Join on TransType = SalesPurchBookTransType_RU::TaxCorrection, FactureJour_RU.Module = FactureModule_RU::TaxCorrectionPurch_Cust, FactureId = FactureJour_RU.FactureId

    Many SalesBookTrans_RU records → zero or one FactureJour_RU record

  • FactureJour_TaxCorrection_CustPurch → FactureJour_RU

    Join on TransType = SalesPurchBookTransType_RU::TaxCorrection, FactureJour_RU.Module = FactureModule_RU::TaxCorrectionSales_Vend, FactureId = FactureJour_RU.FactureId

    Many SalesBookTrans_RU records → zero or one FactureJour_RU record

  • FactureJour_TaxCorrection_Vend → FactureJour_RU

    Join on TransType = SalesPurchBookTransType_RU::TaxCorrection, FactureJour_RU.Module = FactureModule_RU::TaxCorrectionSales, FactureId = FactureJour_RU.FactureId

    Many SalesBookTrans_RU records → zero or one FactureJour_RU record

  • FactureJourOriginal → FactureJour_RU

    Join on RefOriginalFacture = FactureJour_RU.RecId

    Many SalesBookTrans_RU records → zero or one FactureJour_RU record

  • FactureJourRevised → FactureJour_RU

    Join on RefRevisedFacture = FactureJour_RU.RecId

    Many SalesBookTrans_RU records → zero or one FactureJour_RU record

  • RefCorrectingFactureJour_RU → FactureJour_RU

    Join on CorrectingFactureId = FactureJour_RU.FactureId

    Many SalesBookTrans_RU records → zero or one FactureJour_RU record

  • SalesBookTable_RU → SalesBookTable_RU

    Join on SalesBookTable_RU = SalesBookTable_RU.RecId

    Many SalesBookTrans_RU records → exactly one SalesBookTable_RU record

  • SalesBookTableCorrected_RU → SalesBookTable_RU

    Join on CorrectedSalesBookTable_RU = SalesBookTable_RU.RecId

    Many SalesBookTrans_RU records → zero or one SalesBookTable_RU record

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many SalesBookTrans_RU records → exactly one Currency record

  • CustTable_CommissionAgent → CustTable

    Join on CommissionAgent = CustTable.AccountNum

    Many SalesBookTrans_RU records → zero or one CustTable record

Get this data out

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

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

Email sales@drdynamics.co.uk