Table

TaxReportLines

VAT report lines

Holds VAT report lines, with fields and values used for Spain such as equivalence charge, property sales and book type. Each line points to a VAT report and may relate to a customer transaction, a customer account and sales tax codes.

Table name
TaxReportLines
Module
Tax
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 (34)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountNumCustomer account that the line refers to.String (20)
CustAccount
NoCustTable.AccountNumNone
AmountPropertyVATAmount of a property sale that is subject to VAT.Real
Amount
NoNone
CashCollectableCash amount received.Real
Amount
NoNone
CashInvoiceYearFiscal year of the invoices for the cash received.Integer
TaxReport347CashInvoiceYear
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DocumentNumNumber of the source document.String (50)
DocumentNumLarge
NoNone
ExcludedYes/no flag showing whether the line is excluded.Enum
NoYesId
NoYes (enum)
NoNone
InvoiceDateDate of the invoice.Date
InvoiceDate
NoNone
NameName linked to the line, such as the customer name.String (60)
Name
NoNone
OperationTypeOne-character code for the type of operation.String (1)
TaxReportOperationType_ES
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PropertyTaxNumberProperty tax account number of the building or property.String (25)
TaxPropertyNumber_ES
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
RefRecIdPoints to the VAT report that the line belongs to.Int64
RefRecId
NoTaxReportTable.RecIdNone
ReportRecordRegister number of the report record.String (50)
TaxReportRecord
NoNone
SituationCodeCode for the location of the building or property.Enum
TaxReportSituationCode_ES (enum)
NoNone
SourceRecIdSystem record ID of the related customer transaction.Int64
RefRecId
NoNone
SourceTableIdID of the table that holds the related source record.Integer
RefTableId
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxAmountSales tax amount of the line.Real
TaxAmount
NoNone
TaxAmountEqEquivalence charge amount.Real
TaxAmount
NoNone
TaxBaseBase amount on which tax is calculated, labelled Origin.Real
TaxBase
NoNone
TaxBaseEqBase amount for the equivalence charge.Real
TaxBase
NoNone
TaxBookTypeType of tax book, such as sales tax receivable, payable or all books.Enum
TaxBookType_ES (enum)
NoNone
TaxCodeSales tax code of the line.String
TaxCode
NoTaxTable.TaxCodeNone
TaxCodeEqSales tax code used for the equivalence charge.String
TaxCode
NoTaxTable.TaxCodeNone
TaxInCostPriceSales tax that cannot be deducted; currency not stated in the metadata.Real
TaxAmountCur
NoNone
TaxValueTax rate or value of the sales tax code.Real
TaxValue
NoNone
TaxValueEqTax rate or value for the equivalence charge.Real
TaxValue
NoNone
TransDateTransaction date of the line.Date
TransDate
NoNone
UnpaidInvoiceAmountAmount not yet settled, in accounting currency.Real
AmountMST
NoNone
VATNumTax exempt number of the customer.String (20)
VATNum
NoNone
VoucherVoucher number of the transaction.String (20)
Voucher
NoNone

Indexes (1)

Relations (6)

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

  • CustTable → CustTable

    Join on AccountNum = CustTable.AccountNum

    Zero or one TaxReportLines record → zero or one CustTable record

  • CustTrans → CustTrans

    Join on SourceTableId = CustTrans.TableId, SourceRecId = CustTrans.RecId

    Many TaxReportLines records → zero or one CustTrans record

  • TaxReportTable → TaxReportTable

    Join on RefRecId = TaxReportTable.RecId

    Many TaxReportLines records → zero or one TaxReportTable record

  • TaxTable_TaxCode → TaxTable

    Join on TaxCode = TaxTable.TaxCode

    Many TaxReportLines records → zero or one TaxTable record

  • TaxTable_TaxCodeEq → TaxTable

    Join on TaxCodeEq = TaxTable.TaxCode

    Many TaxReportLines records → zero or one TaxTable record

  • VendTrans → VendTrans

    Join on SourceTableId = VendTrans.TableId, SourceRecId = VendTrans.RecId

    Many TaxReportLines records → zero or one VendTrans record

Get this data out

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

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

Email sales@drdynamics.co.uk