public interface PriceFactory
| Modifier and Type | Method and Description |
|---|---|
ProductPriceInformations |
getAllPriceInformations(SessionContext ctx,
Product product,
Date date,
boolean net)
Implement this to calculates a product price quote containing all applicable prices, discounts and taxes for the
given product and net/gross state.
|
PriceValue |
getBasePrice(AbstractOrderEntry entry)
Implement this to define the
base price of an order entry |
List |
getDiscountValues(AbstractOrder order)
Implement this to define
(global) discount values for an order. |
List |
getDiscountValues(AbstractOrderEntry entry)
Implement this to define
discount values for an order entry. |
List |
getProductDiscountInformations(SessionContext ctx,
Product product,
Date date,
boolean net)
Implement this to show all discounts which may apply to the given product
|
List |
getProductPriceInformations(SessionContext ctx,
Product product,
Date date,
boolean net)
Implement this to show all prices available for the given product
|
List |
getProductTaxInformations(SessionContext ctx,
Product product,
Date date)
Implement this to show all taxes which apply to the given product
|
Collection |
getTaxValues(AbstractOrderEntry entry)
Implement this to define
tax values for an order entry. |
boolean |
isNetUser(User user)
Implement this to define whether a user should be treated as net or gross customer.
|
ProductPriceInformations getAllPriceInformations(SessionContext ctx, Product product, Date date, boolean net) throws JaloPriceFactoryException
This default implementation just calls
getProductPriceInformations(SessionContext, Product, Date, boolean),
getProductTaxInformations(SessionContext, Product, Date ) and
getProductDiscountInformations(SessionContext, Product, Date, boolean )
and wraps the results inside a ProductPriceInformations object.
Override to define the prices, taxes and discounts for all occasions when no order or order entry is available,
e.g. for product lists. Please take care also to override
getProductPriceInformations(SessionContext, Product, Date, boolean ),
getProductTaxInformations(SessionContext, Product, Date) and
getProductDiscountInformations(SessionContext, Product, Date, boolean ) since these methods
are called by Product directly.
JaloPriceFactoryException - if a calculation error occuredList getProductPriceInformations(SessionContext ctx, Product product, Date date, boolean net) throws JaloPriceFactoryException
product - the productnet - the net/gross state of the requested pricesPriceInformation objectsJaloPriceFactoryException - if price calculation error occuredList getProductTaxInformations(SessionContext ctx, Product product, Date date) throws JaloPriceFactoryException
product - the productTaxInformation objectsJaloPriceFactoryException - if price calculation error occuredList getProductDiscountInformations(SessionContext ctx, Product product, Date date, boolean net) throws JaloPriceFactoryException
product - the productDiscountInformation objectsJaloPriceFactoryException - if price calculation error occuredboolean isNetUser(User user)
Collection getTaxValues(AbstractOrderEntry entry) throws JaloPriceFactoryException
tax values for an order entry.JaloPriceFactoryExceptionPriceValue getBasePrice(AbstractOrderEntry entry) throws JaloPriceFactoryException
base price of an order entryJaloPriceFactoryExceptionList getDiscountValues(AbstractOrderEntry entry) throws JaloPriceFactoryException
discount values for an order entry.JaloPriceFactoryExceptionList getDiscountValues(AbstractOrder order) throws JaloPriceFactoryException
(global) discount values for an order.
These discount values are applied to the whole order, not just to one entry like
getDiscountValues(AbstractOrderEntry)JaloPriceFactoryExceptionCopyright © 2017 SAP SE. All Rights Reserved.