PriceDiscount
Extends Price. Represents the discount value between two Prices. Unlike the Money object the PriceDiscount object is aware of taxation and also the price values before and after discount.
Methods |
---|
now()
Price
The new price after discount. |
percentage()
Number
The currency for the Price object. |
was()
Price
The original price before discount. |