This commit is contained in:
Matthew Wilson 2006-05-09 15:23:09 +00:00
parent 3df5a5bb15
commit 0fb37d4f2a

View file

@ -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') {