Table

TaxWithholdTrans

Withholding tax transaction

Holds withholding tax transactions for vendor and customer invoices and payments. Amounts are stored in default, invoice, payment and withholding tax currencies. It links to vendor and customer transactions, journals and withholding tax codes and groups. It also has fields used for Brazil, India, Thailand and Italy.

Table name
TaxWithholdTrans
Module
Tax
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
LedgerBasicWithholdingTax
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (78)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CanBeReversed_BRShows whether the transaction can be reversed; used for Brazil.Enum
NoYes (enum)
NoNone
CompetenceDateCompetence date of the transaction.Date
TransDate
YesNone
CustAccountCustomer account the transaction relates to.String (20)
CustAccount
NoCustTable.AccountNumNone
CustTransInvoiceIdPoints to the customer transaction of the invoice.Int64
CustTransRefRecId
NoCustTrans.RecIdNone
CustTransPaymIdPoints to the customer transaction of the payment.Int64
CustTransRefRecId
NoCustTrans.RecIdNone
CustVendTransOpenRecId_BRPoints to the open vendor transaction; used for Brazil.Int64
RefRecId
NoVendTransOpen.RecIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ExemptedAmountAmount exempt from withholding, in the default currency.Real
TaxWithholdAmount
NoNone
HideInReport_ITShows whether the record is hidden in the certification report; used for Italy.Enum
NoYes (enum)
NoNone
IntersectionWithholdBaseAmount_BRBasis for the withholding tax calculation, in the invoice currency; used for Brazil.Real
TaxWithholdBaseCur
NoNone
InvoiceInvoice number.String (50)
InvoiceId
YesNone
InvoiceAmountInvoice amount to be paid, in the invoice currency.Real
AmountCur
NoNone
InvoiceAmountInTaxWithholdCurInvoice amount to be paid, in the withholding tax currency.Real
AmountCur
NoNone
InvoiceBaseAmountBase amount in the invoice currency.Real
AmountCur
NoNone
InvoiceCurrencyCurrency code of the invoice.String (3)
CurrencyCode
YesCurrency.CurrencyCodeNone
InvoiceExemptedAmountAmount exempt from withholding, in the invoice currency.Real
TaxWithholdAmountCur
NoNone
InvoiceNotTaxableByTreatyAmount not subject to withholding tax because of a treaty, in the invoice currency.Real
TaxWithholdAmountCur
NoNone
InvoiceNotTaxableExpensesExpenses that are not taxable, in the invoice currency.Real
TaxWithholdAmountCur
NoNone
InvoiceTaxAmountSales tax amount in the invoice currency.Real
AmountCur
NoNone
InvoiceTaxWithholdAmountWithholding tax amount in the invoice currency.Real
TaxWithholdAmountCur
NoNone
InvoiceWithholdBaseAmountBasis for the withholding tax calculation, in the invoice currency.Real
TaxWithholdBaseCur
NoNone
JournalNumNumber of the ledger journal batch.String (20)
LedgerJournalId
NoLedgerJournalTable.JournalNumNone
LedgerDimensionMain account, as a ledger dimension combination.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
LedgerJourTransRecId_BRPoints to the journal line; used for Brazil.Int64
RefRecId
NoLedgerJournalTrans.RecIdNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NotTaxableByTreatyAmount not subject to withholding tax because of a treaty, in the default currency.Real
TaxWithholdAmount
NoNone
NotTaxableExpensesExpenses that are not taxable, in the default currency.Real
TaxWithholdAmount
NoNone
PackedExtensionsPacked data container for extension values.Container
SysExtensionSerializerPackedContainer
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PartyId_BRParty ID of the counterparty; used for Brazil.String (40)
DirPartyNumber
NoNone
PaymCompanyCompany whose accounts are used for the payment.String
CompanyId
NoNone
PaymCurrencyCurrency code of the payment.String (3)
CurrencyCode
NoCurrency.CurrencyCodeNone
PaymExemptedAmountAmount exempt from withholding, in the payment currency.Real
TaxWithholdAmountCur
NoNone
PaymNotTaxableByTreatyAmount not subject to withholding tax because of a treaty, in the payment currency.Real
TaxWithholdAmountCur
NoNone
PaymNotTaxableExpensesExpenses that are not taxable, in the payment currency.Real
TaxWithholdAmountCur
NoNone
PaymTaxWithholdAmountWithholding tax amount in the payment currency.Real
TaxWithholdAmountCur
NoNone
PaymVendorVendor account used for the payment.String (20)
VendAccount
NoVendTable.AccountNumNone
PaymWithholdBaseAmountBasis for the withholding tax calculation, in the payment currency.Real
TaxWithholdBaseCur
NoNone
PostedShows whether the transaction has been posted.Enum
Posted
NoYes (enum)
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
RefCustVendTransRecId_BRReference to a customer or vendor transaction; used for Brazil.low confidenceInt64
RefRecId
NoNone
SettledShows whether the transaction has been settled.Enum
NoYesId
NoYes (enum)
NoNone
SettlementVoucherVoucher number of the settlement.String (20)
Voucher
NoNone
Source_BRSource of the transaction: Vendor payment, Withholding tax or Customer payment; used for Brazil.Enum
TaxWithholdSource (enum)
NoNone
SpecTransIdPoints to the settlement specification record.Int64
RefRecId
NoSpecTrans.RecIdNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxExemptedAmountAmount exempt from withholding, in the withholding tax currency.Real
TaxWithholdAmountCur
NoNone
TaxNotTaxableByTreatyAmount not subject to withholding tax because of a treaty, in the withholding tax currency.Real
TaxWithholdAmountCur
NoNone
TaxNotTaxableExpensesExpenses that are not taxable, in the withholding tax currency.Real
TaxWithholdAmountCur
NoNone
TaxReimbursement_ITReimbursement amount in the withholding tax currency, a part of the withholding base that is not taxable; used for Italy.Real
TaxWithholdAmount
NoNone
TaxRepCounter_BRVersion number of the tax report; used for Brazil.Integer
TaxVersion
NoNone
TaxTaxWithholdAmountWithholding tax amount in the withholding tax currency.Real
TaxWithholdAmountCur
NoNone
TaxType_INTax type: None, TDS or TCS; used for India.Enum
TaxWithholdCodeType_IN (enum)
NoNone
TaxWithholdAccumulatedBaseAmountAccumulated base amount for withholding tax.Real
TaxWithholdBaseCur
NoNone
TaxWithholdAmountWithholding tax amount in the default currency.Real
TaxWithholdAmount
NoNone
TaxWithholdBaseAmountBasis for the withholding tax calculation, in the withholding tax currency.Real
TaxWithholdBaseCur
NoNone
TaxWithholdCodeWithholding tax code applied.String
TaxWithholdCode
YesTaxWithholdTable.TaxWithholdCodeNone
TaxWithholdComponentGroupTable_INPoints to the withholding tax component group; used for India.Int64
RefRecId
NoTaxWithholdComponentGroupTable_IN.RecIdNone
TaxWithholdComponentTable_INPoints to the withholding tax component; used for India.Int64
RefRecId
NoTaxWithholdComponentTable_IN.RecIdNone
TaxWithholdCurrencyCurrency code of the withholding tax.String (3)
CurrencyCode
NoCurrency.CurrencyCodeNone
TaxWithholdExchRateExchange rate between the withholding tax currency and the payment currency.Real
ExchRate
NoNone
TaxWithholdExchRateDateDate of the withholding tax exchange rate.Date
TransDate
NoNone
TaxWithholdGroupWithholding tax group applied.String
TaxWithholdGroup
YesTaxWithholdGroupHeading.TaxWithholdGroupNone
TaxWithholdIsSelected_BRShows whether withholding tax is selected; used for Brazil.Enum
NoYes (enum)
NoNone
TaxWithholdItemGroupHeading_THPoints to the item withholding tax group; used for Thailand.Int64
TaxWithholdItemGroupId_TH
NoTaxWithholdItemGroupHeading_TH.RecIdNone
TaxWithholdPeriod_BRSettlement period for the tax; used for Brazil.String
TaxWithholdPeriod
NoNone
TaxWithholdPeriodHead_THPoints to the withholding tax settlement period; used for Thailand.Int64
TaxWithholdPeriodId_TH
NoTaxWithholdPeriodHead_TH.RecIdNone
TaxWithholdSlipNum_THWithholding tax slip number; used for Thailand.String
TaxWithholdSlipNum_TH
NoNone
TransDateDate of the transaction.Date
TransDate
YesNone
VendAccountVendor account the transaction relates to.String (20)
VendAccount
NoVendTable.AccountNumNone
VendorType_THVendor type: Blank, Domestic, Foreign or Individual; used for Thailand.Enum
TaxWithholdVendorType_TH (enum)
NoNone
VendTransInvoiceIdPoints to the vendor transaction of the invoice.Int64
VendTransRefRecId
NoVendTrans.RecIdNone
VendTransPaymIdPoints to the vendor transaction of the payment.Int64
VendTransRefRecId
NoVendTrans.RecIdNone
VoucherVoucher number of the payment.String (20)
Voucher
YesNone
VoucherInvoiceVoucher number of the invoice.String (20)
Voucher
YesNone
WithholdBaseAmountBasis for the withholding tax calculation, in the default currency.Real
TaxWithholdBase
NoNone

Indexes (8)

Relations (22)

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

  • Currency_InvoiceCurrency → Currency

    Join on InvoiceCurrency = Currency.CurrencyCode

    Many TaxWithholdTrans records → exactly one Currency record

  • Currency_PaymCurrency → Currency

    Join on PaymCurrency = Currency.CurrencyCode

    Many TaxWithholdTrans records → zero or one Currency record

  • Currency_TaxWithholdCurrency → Currency

    Join on TaxWithholdCurrency = Currency.CurrencyCode

    Many TaxWithholdTrans records → zero or one Currency record

  • CustTable → CustTable

    Join on CustAccount = CustTable.AccountNum

    Many TaxWithholdTrans records → zero or one CustTable record

  • CustTrans_CustTransInvoiceId → CustTrans

    Join on CustTransInvoiceId = CustTrans.RecId

    Many TaxWithholdTrans records → zero or one CustTrans record

  • CustTrans_CustTransPaymId → CustTrans

    Join on CustTransPaymId = CustTrans.RecId

    Many TaxWithholdTrans records → zero or one CustTrans record

  • DataArea → DataArea

    Join on PaymCompany = DataArea.id, DataArea.isVirtual = null

    Many TaxWithholdTrans records → zero or one DataArea record

  • LedgerDimension → DimensionAttributeValueCombination

    Join on LedgerDimension = DimensionAttributeValueCombination.RecId

    Many TaxWithholdTrans records → zero or one DimensionAttributeValueCombination record

  • LedgerJournalTable → LedgerJournalTable

    Join on JournalNum = LedgerJournalTable.JournalNum

    Many TaxWithholdTrans records → zero or one LedgerJournalTable record

  • LedgerJournalTrans → LedgerJournalTrans

    Join on LedgerJourTransRecId_BR = LedgerJournalTrans.RecId

    Many TaxWithholdTrans records → zero or one LedgerJournalTrans record

  • SpecTrans → SpecTrans

    Join on SpecTransId = SpecTrans.RecId

    Many TaxWithholdTrans records → zero or one SpecTrans record

  • TaxWithholdComponentGroupTable_INFK → TaxWithholdComponentGroupTable_IN

    Join on TaxWithholdComponentGroupTable_IN = TaxWithholdComponentGroupTable_IN.RecId

    Many TaxWithholdTrans records → zero or one TaxWithholdComponentGroupTable_IN record

  • TaxWithholdComponentTable_INFK → TaxWithholdComponentTable_IN

    Join on TaxWithholdComponentTable_IN = TaxWithholdComponentTable_IN.RecId

    Many TaxWithholdTrans records → zero or one TaxWithholdComponentTable_IN record

  • TaxWithholdGroupHeading → TaxWithholdGroupHeading

    Join on TaxWithholdGroup = TaxWithholdGroupHeading.TaxWithholdGroup

    Many TaxWithholdTrans records → exactly one TaxWithholdGroupHeading record

  • TaxWithholdItemGroupHeading_TH → TaxWithholdItemGroupHeading_TH

    Join on TaxWithholdItemGroupHeading_TH = TaxWithholdItemGroupHeading_TH.RecId

    Many TaxWithholdTrans records → zero or one TaxWithholdItemGroupHeading_TH record

  • TaxWithholdPeriodHead_TH → TaxWithholdPeriodHead_TH

    Join on TaxWithholdPeriodHead_TH = TaxWithholdPeriodHead_TH.RecId

    Many TaxWithholdTrans records → zero or one TaxWithholdPeriodHead_TH record

  • TaxWithholdTable → TaxWithholdTable

    Join on TaxWithholdCode = TaxWithholdTable.TaxWithholdCode

    Many TaxWithholdTrans records → exactly one TaxWithholdTable record

  • VendTable_PaymVendor → VendTable

    Join on PaymVendor = VendTable.AccountNum

    Many TaxWithholdTrans records → zero or one VendTable record

  • VendTable_VendAccount → VendTable

    Join on VendAccount = VendTable.AccountNum

    Many TaxWithholdTrans records → zero or one VendTable record

  • VendTransInvoice → VendTrans

    Join on VendTransInvoiceId = VendTrans.RecId

    Many TaxWithholdTrans records → zero or one VendTrans record

  • VendTransOpen → VendTransOpen

    Join on CustVendTransOpenRecId_BR = VendTransOpen.RecId

    Zero or one TaxWithholdTrans record → zero or one VendTransOpen record

  • VendTransPaym → VendTrans

    Join on VendTransPaymId = VendTrans.RecId

    Many TaxWithholdTrans records → zero or one VendTrans record

Get this data out

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

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

Email sales@drdynamics.co.uk