Data entity

TaxCodeEntity

Holds sales tax codes, keyed by tax code. Each record has many settings, including percentage, calculation method, currency, ledger posting group and the ledger accounts for different transaction types. It also joins Brazilian taxation codes and Mexican tax category codes.

Entity name
TaxCodeEntity
Public entity name
TaxCode
OData collection
TaxCodes
Category
Not set
Module
Tax
Read-only
No
Data management enabled
Yes
Configuration key
LedgerBasicSalesTax
Keys
TaxCode
Staging table
TaxCodeEntityStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/TaxCodes
Dataverse virtual table
mserp_taxcodeentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Enabled: you can use it in import and export projects.

Data sources

  • TaxTable · root
  • TaxationCodeTable_BR · OuterJoin to TaxTable · read-only
  • TaxVatReportCategory_MX · OuterJoin to TaxTable · read-only

Fields (72)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
TaxCodeUnique code that identifies the sales tax.String
TaxCode
YesYesTaxTable.TaxCode
NegativeTaxYes/No flag for a negative tax percentage.Enum
TaxNegativeTax
NoYes

Platform enum: values not in the metadata extract.

NoYesTaxTable.NegativeTax
NotEUSalesListYes/No flag to exclude the code, apparently from the EU sales list.low confidenceEnum
NoYes

Platform enum: values not in the metadata extract.

NoYesTaxTable.NotEUSalesList
PaymentTaxCodeIdAnother sales tax code that applies at payment time.String
TaxCode
NoYesTaxTable.TaxCodeTaxTable.PaymentTaxCode
PrintCodeCode printed for this tax.String
TaxWriteCode
NoYesTaxTable.PrintCode
ReportingCodeTaxablePurchasesReporting code for taxable purchases.Integer
TaxReportField
NoYesTaxTable.RepFieldBaseIncoming
ReportingCodeTaxablePurchasesCreditNoteReporting code for taxable purchase credit notes.Integer
TaxReportField
NoYesTaxTable.RepFieldBaseIncomingCreditNote
ReportingCodeTaxableSalesReporting code for taxable sales.Integer
TaxReportField
NoYesTaxTable.RepFieldBaseOutgoing
ReportingCodeTaxableSalesCreditNoteReporting code for taxable sales credit notes.Integer
TaxReportField
NoYesTaxTable.RepFieldBaseOutgoingCreditNote
ReportingCodeTaxableImportReporting code for taxable imports.Integer
TaxReportField
NoYesTaxTable.RepFieldBaseUseTax
ReportingCodeTaxableImportCreditNoteReporting code for taxable import credit notes.Integer
TaxReportField
NoYesTaxTable.RepFieldBaseUseTaxCreditNote
ReportingCodeTaxableImportOffsetReporting code for the offset of taxable imports.Integer
TaxReportField
NoYesTaxTable.RepFieldBaseUseTaxOffset
ReportingCodeTaxableImportOffsetCreditNoteReporting code for the offset of taxable import credit notes.Integer
TaxReportField
NoYesTaxTable.RepFieldBaseUseTaxOffsetCreditNote
ReportingCodeTaxFreePurchaseReporting code for tax-free purchases.Integer
TaxReportField
NoYesTaxTable.RepFieldTaxFreeBuy
ReportingCodeTaxFreePurchaseCreditNoteReporting code for tax-exempt purchase credit notes.Integer
TaxReportField
NoYesTaxTable.RepFieldTaxFreeBuyCreditNote
ReportingCodeTaxFreeSaleReporting code for tax-free sales.Integer
TaxReportField
NoYesTaxTable.RepFieldTaxFreeSales
ReportingCodeTaxFreeSaleCreditNoteReporting code for tax-exempt sales credit notes.Integer
TaxReportField
NoYesTaxTable.RepFieldTaxFreeSalesCreditNote
ReportingCodeSalesTaxReceivableReporting code for sales tax receivable.Integer
TaxReportField
NoYesTaxTable.RepFieldTaxIncoming
ReportingCodeSalesTaxReceivableCreditNoteReporting code for sales tax on purchase credit notes.Integer
TaxReportField
NoYesTaxTable.RepFieldTaxIncomingCreditNote
ReportingCodeSalesTaxPayableReporting code for sales tax payable.Integer
TaxReportField
NoYesTaxTable.RepFieldTaxOutgoing
ReportingCodeSalesTaxPayableCreditNoteReporting code for sales tax on sales credit notes.Integer
TaxReportField
NoYesTaxTable.RepFieldTaxOutgoingCreditNote
ReportingCodeUseTaxReporting code for use tax.Integer
TaxReportField
NoYesTaxTable.RepFieldUseTax
ReportingCodeUseTaxCreditNoteReporting code for sales tax on import credit notes.Integer
TaxReportField
NoYesTaxTable.RepFieldUseTaxCreditNote
ReportingCodeUseTaxOffsetReporting code for the offset of use tax.Integer
TaxReportField
NoYesTaxTable.RepFieldUseTaxOffset
ReportingCodeUseTaxOffsetCreditNoteReporting code for the offset of sales tax on import credit notes.Integer
TaxReportField
NoYesTaxTable.RepFieldUseTaxOffsetCreditNote
TaxPostingGroupIdLedger posting group linked to this tax code.String
TaxAccountGroup
NoYesTaxLedgerAccountGroup.TaxAccountGroupTaxTable.TaxAccountGroup
TaxBaseHow the tax amount is based, such as percentage of net amount, gross amount or amount per unit.Enum
TaxBaseType
  • PctPerNet 0
  • PctPerGross 1
  • PctPerTax 2
  • AmountByUnit 3
  • PctGrosOnNet 4
  • PctPerMargin 5
NoYesTaxTable.TaxBase
TaxCalculationMethodCalculation method: whole amount or interval.Enum
TaxCalcMode
  • FullAmounts 0
  • Interval 1
NoYesTaxTable.TaxCalcMethod
TaxCountryRegionTypeType of country or region, such as domestic, EU, EFTA or third country.Enum
CountryRegionType
  • Domestic 0
  • EU 1
  • EFTA 2
  • ThirdCountryRegion 3
  • SpecialDomestic 4
  • GCC 5
NoYesTaxTable.TaxCountryRegionType
TaxCurrencyCodeIdCurrency of the tax code.String (3)
CurrencyCode
NoYesCurrency.CurrencyCodeTaxTable.TaxCurrencyCode
CalculateUnitTaxBeforeSalesTaxYes/No flag to calculate this tax before sales tax.Enum
TaxIncludeInTax
NoYes

Platform enum: values not in the metadata extract.

NoYesTaxTable.TaxIncludeInTax
TaxLimitBaseBasis for the marginal limit, such as net or gross amount per line or unit.Enum
TaxLimitBase
  • LineWithoutVAT 0
  • UnitWithoutVAT 1
  • InvoiceWithoutVAT 2
  • LineInclVAT 3
  • UnitInclVAT 4
  • InvoiceInclVAT 5
NoYesTaxTable.TaxLimitBase
TaxNameName of the sales tax code.String (30)
TaxName
NoYesTaxTable.TaxName
TaxOnTaxSales tax code whose amount forms part of the base of this code.String
TaxCode
NoYesTaxTable.TaxCodeTaxTable.TaxOnTax
PackingDutySortCodeSort code for packaging duty.String
TaxPackagingSort
NoYesTaxTable.TaxPackagingSort
PackingDutyYes/No flag for packing duty.Enum
TaxPackagingTax
NoYes

Platform enum: values not in the metadata extract.

NoYesTaxTable.TaxPackagingTax
TaxPeriodIdSettlement period in which this tax is reported.String
TaxPeriod
NoYesTaxPeriodHead.TaxPeriodTaxTable.TaxPeriod
TaxRoundOffRounding value applied to the tax.Real
TaxRoundOff
NoYesTaxTable.TaxRoundOff
TaxRoundOffTypeRounding form: normal, downward or upward.Enum
TaxRoundOffType
RoundOffType
  • Ordinary 0
  • RoundDown 1
  • RoundUp 2
NoYesTaxTable.TaxRoundOffType
TaxUnitIdUnit of measure on which the tax is calculated.String
UnitOfMeasureSymbol
NoYesUnitOfMeasure.SymbolTaxTable.TaxUnit
PrintCodeTypeChooses what is printed: the print code or the tax rate.Enum
TaxWriteSelection
  • PrintCode 0
  • TaxRate 1
NoYesTaxTable.TaxWriteSelection
ReportLayoutThe report layout chosen for the sales tax code. It is an enum value.low confidenceEnum
TaxReportLayout
  • Default 0
  • Norway 1
  • UnitedKingdom 2
  • Sweden 3
  • Germany 4
  • Austria 5
  • Netherlands 6
  • USA 7
  • Italy 8
  • Belgium 9
  • Singapore 10
  • Japan 11
  • Finland 12
  • Estonia 13
  • UAE 15
NoYesvirtual
IncludedTaxYes/No flag for an included tax, used for Brazil.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesTaxTable.IncludedTax_BR
RetainedTaxYes/No flag for retained tax or tax to recuperate, used for Brazil.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesTaxTable.RetainedTax_BR
TaxationCodeThree-character taxation code.String (3)
TaxationCode_BR
NoYesTaxationCodeTable_BR.TaxationCode
TaxationCodeRecIdPoints to the taxation code record, used for Brazil.Int64
RefRecId
NoNo (private)TaxationCodeTable_BR.RecIdTaxTable.TaxationCodeTable_BR
FiscalValueFiscal value of the code, such as with credit/debit or without credit/debit.Enum
TaxFiscalValue_BR
  • Blank 0
  • WithCreditDebit 1
  • WithoutCreditDebitExempt 2
  • WithoutCreditDebitOther 3
NoYesTaxationCodeTable_BR.FiscalValue
TaxSubstitutionMethodTax substitution method, such as markup or simplified estimate, used for Brazil.Enum
TaxSubstitution_BR
TaxSubstitutionEnum_BR
  • None 0
  • Markup 1
  • SimplifiedEstimate 2
  • MarkupConfaz_52_2017 3
NoYesTaxTable.TaxSubstitution_BR
BrazilTaxTypeKind of tax (IPI, PIS, ICMS, COFINS, ISS and others), used for Brazil.Enum
TaxType_BR
  • Blank 0
  • IPI 8
  • PIS 1
  • ICMS 2
  • COFINS 3
  • ISS 4
  • IRRF 5
  • INSS 6
  • ImportTax 10
  • OtherTax 11
  • INSSRetained 12
  • CSLL 13
  • ICMSST 14
  • ICMSDiff 15
  • INSSCPRB 16
  • CBS 17
  • IBSCity 18
  • IBSState 19
  • IS 20
NoYesTaxTable.TaxType_BR
DiotAddInfoYes/No flag for extra information in the DIOT declaration, used for Mexico.Enum
DiotAddInfo_MX
NoYes

Platform enum: values not in the metadata extract.

NoYesTaxTable.DiotAddInfo_MX
MexicoTaxTypeTax type (ISR, IVA or IEPS), used for Mexico.Enum
TaxType_MX
  • Blank 0
  • ISR 1
  • IVA 2
  • IEPS 3
NoYesTaxTable.TaxType_MX
TaxVatReportCategoryRecIdPoints to the tax category code for reporting, used for Mexico.Int64
RefRecId
NoNo (private)TaxVatReportCategory_MX.RecIdTaxTable.TaxVatReportCategory_MX
TaxVatReportCategoryCodeCode of the tax report category.String (5)
TaxVatReportCategoryCode_MX
NoYesTaxVatReportCategory_MX.CategoryCode
UnrealizedTaxYes/No flag for unrealized tax.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesTaxTable.UnrealizedTax
SingaporeTaxTypeVAT type (standard, zero or exempt), used for Singapore.Enum
TaxType_SG
  • Standard 0
  • Zero 1
  • Exempt 2
NoYesTaxTable.TaxType_SG
ReportingCodeBaseIncomingDebitNoteReporting code for taxable purchase debit notes, used for Malaysia.Integer
TaxReportField
NoYesTaxTable.RepFieldBaseIncomingDebitNote_MY
ReportingCodeBaseOutgoingDebitNoteReporting code for taxable sales debit notes, used for Malaysia.Integer
TaxReportField
NoYesTaxTable.RepFieldBaseOutgoingDebitNote_MY
ReportingCodeTaxFreeBuyDebitNoteReporting code for tax-exempt purchase debit notes, used for Malaysia.Integer
TaxReportField
NoYesTaxTable.RepFieldTaxFreeBuyDebitNote_MY
ReportingCodeTaxFreeSalesDebitNoteReporting code for tax-exempt sales debit notes, used for Malaysia.Integer
TaxReportField
NoYesTaxTable.RepFieldTaxFreeSalesDebitNote_MY
ReportingCodeTaxIncomingDebitNoteReporting code for sales tax on purchase debit notes, used for Malaysia.Integer
TaxReportField
NoYesTaxTable.RepFieldTaxIncomingDebitNote_MY
ReportingCodeTaxOutgoingDebitNoteReporting code for sales tax on sales debit notes, used for Malaysia.Integer
TaxReportField
NoYesTaxTable.RepFieldTaxOutgoingDebitNote_MY
IsGSTYes/No flag marking the code as GST, used for Malaysia.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesTaxTable.IsGST_MY
TypeOfTaxGeneral tax type, such as standard VAT, excise, reduced VAT or customs duty.Enum
TaxType_W
  • Other 0
  • VAT 1
  • Excise 3
  • VATReduced 4
  • VATZero 5
  • AssessedTax 6
  • TransportTax 7
  • LandTax 8
  • CustomDuty_RU 9
  • CustomCharge_RU 10
  • RPayIncomeTax 30
  • ProfitTax 11
NoYesTaxTable.TaxType_W
TaxTypeTax type (normal, average unrealized or average realized), used for Thailand.Enum
TaxType_TH
  • Normal 0
  • AverageUnrealized 1
  • AverageRealized 2
NoYesTaxTable.TaxType_TH
DomesticCustomsPracticeYes/No flag for domestic customs practice, used for Finland.Enum
CustomsPractice_FI
NoYes

Platform enum: values not in the metadata extract.

NoYesTaxTable.CustomsPractice_FI
ExcludeFromInvoiceYes/No flag to leave this tax out of the invoice.Enum
TaxExcludeFromInvoice
NoYes

Platform enum: values not in the metadata extract.

NoYesTaxTable.ExcludeFromInvoice
TaxSubstitutionCalculationMethodCalculation method for the substitution base reduction, used for Brazil.Enum
TaxSubstitutionBaseRedCalculationMode_BR
  • OwnOperationIpiAndMarkup 0
  • OwnOperationOnly 1
NoYesTaxTable.TaxSubstitutionBaseRedCalcMode_BR
RevenueCodeReceita code for the tax, used for Brazil.String (20)
RevenueCode_BR
NoYesTaxTable.RevenueCode_BR
VATChargeSourceWhether VAT is charged from vendor funds or own funds, used for Russia.Enum
VATChargeSource_RU
  • VendorFunds 0
  • OwnFunds 1
NoYesTaxTable.VATChargeSource_RU
JapanTaxTypeTax type (standard, reduced or other), used for Japan.Enum
TaxType_JP
  • Standard 0
  • Reduced 1
  • Other 2
NoYesTaxTable.TaxType_JP
IsInvestmentYes/No flag to classify the code as an investment, used for Spain.Enum
IsInvestment_ES
NoYes

Platform enum: values not in the metadata extract.

NoYesTaxTable.IsInvestment_ES
DescriptionQRBillDescription text for QR bill, used for Switzerland.String (60)
Description
NoYesTaxTable.DescriptionQRBill_CH

Foreign keys (8)

Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.

Need help with TaxCodeEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk