Table

TaxReportTable

VAT reports

Holds VAT reports (declarations) with details used for Spain, such as document number, electronic code and presentation type. Each report links to a VAT book and a settlement period. It also records whether the report was submitted, by whom and when.

Table name
TaxReportTable
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 (28)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ContactPersonName of the contact person for the declaration, used for Spain.String (40)
ContactPersonName_ES
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DescriptionFree-text description of the VAT report.String (60)
Description
NoNone
DocumentNumDocument number of the declaration, used for Spain.String (4)
DocumentNum_ES
NoNone
ElectronicCodeElectronic code of the declaration, used for Spain.String (16)
ElectronicCode_ES
NoNone
FirstNumFirst number of the numbering range for the report.String (20)
Num
NoNone
FromDateStart date of the period the report covers.Date
TransDate
NoNone
LastNumLast number of the numbering range for the report.String (20)
Num
NoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NumMethodHow numbers are assigned: by document number, number sequence code, manually or by a 340 sequence.Enum
TaxReportNumMethod (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PresentationTypeHow the declaration is submitted: telematic, CD-R or printed report. Used for Spain.Enum
PresentationType_ES (enum)
NoNone
PreviousDeclarationNumber of the earlier declaration that this one follows, used for Spain.String (13)
PreviousDeclaration_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
ReplacementDeclarationYes/No flag showing whether this declaration replaces an earlier one, used for Spain.Enum
ReplacementDeclaration_ES
NoYes (enum)
NoNone
ReportedYes/No flag showing whether the report has been submitted, used for Spain.Enum
Reported_ES
NoYes (enum)
NoNone
ReportedByUser who submitted the report. Links to the user record.String
ReportedBy_ES
NoNone
ReportedDateDate on which the report was presented, used for Spain.Date
ReportedDate_ES
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxBookTableRecord ID of the Spanish VAT book that the report refers to.Int64
TaxBookTableRecId
YesTaxBookTable.RecIdNone
TaxPeriodSales tax settlement period of the report. Links to the sales tax period.String
TaxPeriod
NoTaxPeriodHead.TaxPeriodNone
TelephoneTelephone number for the declaration, used for Spain.String (9)
Telephone_ES
NoNone
ThresholdAmountMinimum amount of cash payments. The currency is not stated in the metadata.Real
Amount
NoNone
ToDateEnd date of the period the report covers.Date
TransDate
NoNone

Indexes (1)

Relations (3)

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

  • TaxBookTable → TaxBookTable

    Join on TaxBookTable = TaxBookTable.RecId

    Many TaxReportTable records → exactly one TaxBookTable record

  • TaxPeriodHead → TaxPeriodHead

    Join on TaxPeriod = TaxPeriodHead.TaxPeriod

    Many TaxReportTable records → zero or one TaxPeriodHead record

  • UserInfo → UserInfo

    Join on ReportedBy = UserInfo.id

    Many TaxReportTable records → zero or one UserInfo record

Get this data out

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

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

Email sales@drdynamics.co.uk