Class Discount

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
GeneratedVoucher

public class Discount extends GeneratedDiscount
The discount class.

There are different kinds of discounts: absolute or relative, and global and non-global. Absolute discounts contain a real price value (price and currency), whereas relative discounts are discounts in percent. Global discounts are applied on order level, which means that they can not be applied to a single entry. Non-global discounts are only applicable on entry - level.

Since all price calculation is done be the currently installed pricefactory refer to it for maybe differing behaviour.

See Also: