org.broadleafcommerce.core.offer.service.discount.domain
Interface PromotionRounding

All Known Implementing Classes:
AbstractPromotionRounding, PromotableCandidateItemOfferImpl, PromotableFulfillmentGroupAdjustmentImpl, PromotableOrderItemPriceDetailAdjustmentImpl

public interface PromotionRounding

Interface to centralize the promotion rounding functionality found in several of the Promotable classes.

Author:
bpolster

Method Summary
 RoundingMode getRoundingMode()
          Returns the rounding mode to use for rounding operations.
 int getRoundingScale()
          Returns the scale to use when rounding.
 boolean isRoundOfferValues()
          It is sometimes problematic to offer percentage-off offers with regards to rounding.
 

Method Detail

isRoundOfferValues

boolean isRoundOfferValues()
It is sometimes problematic to offer percentage-off offers with regards to rounding. For example, consider an item that costs 9.99 and has a 50% promotion. To be precise, the offer value is 4.995, but this may be a strange value to display to the user depending on the currency being used.


getRoundingMode

RoundingMode getRoundingMode()
Returns the rounding mode to use for rounding operations.

Returns:

getRoundingScale

int getRoundingScale()
Returns the scale to use when rounding.

Returns:


Copyright © 2013. All Rights Reserved.