Class PriceRow

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

public class PriceRow extends GeneratedPriceRow
PriceRow defines price rules in the Europe1 Price Factory. A single price is qualified by product, product price group, user, user group, currency, unit, min quanitty and a daterange. In addition the price itself can be seen as net or gross. A unit factor makes handling of small prices easier: return_price = price / unitFactor .
Since allways one price must be found, but multiple rows may match there must be some kind of ordering. This can be expressed simply by stating the value of matching fields: P + C > P + UG > PG + C > PG + UG > PG > UG . The best value have rules where both product and user match, the least the rule which does not match directly but with all-fields.
See Also: