/// <summary> /// The product pre tax sale price. /// </summary> /// <param name="extendedData"> /// The extended data. /// </param> /// <returns> /// The <see cref="decimal"/>. /// </returns> public static decimal ProductPreTaxSalePrice(this ExtendedDataCollection extendedData) { return(!extendedData.TaxIncludedInProductPrice() ? extendedData.GetPriceValue() : extendedData.ContainsKey(Constants.ExtendedDataKeys.ProductSalePriceNoTax) ? extendedData.GetValue(Constants.ExtendedDataKeys.ProductSalePriceNoTax).AsDecimal() : extendedData.GetPriceValue()); }