Skip to content

Commit

Permalink
Fix the FlatDiscount, so that it actually discounts all the time.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Feb 16, 2012
1 parent 82554ad commit e86b7bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WebGUI/Asset/Sku/FlatDiscount.pm
Expand Up @@ -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;
Expand Down

0 comments on commit e86b7bb

Please sign in to comment.