OrderModifier::Total PHP Method

Total() public method

Provides a modifier total that is positive or negative, depending on whether the modifier is chargable or not.
public Total ( ) : boolean
return boolean
    public function Total()
    {
        if ($this->Type == "Deductable") {
            return $this->Amount * -1;
        }
        return $this->Amount;
    }