Class PriceCalculated
- Namespace
- Dynamicweb.Ecommerce.Prices
- Assembly
- Dynamicweb.Ecommerce.dll
Represents information about calculated price.
[Serializable]
public class PriceCalculated : PriceInfo, IPriceReferenceInfo, IInformativePriceInfo, IPriceInfo, IPriceSourceInfo
- Inheritance
-
Price
Calculated
- Implements
- Inherited Members
Properties
IgnoreVat
Gets or sets a value indicating whether to bypass VAT calculations.
Property Value
- bool
trueif VAT calculations should be bypassed; otherwise,false.
RemoveVat
Gets or sets a value indicating whether to remove VAT from the current price.
Property Value
- bool
trueif price calculation should remove VAT from the current price; otherwise,false.
Remarks
The VAT is only removed if prices in the database include VAT. Otherwise, price calculation does not change with the value of this property.
VATPercent
Gets or sets the VAT percent.
Property Value
Methods
Calculate()
Create(Currency, Country, PriceRaw)
Creates a new instance of the Price
Parameters
Returns
Create(PriceContext, PriceRaw)
Creates a new instance of the Price
Parameters
contextPriceContext priceRawPriceRaw
Returns
Create(PriceContext, PriceRaw, Product)
Creates a new instance of the Price
Parameters
contextPriceContext priceRawPriceRaw productProduct
Returns
FindVatPercent(Country)
Finds the VAT percent for the given Country.
Parameters
countryCountryThe country used to determine VAT percent.
Returns
FindVatPercent(Country, Product?, bool)
public static double FindVatPercent(Country country, Product? product, bool reverseChargeForVatEnabled)
Parameters
countryCountryThe country used to determine VAT percent.
productProductThe product to get the VAT percent for.
reverseChargeForVatEnabledbool
Returns
ToString()
Returns a string that represents this instance.