Table
TaxReportVoucher
Sales tax payments
Holds sales tax payment records, one per settlement of a tax period. The key is the settlement period, the date and the system record ID. Rows show the period dates, voucher, version, and whether the payment was reversed or corrected. Some fields are used for India (registration number, tax type) and Italy (zero lines, reverse transactions).
- Table name
TaxReportVoucher- Module
Tax- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
LedgerBasicSalesTax- Primary index
DatePeriodIdx- Replacement key
None- Key fields
TaxPeriod, TransDate, RecId- Model
Foundation
Fields (19)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TaxPeriodSales tax settlement period for this payment. Links to the sales tax period. | StringTaxPeriod | No | TaxPeriodHead.TaxPeriod | None |
TransDateDate of the payment record. | DateTransDate | 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 | |
CorrectionsYes/No flag showing whether posted sales tax corrections are included. | EnumNoYes (enum) | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FromDateStart date of the settlement period. Matches the period setup record. | DateTaxPeriodDate | No | TaxReportPeriod.FromDate | None |
IncludeReverseTrans_ITYes/No option to include reversing documents, used for Italy. | EnumIncludeReverseTrans_ITNoYes (enum) | No | None | |
IncludeZeroLines_ITYes/No option to include documents with zero amounts, used for Italy. | EnumIncludeZeroLines_ITNoYes (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | 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 | |
ReversedYes/No flag showing whether the payment has been reversed. | EnumReversedNoYes (enum) | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxRegistrationNumberTable_INRecord ID of the tax registration number, used for India. | Int64RefRecId | No | TaxRegistrationNumbers_IN.RecId | None |
TaxRepCounterVersion counter of the tax payment. | IntegerTaxVersion | No | None | |
TaxRepVersionKind of payment version: original, corrections, latest corrections or total list. | EnumTaxRepVersion (enum) | No | None | |
TaxType_INType of tax, such as VAT, excise, service tax, customs or GST. Used for India. | EnumTaxType_IN (enum) | No | None | |
ToDateEnd date of the settlement period. Matches the period setup record. | DateTaxPeriodDate | No | TaxReportPeriod.ToDate | None |
TraceNumTrace number of the payment. | String (20)TraceNum | No | None | |
VoucherVoucher number of the payment. | String (20)Voucher | No | None |
Indexes (3)
DatePeriodIdxPrimary indexUnique.
TaxRegistrationNumberTable_INIdxNot unique.
TaxPeriodCorrectionIdxTaxPeriod,FromDate,ToDate,CorrectionsNot unique.
Relations (3)
Each relation joins TaxReportVoucher to another table on the fields shown.
TaxPeriodHead→TaxPeriodHeadJoin on
TaxPeriod = TaxPeriodHead.TaxPeriodMany TaxReportVoucher records → zero or one TaxPeriodHead record
TaxRegistrationNumberTable_IN→TaxRegistrationNumbers_INJoin on
TaxRegistrationNumberTable_IN = TaxRegistrationNumbers_IN.RecIdMany TaxReportVoucher records → exactly one TaxRegistrationNumbers_IN record
TaxReportPeriod→TaxReportPeriodJoin on
ToDate = TaxReportPeriod.ToDate,FromDate = TaxReportPeriod.FromDate,TaxPeriod = TaxReportPeriod.TaxPeriodMany TaxReportVoucher records → zero or one TaxReportPeriod record
Get this data out
No public entity reads from TaxReportVoucher. Its data is only reachable through the application, a custom entity or a database export.
Need help with TaxReportVoucher in a report, an integration or a migration? Talk to Dr Dynamics.