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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountNameName of the customer on the line. | String (160)CustName | No | None | |
AccountNumCustomer account the line belongs to. | String (20)CustAccount | No | CustTable.AccountNum | None |
AmountCurInclVATLine amount 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% VAT rate (in accounting currency). | RealAmountMST | No | None | |
AmountLiableToVAT10Amount without VAT for the 10% VAT rate (in accounting currency). | RealAmountMST | No | None | |
AmountLiableToVAT20Amount without VAT for the 20% VAT rate (in accounting currency). | RealAmountMST | No | None | |
AmountNotLiableToVATBase amount that is not liable to VAT (in accounting currency). | RealAmountMST | No | None | |
AnnulmentYes/No flag showing whether the line is annulled. | EnumSalesPurchBookAnnulment_RUNoYes (enum) | No | None | |
CommissionAgentCustomer account of the commission agent. | String (20)CustAccount | No | CustTable.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 | |
CorrectedSalesBookTable_RUPoints to the sales books journal that holds the corrected line. | Int64SalesPurchBookRecId_RU | No | SalesBookTable_RU.RecId | None |
CorrectingFactureIdSystem identifier of the facture that makes the correction. | String (50)FactureId_RU | No | None | |
CorrectionTypeKind of correction: none, correction or revision. | EnumFactureCorrectionType_RU (enum) | No | None | |
CurrencyCodeCurrency of the line. | String (3)CurrencyCode | No | Currency.CurrencyCode | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FactureDateDate the facture was registered. | DateFactureDate_RU | No | None | |
FactureDate_ExternalDate shown on the facture itself. | DateFactureDate_External_RU | No | None | |
FactureExternalIdExternal number of the facture. | String (30)FactureExternalId_RU | No | None | |
FactureIdSystem identifier of the facture the line relates to. | String (50)FactureId_RU | No | None | |
FactureJour_RUPoints to the facture record for this line. | Int64RefRecId | Yes | FactureJour_RU.RecId | None |
JointCorrectionYes/No flag showing whether the correction is consolidated. | EnumFactureJointCorrection_RUNoYes (enum) | No | None | |
LineNumNumber of the line in the sales book. | IntegerSalesBookLineNum_RU | No | None | |
OperationTypeCodesOperation codes linked to 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) in which the payment was made. | StringCompanyId | No | None | |
PaymentDateDate of the payment. | DatePaymTransDate_RU | No | None | |
PaymentRecIdRefSystem record ID of the related payment transaction. | Int64PaymentRefRecId_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 record. | Int64RefRecId | No | FactureJour_RU.RecId | None |
RefRevisedFacturePoints to the revised facture record. | Int64RefRecId | No | FactureJour_RU.RecId | None |
RefTableIdID of the table that the payment reference points to.low confidence | IntegerRefTableId | No | None | |
ReverseDateDate of the reversal. | DateTransDate | No | None | |
ReverseTransYes/No flag marking the line as a correction. | EnumCorrectNoYes (enum) | No | None | |
RevisionSeqNumberSequence number of the revision. | IntegerRevisionNum_RU | No | None | |
RevisionTypeKind of revision, such as revision of the original facture or a sales or purchase revision or correction. | EnumFactureRevisionType_RU (enum) | No | None | |
SalesBookTable_RUPoints to the sales books journal that holds this line. | Int64SalesPurchBookRecId_RU | Yes | SalesBookTable_RU.RecId | 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, credit note, payment or return. | EnumSalesPurchBookTransType_RU (enum) | No | None |
Indexes (8)
SalesBookTable_RUIdxNot unique.
CorrectedSalesBookTable_RUIdxNot unique.
InvoiceIdxNot unique.
FactureIdIdxNot unique.
CorrectedFactureIdxCorrectedFactureExternalId,CorrectedFactureDate,CorrectedSalesBookTable_RUNot unique.
FactureJour_RUIdxNot unique.
RefOriginalFactureIdxNot unique.
RefRevisedFactureIdxNot unique.
Relations (19)
Each relation joins SalesBookTrans_RU to another table on the fields shown.
CustTable→CustTableJoin on
AccountNum = CustTable.AccountNumMany SalesBookTrans_RU records → zero or one CustTable record
CustTransPayment→CustTransJoin on
PaymentRecIdRef = CustTrans.RecId,RefTableId = CustTrans.TableId,PaymentCompany = CustTrans.dataAreaIdMany SalesBookTrans_RU records → zero or one CustTrans record
DataArea_PaymentCompany→DataAreaJoin on
PaymentCompany = DataArea.id,DataArea.isVirtual = nullMany SalesBookTrans_RU records → exactly one DataArea record
FactureJour→FactureJour_RUJoin on
FactureJour_RU = FactureJour_RU.RecIdMany SalesBookTrans_RU records → exactly one FactureJour_RU record
FactureJour_AmountDiff→FactureJour_RUJoin on
TransType = SalesPurchBookTransType_RU::SumDiff,FactureJour_RU.Module = FactureModule_RU::Cust,FactureId = FactureJour_RU.FactureIdMany SalesBookTrans_RU records → zero or one FactureJour_RU record
FactureJour_CreditNote→FactureJour_RUJoin on
TransType = SalesPurchBookTransType_RU::CreditNote,FactureJour_RU.Module = FactureModule_RU::Cust,FactureId = FactureJour_RU.FactureIdMany SalesBookTrans_RU records → zero or one FactureJour_RU record
FactureJour_Invoice→FactureJour_RUJoin on
TransType = SalesPurchBookTransType_RU::Invoice,FactureJour_RU.Module = FactureModule_RU::Cust,FactureId = FactureJour_RU.FactureIdMany SalesBookTrans_RU records → zero or one FactureJour_RU record
FactureJour_Prepayment→FactureJour_RUJoin on
TransType = SalesPurchBookTransType_RU::Prepayment,FactureJour_RU.Module = FactureModule_RU::Cust,FactureId = FactureJour_RU.FactureIdMany SalesBookTrans_RU records → zero or one FactureJour_RU record
FactureJour_RU→FactureJour_RUJoin on
FactureId = FactureJour_RU.FactureIdMany SalesBookTrans_RU records → zero or one FactureJour_RU record
FactureJour_TaxCorrection_Cust→FactureJour_RUJoin on
TransType = SalesPurchBookTransType_RU::TaxCorrection,FactureJour_RU.Module = FactureModule_RU::TaxCorrectionPurch_Cust,FactureId = FactureJour_RU.FactureIdMany SalesBookTrans_RU records → zero or one FactureJour_RU record
FactureJour_TaxCorrection_CustPurch→FactureJour_RUJoin on
TransType = SalesPurchBookTransType_RU::TaxCorrection,FactureJour_RU.Module = FactureModule_RU::TaxCorrectionSales_Vend,FactureId = FactureJour_RU.FactureIdMany SalesBookTrans_RU records → zero or one FactureJour_RU record
FactureJour_TaxCorrection_Vend→FactureJour_RUJoin on
TransType = SalesPurchBookTransType_RU::TaxCorrection,FactureJour_RU.Module = FactureModule_RU::TaxCorrectionSales,FactureId = FactureJour_RU.FactureIdMany SalesBookTrans_RU records → zero or one FactureJour_RU record
FactureJourOriginal→FactureJour_RUJoin on
RefOriginalFacture = FactureJour_RU.RecIdMany SalesBookTrans_RU records → zero or one FactureJour_RU record
FactureJourRevised→FactureJour_RUJoin on
RefRevisedFacture = FactureJour_RU.RecIdMany SalesBookTrans_RU records → zero or one FactureJour_RU record
RefCorrectingFactureJour_RU→FactureJour_RUJoin on
CorrectingFactureId = FactureJour_RU.FactureIdMany SalesBookTrans_RU records → zero or one FactureJour_RU record
SalesBookTable_RU→SalesBookTable_RUJoin on
SalesBookTable_RU = SalesBookTable_RU.RecIdMany SalesBookTrans_RU records → exactly one SalesBookTable_RU record
SalesBookTableCorrected_RU→SalesBookTable_RUJoin on
CorrectedSalesBookTable_RU = SalesBookTable_RU.RecIdMany SalesBookTrans_RU records → zero or one SalesBookTable_RU record
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany SalesBookTrans_RU records → exactly one Currency record
CustTable_CommissionAgent→CustTableJoin on
CommissionAgent = CustTable.AccountNumMany 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.