Skip to content
Permalink
Browse files

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

  • Loading branch information...
perlDreamer committed Feb 16, 2012
1 parent 82554ad commit e86b7bb18077d28946979b361b52084f5084c6bf
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/WebGUI/Asset/Sku/FlatDiscount.pm
@@ -155,7 +155,7 @@ sub getPrice {
return $subtotal * $self->get('percentageDiscount') / -100;
}
else {
return $self->get('priceDiscount');
return -1 * abs($self->get('priceDiscount'));
}
}
return 0;

0 comments on commit e86b7bb

Please sign in to comment.
You can’t perform that action at this time.