Fix the FlatDiscount, so that it actually discounts all the time.

This commit is contained in:
Colin Kuskie 2012-02-15 16:34:20 -08:00
parent 82554add6b
commit e86b7bb180

View file

@ -155,7 +155,7 @@ sub getPrice {
return $subtotal * $self->get('percentageDiscount') / -100; return $subtotal * $self->get('percentageDiscount') / -100;
} }
else { else {
return $self->get('priceDiscount'); return -1 * abs($self->get('priceDiscount'));
} }
} }
return 0; return 0;