ITaxEstimationServiceGetTax Method |
Estimates the tax from the given price. The result is rounded.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax decimal GetTax(
decimal price,
TaxClassInfo taxClass,
TaxEstimationParameters parameters
)
Parameters
- price
- Type: SystemDecimal
A price without 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:
DecimalExceptions Exception | Condition |
---|
ArgumentNullException | taxClass or parameters is null. |
Remarks
This method is used to get taxes for price which does not include tax.
See Also