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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountNumCustomer account that the line refers to. | String (20)CustAccount | No | CustTable.AccountNum | None |
AmountPropertyVATAmount of a property sale that is subject to VAT. | RealAmount | No | None | |
CashCollectableCash amount received. | RealAmount | No | None | |
CashInvoiceYearFiscal year of the invoices for the cash received. | IntegerTaxReport347CashInvoiceYear | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DocumentNumNumber of the source document. | String (50)DocumentNumLarge | No | None | |
ExcludedYes/no flag showing whether the line is excluded. | EnumNoYesIdNoYes (enum) | No | None | |
InvoiceDateDate of the invoice. | DateInvoiceDate | No | None | |
NameName linked to the line, such as the customer name. | String (60)Name | No | None | |
OperationTypeOne-character code for the type of operation. | String (1)TaxReportOperationType_ES | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PropertyTaxNumberProperty tax account number of the building or property. | String (25)TaxPropertyNumber_ES | 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 | |
RefRecIdPoints to the VAT report that the line belongs to. | Int64RefRecId | No | TaxReportTable.RecId | None |
ReportRecordRegister number of the report record. | String (50)TaxReportRecord | No | None | |
SituationCodeCode for the location of the building or property. | EnumTaxReportSituationCode_ES (enum) | No | None | |
SourceRecIdSystem record ID of the related customer transaction. | Int64RefRecId | No | None | |
SourceTableIdID of the table that holds the related source record. | IntegerRefTableId | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxAmountSales tax amount of the line. | RealTaxAmount | No | None | |
TaxAmountEqEquivalence charge amount. | RealTaxAmount | No | None | |
TaxBaseBase amount on which tax is calculated, labelled Origin. | RealTaxBase | No | None | |
TaxBaseEqBase amount for the equivalence charge. | RealTaxBase | No | None | |
TaxBookTypeType of tax book, such as sales tax receivable, payable or all books. | EnumTaxBookType_ES (enum) | No | None | |
TaxCodeSales tax code of the line. | StringTaxCode | No | TaxTable.TaxCode | None |
TaxCodeEqSales tax code used for the equivalence charge. | StringTaxCode | No | TaxTable.TaxCode | None |
TaxInCostPriceSales tax that cannot be deducted; currency not stated in the metadata. | RealTaxAmountCur | No | None | |
TaxValueTax rate or value of the sales tax code. | RealTaxValue | No | None | |
TaxValueEqTax rate or value for the equivalence charge. | RealTaxValue | No | None | |
TransDateTransaction date of the line. | DateTransDate | No | None | |
UnpaidInvoiceAmountAmount not yet settled, in accounting currency. | RealAmountMST | No | None | |
VATNumTax exempt number of the customer. | String (20)VATNum | No | None | |
VoucherVoucher number of the transaction. | String (20)Voucher | No | None |
Indexes (1)
Relations (6)
Each relation joins TaxReportLines to another table on the fields shown.
CustTable→CustTableJoin on
AccountNum = CustTable.AccountNumZero or one TaxReportLines record → zero or one CustTable record
CustTrans→CustTransJoin on
SourceTableId = CustTrans.TableId,SourceRecId = CustTrans.RecIdMany TaxReportLines records → zero or one CustTrans record
TaxReportTable→TaxReportTableJoin on
RefRecId = TaxReportTable.RecIdMany TaxReportLines records → zero or one TaxReportTable record
TaxTable_TaxCode→TaxTableJoin on
TaxCode = TaxTable.TaxCodeMany TaxReportLines records → zero or one TaxTable record
TaxTable_TaxCodeEq→TaxTableJoin on
TaxCodeEq = TaxTable.TaxCodeMany TaxReportLines records → zero or one TaxTable record
VendTrans→VendTransJoin on
SourceTableId = VendTrans.TableId,SourceRecId = VendTrans.RecIdMany 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.