Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies the discount on the price based on the discount method defined for the discount offer.
Syntax
public real applyDiscount(real _price)
Run On
Called
Parameters
- _price
Type: real
The given price value.
Return Value
Type: real
A price after discounted amount.
Remarks
If the price passed is 0, then it returns 0.