Skip to content

Commit e86b7bb

Browse files
committedFeb 16, 2012
Fix the FlatDiscount, so that it actually discounts all the time.
1 parent 82554ad commit e86b7bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/WebGUI/Asset/Sku/FlatDiscount.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ sub getPrice {
155155
return $subtotal * $self->get('percentageDiscount') / -100;
156156
}
157157
else {
158-
return $self->get('priceDiscount');
158+
return -1 * abs($self->get('priceDiscount'));
159159
}
160160
}
161161
return 0;

0 commit comments

Comments
 (0)