public class PriceTools extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
PriceTools.Europe1DetailedPrice |
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_DATERANGE_FORMAT |
static String |
PARAM_DATERANGE_KEY |
static String |
PARAM_QUANTITY_KEY |
static String |
PARAM_UNIT_KEY |
| Constructor and Description |
|---|
PriceTools() |
PriceTools(Product p) |
PriceTools(Product p,
PrintPublication pub) |
public static final String PARAM_UNIT_KEY
public static final String PARAM_QUANTITY_KEY
public static final String PARAM_DATERANGE_KEY
public static final String PARAM_DATERANGE_FORMAT
public PriceTools()
public PriceTools(Product p)
public PriceTools(Product p, PrintPublication pub)
protected void assureValidPrice()
public Object getObject()
protected void storeValidityAttributes(Product p)
public void initialize(Product product)
protected DateFormat getDateFormat()
protected void calculate(Product p) throws JaloPriceFactoryException
JaloPriceFactoryExceptionprotected List getDiscountValues(Collection discountInfos, Currency curr)
protected double applyDiscounts(int minQuantity,
double price)
protected Collection createDetailedPrices(Collection priceInfos, Currency curr)
protected PriceInformation getPrimaryPrice(Collection priceInfos)
priceInfos - public boolean isShowingNetPrice()
public boolean isPriceMissing()
public String getOldPrice()
public boolean isSinglePriced()
public String getPrimaryPrice()
public double getPrimaryPriceValue()
public int getPrimaryMinimumQuantity()
public Collection getDetailedPrices()
public Collection getDetailedPricesHeader()
public String getVAT()
public Collection getOrderableUnits()
public Collection getIncludedDiscounts()
public boolean isNeedUnit()
public boolean isNeedQuantity()
public boolean isNeedDateRange()
public static String formatPrice(double v)
public Date getTruncatedDate()
Date of the current Day at midnight. This method can be used when calling
Product.getPriceInformations() to assure that price informations can be cached during one day.Copyright © 2017 SAP SE. All Rights Reserved.