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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ContactPersonName of the contact person for the declaration, used for Spain. | String (40)ContactPersonName_ES | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DescriptionFree-text description of the VAT report. | String (60)Description | No | None | |
DocumentNumDocument number of the declaration, used for Spain. | String (4)DocumentNum_ES | No | None | |
ElectronicCodeElectronic code of the declaration, used for Spain. | String (16)ElectronicCode_ES | No | None | |
FirstNumFirst number of the numbering range for the report. | String (20)Num | No | None | |
FromDateStart date of the period the report covers. | DateTransDate | No | None | |
LastNumLast number of the numbering range for the report. | String (20)Num | No | None | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
NumMethodHow numbers are assigned: by document number, number sequence code, manually or by a 340 sequence. | EnumTaxReportNumMethod (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PresentationTypeHow the declaration is submitted: telematic, CD-R or printed report. Used for Spain. | EnumPresentationType_ES (enum) | No | None | |
PreviousDeclarationNumber of the earlier declaration that this one follows, used for Spain. | String (13)PreviousDeclaration_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 | |
ReplacementDeclarationYes/No flag showing whether this declaration replaces an earlier one, used for Spain. | EnumReplacementDeclaration_ESNoYes (enum) | No | None | |
ReportedYes/No flag showing whether the report has been submitted, used for Spain. | EnumReported_ESNoYes (enum) | No | None | |
ReportedByUser who submitted the report. Links to the user record. | StringReportedBy_ES | No | None | |
ReportedDateDate on which the report was presented, used for Spain. | DateReportedDate_ES | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxBookTableRecord ID of the Spanish VAT book that the report refers to. | Int64TaxBookTableRecId | Yes | TaxBookTable.RecId | None |
TaxPeriodSales tax settlement period of the report. Links to the sales tax period. | StringTaxPeriod | No | TaxPeriodHead.TaxPeriod | None |
TelephoneTelephone number for the declaration, used for Spain. | String (9)Telephone_ES | No | None | |
ThresholdAmountMinimum amount of cash payments. The currency is not stated in the metadata. | RealAmount | No | None | |
ToDateEnd date of the period the report covers. | DateTransDate | No | None |
Indexes (1)
TaxBookTableIdxNot unique.
Relations (3)
Each relation joins TaxReportTable to another table on the fields shown.
TaxBookTable→TaxBookTableJoin on
TaxBookTable = TaxBookTable.RecIdMany TaxReportTable records → exactly one TaxBookTable record
TaxPeriodHead→TaxPeriodHeadJoin on
TaxPeriod = TaxPeriodHead.TaxPeriodMany TaxReportTable records → zero or one TaxPeriodHead record
UserInfo→UserInfoJoin on
ReportedBy = UserInfo.idMany 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.