Click or drag to resize
ITaxEstimationServiceExtractTax Method
Estimates the tax part of the given price. The result is rounded.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntax
C#
decimal ExtractTax(
	decimal price,
	TaxClassInfo taxClass,
	TaxEstimationParameters parameters
)

Parameters

price
Type: SystemDecimal
A price including tax.
taxClass
Type: CMS.EcommerceTaxClassInfo
A tax class for which the taxes are estimated.
parameters
Type: CMS.EcommerceTaxEstimationParameters
Parameters of the tax estimation.

Return Value

Type: Decimal
Exceptions
ExceptionCondition
ArgumentNullExceptiontaxClass or parameters is null.
Remarks
This method is used to get (extract) the tax from the price which already includes tax.
See Also