ITaxEstimationService.ExtractTax Method |
Estimates the tax part of the given price. The result is rounded.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax decimal ExtractTax(
decimal price,
TaxClassInfo taxClass,
TaxEstimationParameters parameters
)
Parameters
- price
- Type: System.Decimal
A price including tax. - taxClass
- Type: CMS.Ecommerce.TaxClassInfo
A tax class for which the taxes are estimated. - parameters
- Type: CMS.Ecommerce.TaxEstimationParameters
Parameters of the tax estimation.
Return Value
Type:
DecimalExceptions Exception | Condition |
---|
ArgumentNullException | taxClass or parameters is null. |
Remarks
This method is used to get (extract) the tax from the price which already includes tax.
See Also