TaxClassInfoProviderGetTaxValue Method (Double, Double, Boolean) |
Note: This API is now obsolete.
Returns calculated tax based on the product price and tax value.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax [ObsoleteAttribute("Use GetTaxValue(double price, double taxValue). Flat taxes were removed.")]
public static double GetTaxValue(
double price,
double taxValue,
bool isFlat
)
Parameters
- price
- Type: SystemDouble
Price the tax should be calculated from - taxValue
- Type: SystemDouble
Tax value - isFlat
- Type: SystemBoolean
True - tax value is flat (both price and tax value must be expressed in the same currency to obtain correct result),
False - tax value is relative (currency of the price is not important).
Return Value
Type:
DoubleSee Also