Class AbstractPromotionRounding
java.lang.Object
org.broadleafcommerce.core.offer.service.discount.domain.AbstractPromotionRounding
- All Implemented Interfaces:
PromotionRounding
- Direct Known Subclasses:
PromotableCandidateFulfillmentGroupOfferImpl,PromotableCandidateItemOfferImpl,PromotableFulfillmentGroupAdjustmentImpl,PromotableOrderItemPriceDetailAdjustmentImpl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIt is sometimes problematic to offer percentage-off offers with regards to rounding.It is sometimes problematic to offer percentage-off offers with regards to rounding.voidsetRoundingMode(RoundingMode roundingMode) It is sometimes problematic to offer percentage-off offers with regards to rounding.voidsetRoundingScale(int roundingScale) It is sometimes problematic to offer percentage-off offers with regards to rounding.
-
Field Details
-
roundingScale
-
roundingMode
-
-
Constructor Details
-
AbstractPromotionRounding
public AbstractPromotionRounding()
-
-
Method Details
-
setRoundingScale
public void setRoundingScale(int roundingScale) 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.- Parameters:
roundingScale-
-
setRoundingMode
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.- Parameters:
roundingMode-
-
getRoundingMode
Description copied from interface:PromotionRoundingIt 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.- Specified by:
getRoundingModein interfacePromotionRounding
-
getRoundingScale
Description copied from interface:PromotionRoundingIt 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.- Specified by:
getRoundingScalein interfacePromotionRounding
-