diff --git a/lib/WebGUI/Commerce/Item/Event.pm b/lib/WebGUI/Commerce/Item/Event.pm index 277aacd4f..d5be61a5d 100644 --- a/lib/WebGUI/Commerce/Item/Event.pm +++ b/lib/WebGUI/Commerce/Item/Event.pm @@ -147,7 +147,7 @@ sub priceLineItem { my $numberOfThisPass = $passesInCart{$passId}; # calculate discount. if ($pass->{type} eq 'newPrice') { - $discountedPrice = (0 + $pass->{amount}) if ($discountedPrice < (0 + $pass->{amount})); + $discountedPrice = (0 + $pass->{amount}) if ($price > (0 + $pass->{amount})); } elsif ($pass->{type} eq 'amountOff') { # not yet implemented! } elsif ($pass->{type} eq 'percentOff') {